Skip to content

Commit

Permalink
apply same fix for gemini
Browse files Browse the repository at this point in the history
  • Loading branch information
ncybul committed Jan 22, 2025
1 parent 7841124 commit d124e97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ddtrace/contrib/internal/google_generativeai/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def tag_request(span, integration, instance, args, kwargs):
"""Tag the generation span with request details.
Includes capturing generation configuration, system prompt, and messages.
"""
contents = get_argument_value(args, kwargs, 0, "contents")
contents = get_argument_value(args, kwargs, 0, "content")
generation_config = get_generation_config_google(instance, kwargs)
system_instruction = get_system_instructions_from_google_model(instance)
stream = kwargs.get("stream", None)
Expand Down
2 changes: 1 addition & 1 deletion ddtrace/llmobs/_integrations/gemini.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def _llmobs_set_tags(
metadata = llmobs_get_metadata_google(kwargs, instance)

system_instruction = get_system_instructions_from_google_model(instance)
input_contents = get_argument_value(args, kwargs, 0, "contents")
input_contents = get_argument_value(args, kwargs, 0, "content")
input_messages = self._extract_input_message(input_contents, system_instruction)

output_messages = [{"content": ""}]
Expand Down

0 comments on commit d124e97

Please sign in to comment.