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

AOAI: fix CompletionsUsage model #22439

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,13 @@ model CompletionsLogProbs {
text_offset?: int32[];
}

@doc("Measurment of the amount of tokens used in this request and response")
@doc("""
Representation of the token counts processed for a completions request.
Counts consider all tokens across prompts, choices, choice alternates, best_of generations, and other consumers.
""")
model CompletionsUsage {
@doc("Number of tokens received in the completion")
completion_token: int32,
completion_tokens: int32,
@doc("Number of tokens sent in the original request")
prompt_tokens: int32,
@doc("Total number of tokens transacted in this request/response")
Expand Down