We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d176347 commit 9c8614aCopy full SHA for 9c8614a
ddtrace/llmobs/_integrations/utils.py
@@ -118,6 +118,7 @@ def extract_message_from_part_google(part, role=None):
118
message["content"] = "[tool result: {}]".format(function_response_dict.get("response", ""))
119
return message
120
121
+
122
def get_llmobs_metrics_tags(integration_name, span):
123
usage = {}
124
@@ -129,7 +130,7 @@ def get_llmobs_metrics_tags(integration_name, span):
129
130
usage[OUTPUT_TOKENS_METRIC_KEY] = output_tokens
131
usage[TOTAL_TOKENS_METRIC_KEY] = input_tokens + output_tokens
132
return usage
-
133
134
prompt_tokens_name = "prompt_tokens"
135
completion_tokens_name = "completion_tokens"
136
if integration_name in INTEGRATIONS_USING_INPUT_OUTPUT_TOKENS:
0 commit comments