Skip to content

Commit

Permalink
feat(api): api update (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Oct 23, 2024
1 parent de0afb2 commit a427ac6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 14 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: 16
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai%2FTogetherAI-1677223d9bf95220f0e49c6c62130fc30a936ffc69f2a507a68b714ab6099e8f.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai%2FTogetherAI-5e0a37829859a7e57d29be0ae29e5a1094a9f5ab1ca47c8ed224b77f74a3ccad.yml
18 changes: 7 additions & 11 deletions src/resources/chat/completions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,18 +250,14 @@ export interface CompletionCreateParamsBase {

/**
* The name of the model to query.
*
* Popular models:
*
* - meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo
* - meta-llama/Meta-Llama-3.1-70B-Instruct-Turbo
* - meta-llama/Meta-Llama-3.1-405B-Instruct-Turbo
* - Qwen/Qwen2.5-7B-Instruct-Turbo
* - Qwen/Qwen2.5-72B-Instruct-Turbo
*
* [See all of Together AI's chat models](https://docs.together.ai/docs/serverless-models)
*/
model: string;
model:
| 'Qwen/Qwen2.5-72B-Instruct-Turbo'
| 'Qwen/Qwen2.5-7B-Instruct-Turbo'
| 'meta-llama/Meta-Llama-3.1-405B-Instruct-Turbo'
| 'meta-llama/Meta-Llama-3.1-70B-Instruct-Turbo'
| 'meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo'
| (string & {});

/**
* If true, the response will contain the prompt. Can be used with `logprobs` to
Expand Down
4 changes: 2 additions & 2 deletions tests/api-resources/chat/completions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describe('resource completions', () => {
{ content: 'content', role: 'system' },
{ content: 'content', role: 'system' },
],
model: 'meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo',
model: 'Qwen/Qwen2.5-72B-Instruct-Turbo',
});
const rawResponse = await responsePromise.asResponse();
expect(rawResponse).toBeInstanceOf(Response);
Expand All @@ -34,7 +34,7 @@ describe('resource completions', () => {
{ content: 'content', role: 'system' },
{ content: 'content', role: 'system' },
],
model: 'meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo',
model: 'Qwen/Qwen2.5-72B-Instruct-Turbo',
echo: true,
frequency_penalty: 0,
function_call: 'none',
Expand Down

0 comments on commit a427ac6

Please sign in to comment.