Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GoogleAIGeminiChatGenerator doesn't include usage metadata #1194

Closed
theoohoho opened this issue Nov 15, 2024 · 0 comments · Fixed by #1195
Closed

GoogleAIGeminiChatGenerator doesn't include usage metadata #1194

theoohoho opened this issue Nov 15, 2024 · 0 comments · Fixed by #1195
Assignees
Labels
bug Something isn't working integration:google-ai P2

Comments

@theoohoho
Copy link
Contributor

theoohoho commented Nov 15, 2024

Describe the bug
GoogleAIGeminiChatGenerator does not include usage metadata. By default, in google-generativeai, the response metadata and usage metadata are separated. Currently, only response metadata is being extracted.

Describe your environment (please complete the following information):

  • OS: mac os 13.5.2
  • Haystack version: 2.6.1
  • Integration version: latest
@theoohoho theoohoho added the bug Something isn't working label Nov 15, 2024
@theoohoho theoohoho changed the title GoogleAIGeminiChatGenerator doesn't include usage metadata from ChatMessage GoogleAIGeminiChatGenerator doesn't include usage metadata Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working integration:google-ai P2
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants