Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Aug 15, 2024
1 parent 2723c30 commit 0154ccf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 15
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai%2FTogetherAI-0bbc5a23647ddecb07ded37f0ac7352011dbf4bc30098a348b495b4501cb3512.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai%2FTogetherAI-531deb043558b22becfd56a80a64a42f9e2da4ac29c5d7056bf3951c3a4aac5c.yml
13 changes: 4 additions & 9 deletions src/resources/completions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ export namespace Completion {
}

export interface LogProbs {
content?: Array<LogProbs.Content>;
/**
* List of token IDs corresponding to the logprobs
*/
token_ids?: Array<number>;

/**
* List of token log probabilities
Expand All @@ -76,14 +79,6 @@ export interface LogProbs {
tokens?: Array<string>;
}

export namespace LogProbs {
export interface Content {
token: string;

logprob: number;
}
}

export interface ToolChoice {
id: string;

Expand Down

0 comments on commit 0154ccf

Please sign in to comment.