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

Expose metrics from MultimodalAgent and RealtimeModel #1010

Open
davidzhao opened this issue Oct 30, 2024 · 4 comments · May be fixed by #1080
Open

Expose metrics from MultimodalAgent and RealtimeModel #1010

davidzhao opened this issue Oct 30, 2024 · 4 comments · May be fixed by #1080

Comments

@davidzhao
Copy link
Member

No description provided.

@yuyuma
Copy link
Contributor

yuyuma commented Nov 3, 2024

It looks like some basic considerations were made for the realtime model with a Usage model defined here:

I just wanted to add that the exposed usage details should include input_token_details and output_token_details. Without those details the 3 existing token numbers are not useful because cached tokens, text tokens, and audio tokens are all priced differently.

Sample usage detail

usage: {
	total_tokens: 330
	input_tokens: 181
	output_tokens: 149
	input_token_details: {
		cached_tokens: 0
		text_tokens: 181
		audio_tokens: 0
	}
	output_token_details: {
		text_tokens: 34
		audio_tokens: 115
	}
}

Thanks in advance

@davidzhao
Copy link
Member Author

please feel free to submit a PR :)

@yuyuma
Copy link
Contributor

yuyuma commented Nov 4, 2024

@davidzhao done, thanks!

@davidzhao
Copy link
Member Author

MultimodalAgent metrics are in #1080

@davidzhao davidzhao linked a pull request Nov 14, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants