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

Support LLM token count and metadata for Vercel AI SDK #999

Open
zirkelc opened this issue Sep 12, 2024 · 0 comments
Open

Support LLM token count and metadata for Vercel AI SDK #999

zirkelc opened this issue Sep 12, 2024 · 0 comments

Comments

@zirkelc
Copy link

zirkelc commented Sep 12, 2024

Feature request

LangSmith does not show the token count for traces created from wrapAISDKModel for the Vercel AI SDK. The counts are sent to LangSmith:

usage:
  promptTokens: 872
  completionTokens: 28

However, the counts are not rendered in the UI. Also, any metadata added via experimental_telemetry.metadata is not sent to LangSmith.

Motivation

I'm exploring the usage of Vercel AI SDK while keeping the good DX from LangSmith.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant