Skip to content

Commit

Permalink
fix incorrect attribute access for the model content
Browse files Browse the repository at this point in the history
  • Loading branch information
the-praxs committed Aug 14, 2024
1 parent 1198383 commit c10deab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agentops/llm_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ async def async_generator():
self.llm_event.prompt_tokens = response.usage.input_tokens
self.llm_event.completion = {
"role": "assistant",
"content": response.content,
"content": response.content[0].text,
}
self.llm_event.completion_tokens = response.usage.output_tokens
self.llm_event.model = response.model
Expand Down

0 comments on commit c10deab

Please sign in to comment.