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

community: Add token metadata to ChatYandexGPT response #24182

Open
wants to merge 23 commits into
base: master
Choose a base branch
from

Conversation

olgamurraft
Copy link

Description
Added response_metadata to ChatYandexGPT

Changes
AIMessage response now contains response_metadata:
{"token_usage": {
"input_text_tokens": 0,
"completion_tokens": 0,
"total_tokens": 0
}, "model_name": "model_name"
}

Copy link

vercel bot commented Jul 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
langchain ⬜️ Ignored (Inspect) Visit Preview Sep 27, 2024 0:35am

@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. community Related to langchain-community 🤖:improvement Medium size change to existing code to handle new use-cases labels Jul 12, 2024
@efriis efriis changed the title Add token metadata to ChatYandexGPT response community: Add token metadata to ChatYandexGPT response Aug 28, 2024
@efriis efriis enabled auto-merge (squash) August 28, 2024 16:35
auto-merge was automatically disabled August 29, 2024 10:30

Head branch was pushed to by a user without write access

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Related to langchain-community 🤖:improvement Medium size change to existing code to handle new use-cases size:M This PR changes 30-99 lines, ignoring generated files.
Projects
Status: Needs support
Development

Successfully merging this pull request may close these issues.

2 participants