Skip to content

Commit

Permalink
chore (provider/togetherai): Incorporate the latest model ids. (#4183)
Browse files Browse the repository at this point in the history
  • Loading branch information
shaper authored Dec 21, 2024
1 parent 5ed5e45 commit 8974d6d
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 25 deletions.
5 changes: 5 additions & 0 deletions .changeset/gorgeous-rocks-grin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ai-sdk/togetherai': patch
---

chore (provider/togetherai): Incorporate the latest model ids.
4 changes: 2 additions & 2 deletions content/providers/01-ai-sdk-providers/24-togetherai.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,6 @@ The Together.ai provider also supports [completion models](https://docs.together
<Note>
The table above lists popular models. Please see the [Together.ai
docs](https://docs.together.ai/docs/serverless-models) for a full list of
available models. The table above lists popular models. You can also pass any
available provider model ID as a string if needed.
available models. You can also pass any available provider model ID as a
string if needed.
</Note>
39 changes: 20 additions & 19 deletions packages/togetherai/src/togetherai-chat-settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,37 @@ import { OpenAICompatibleChatSettings } from '@ai-sdk/openai-compatible';

// https://docs.together.ai/docs/serverless-models#chat-models
export type TogetherAIChatModelId =
| 'databricks/dbrx-instruct'
| 'deepseek-ai/deepseek-llm-67b-chat'
| 'meta-llama/Llama-3.3-70B-Instruct-Turbo'
| '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'
| 'meta-llama/Meta-Llama-3-8B-Instruct-Turbo'
| 'meta-llama/Meta-Llama-3-70B-Instruct-Turbo'
| 'meta-llama/Llama-3.2-3B-Instruct-Turbo'
| 'meta-llama/Meta-Llama-3-8B-Instruct-Lite'
| 'meta-llama/Meta-Llama-3-70B-Instruct-Lite'
| 'meta-llama/Llama-3-8b-chat-hf'
| 'meta-llama/Llama-3-70b-chat-hf'
| 'nvidia/Llama-3.1-Nemotron-70B-Instruct-HF'
| 'Qwen/Qwen2.5-Coder-32B-Instruct'
| 'Qwen/QwQ-32B-Preview'
| 'microsoft/WizardLM-2-8x22B'
| 'google/gemma-2-27b-it'
| 'google/gemma-2-9b-it'
| 'databricks/dbrx-instruct'
| 'deepseek-ai/deepseek-llm-67b-chat'
| 'google/gemma-2b-it'
| 'Gryphe/MythoMax-L2-13b'
| 'meta-llama/Llama-2-13b-chat-hf'
| 'meta-llama/Llama-3-70b-chat-hf'
| 'meta-llama/Llama-3-8b-chat-hf'
| 'meta-llama/Llama-3.2-3B-Instruct-Turbo'
| 'meta-llama/Meta-Llama-3-70B-Instruct-Lite'
| 'meta-llama/Meta-Llama-3-70B-Instruct-Turbo'
| 'meta-llama/Meta-Llama-3-8B-Instruct-Lite'
| 'meta-llama/Meta-Llama-3-8B-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'
| 'microsoft/WizardLM-2-8x22B'
| 'mistralai/Mistral-7B-Instruct-v0.1'
| 'mistralai/Mistral-7B-Instruct-v0.2'
| 'mistralai/Mistral-7B-Instruct-v0.3'
| 'mistralai/Mixtral-8x22B-Instruct-v0.1'
| 'mistralai/Mixtral-8x7B-Instruct-v0.1'
| 'mistralai/Mixtral-8x22B-Instruct-v0.1'
| 'NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO'
| 'nvidia/Llama-3.1-Nemotron-70B-Instruct-HF'
| 'Qwen/Qwen2-72B-Instruct'
| 'Qwen/Qwen2.5-72B-Instruct-Turbo'
| 'Qwen/Qwen2.5-7B-Instruct-Turbo'
| 'Qwen/Qwen2.5-Coder-32B-Instruct'
| 'togethercomputer/StripedHyena-Nous-7B'
| 'Qwen/Qwen2.5-72B-Instruct-Turbo'
| 'Qwen/Qwen2-72B-Instruct'
| 'upstage/SOLAR-10.7B-Instruct-v1.0'
| (string & {});

Expand Down
4 changes: 4 additions & 0 deletions packages/togetherai/src/togetherai-completion-settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ import { OpenAICompatibleCompletionSettings } from '@ai-sdk/openai-compatible';

// https://docs.together.ai/docs/serverless-models#language-models
export type TogetherAICompletionModelId =
| 'meta-llama/Llama-2-70b-hf'
| 'mistralai/Mistral-7B-v0.1'
| 'mistralai/Mixtral-8x7B-v0.1'
| 'Meta-Llama/Llama-Guard-7b'
| 'codellama/CodeLlama-34b-Instruct-hf'
| 'Qwen/Qwen2.5-Coder-32B-Instruct'
| (string & {});
Expand Down
8 changes: 4 additions & 4 deletions packages/togetherai/src/togetherai-embedding-settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ import { OpenAICompatibleEmbeddingSettings } from '@ai-sdk/openai-compatible';

// https://docs.together.ai/docs/serverless-models#embedding-models
export type TogetherAIEmbeddingModelId =
| 'BAAI/bge-base-en-v1.5'
| 'BAAI/bge-large-en-v1.5'
| 'bert-base-uncased'
| 'sentence-transformers/msmarco-bert-base-dot-v5'
| 'togethercomputer/m2-bert-80M-2k-retrieval'
| 'togethercomputer/m2-bert-80M-32k-retrieval'
| 'togethercomputer/m2-bert-80M-8k-retrieval'
| 'WhereIsAI/UAE-Large-V1'
| 'BAAI/bge-large-en-v1.5'
| 'BAAI/bge-base-en-v1.5'
| 'sentence-transformers/msmarco-bert-base-dot-v5'
| 'bert-base-uncased'
| (string & {});

export interface TogetherAIEmbeddingSettings
Expand Down

0 comments on commit 8974d6d

Please sign in to comment.