1- import  type  {  ModelId  }  from  ". ./types" ; 
1+ import  type  {  ProviderMapping  }  from  "./types" ; 
22
33export  const  TOGETHER_API_BASE_URL  =  "https://api.together.xyz" ; 
44
@@ -10,50 +10,49 @@ type TogetherId = string;
1010/** 
1111 * https://docs.together.ai/reference/models-1 
1212 */ 
13- export  const  TOGETHER_MODEL_IDS : Partial < 
14- 	Record < ModelId ,  {  id : TogetherId ;  type : "chat"  |  "embedding"  |  "image"  |  "language"  |  "moderation"  } > 
15- >  =  { 
16- 	/** text-to-image */ 
17- 	"black-forest-labs/FLUX.1-Canny-dev" : {  id : "black-forest-labs/FLUX.1-canny" ,  type : "image"  } , 
18- 	"black-forest-labs/FLUX.1-Depth-dev" : {  id : "black-forest-labs/FLUX.1-depth" ,  type : "image"  } , 
19- 	"black-forest-labs/FLUX.1-dev" : {  id : "black-forest-labs/FLUX.1-dev" ,  type : "image"  } , 
20- 	"black-forest-labs/FLUX.1-Redux-dev" : {  id : "black-forest-labs/FLUX.1-redux" ,  type : "image"  } , 
21- 	"black-forest-labs/FLUX.1-schnell" : {  id : "black-forest-labs/FLUX.1-pro" ,  type : "image"  } , 
22- 	"stabilityai/stable-diffusion-xl-base-1.0" : {  id : "stabilityai/stable-diffusion-xl-base-1.0" ,  type : "image"  } , 
23- 
24- 	/** chat completion */ 
25- 	"databricks/dbrx-instruct" : {  id : "databricks/dbrx-instruct" ,  type : "chat"  } , 
26- 	"deepseek-ai/deepseek-llm-67b-chat" : {  id : "deepseek-ai/deepseek-llm-67b-chat" ,  type : "chat"  } , 
27- 	"google/gemma-2-9b-it" : {  id : "google/gemma-2-9b-it" ,  type : "chat"  } , 
28- 	"google/gemma-2b-it" : {  id : "google/gemma-2-27b-it" ,  type : "chat"  } , 
29- 	"llava-hf/llava-v1.6-mistral-7b-hf" : {  id : "llava-hf/llava-v1.6-mistral-7b-hf" ,  type : "chat"  } , 
30- 	"meta-llama/Llama-2-13b-chat-hf" : {  id : "meta-llama/Llama-2-13b-chat-hf" ,  type : "chat"  } , 
31- 	"meta-llama/Llama-2-70b-hf" : {  id : "meta-llama/Llama-2-70b-hf" ,  type : "language"  } , 
32- 	"meta-llama/Llama-2-7b-chat-hf" : {  id : "meta-llama/Llama-2-7b-chat-hf" ,  type : "chat"  } , 
33- 	"meta-llama/Llama-3.2-11B-Vision-Instruct" : {  id : "meta-llama/Llama-Vision-Free" ,  type : "chat"  } , 
34- 	"meta-llama/Llama-3.2-3B-Instruct" : {  id : "meta-llama/Llama-3.2-3B-Instruct-Turbo" ,  type : "chat"  } , 
35- 	"meta-llama/Llama-3.2-90B-Vision-Instruct" : {  id : "meta-llama/Llama-3.2-90B-Vision-Instruct-Turbo" ,  type : "chat"  } , 
36- 	"meta-llama/Llama-3.3-70B-Instruct" : {  id : "meta-llama/Llama-3.3-70B-Instruct-Turbo" ,  type : "chat"  } , 
37- 	"meta-llama/Meta-Llama-3-70B-Instruct" : {  id : "meta-llama/Llama-3-70b-chat-hf" ,  type : "chat"  } , 
38- 	"meta-llama/Meta-Llama-3-8B-Instruct" : {  id : "togethercomputer/Llama-3-8b-chat-hf-int4" ,  type : "chat"  } , 
39- 	"meta-llama/Meta-Llama-3.1-405B-Instruct" : {  id : "meta-llama/Llama-3.2-11B-Vision-Instruct-Turbo" ,  type : "chat"  } , 
40- 	"meta-llama/Meta-Llama-3.1-70B-Instruct" : {  id : "meta-llama/Meta-Llama-3.1-70B-Instruct-Turbo" ,  type : "chat"  } , 
41- 	"meta-llama/Meta-Llama-3.1-8B-Instruct" : {  id : "meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo-128K" ,  type : "chat"  } , 
42- 	"microsoft/WizardLM-2-8x22B" : {  id : "microsoft/WizardLM-2-8x22B" ,  type : "chat"  } , 
43- 	"mistralai/Mistral-7B-Instruct-v0.3" : {  id : "mistralai/Mistral-7B-Instruct-v0.3" ,  type : "chat"  } , 
44- 	"mistralai/Mixtral-8x22B-Instruct-v0.1" : {  id : "mistralai/Mixtral-8x22B-Instruct-v0.1" ,  type : "chat"  } , 
45- 	"mistralai/Mixtral-8x7B-Instruct-v0.1" : {  id : "mistralai/Mixtral-8x7B-Instruct-v0.1" ,  type : "chat"  } , 
46- 	"NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO" : {  id : "NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO" ,  type : "chat"  } , 
47- 	"nvidia/Llama-3.1-Nemotron-70B-Instruct-HF" : {  id : "nvidia/Llama-3.1-Nemotron-70B-Instruct-HF" ,  type : "chat"  } , 
48- 	"Qwen/Qwen2-72B-Instruct" : {  id : "Qwen/Qwen2-72B-Instruct" ,  type : "chat"  } , 
49- 	"Qwen/Qwen2.5-72B-Instruct" : {  id : "Qwen/Qwen2.5-72B-Instruct-Turbo" ,  type : "chat"  } , 
50- 	"Qwen/Qwen2.5-7B-Instruct" : {  id : "Qwen/Qwen2.5-7B-Instruct-Turbo" ,  type : "chat"  } , 
51- 	"Qwen/Qwen2.5-Coder-32B-Instruct" : {  id : "Qwen/Qwen2.5-Coder-32B-Instruct" ,  type : "chat"  } , 
52- 	"Qwen/QwQ-32B-Preview" : {  id : "Qwen/QwQ-32B-Preview" ,  type : "chat"  } , 
53- 	"scb10x/llama-3-typhoon-v1.5-8b-instruct" : {  id : "scb10x/scb10x-llama3-typhoon-v1-5-8b-instruct" ,  type : "chat"  } , 
54- 	"scb10x/llama-3-typhoon-v1.5x-70b-instruct-awq" : {  id : "scb10x/scb10x-llama3-typhoon-v1-5x-4f316" ,  type : "chat"  } , 
55- 
56- 	/** text-generation */ 
57- 	"meta-llama/Meta-Llama-3-8B" : {  id : "meta-llama/Meta-Llama-3-8B" ,  type : "language"  } , 
58- 	"mistralai/Mixtral-8x7B-v0.1" : {  id : "mistralai/Mixtral-8x7B-v0.1" ,  type : "language"  } , 
13+ export  const  TOGETHER_SUPPORTED_MODEL_IDS : ProviderMapping < TogetherId >  =  { 
14+ 	"text-to-image" : { 
15+ 		"black-forest-labs/FLUX.1-Canny-dev" : "black-forest-labs/FLUX.1-canny" , 
16+ 		"black-forest-labs/FLUX.1-Depth-dev" : "black-forest-labs/FLUX.1-depth" , 
17+ 		"black-forest-labs/FLUX.1-dev" : "black-forest-labs/FLUX.1-dev" , 
18+ 		"black-forest-labs/FLUX.1-Redux-dev" : "black-forest-labs/FLUX.1-redux" , 
19+ 		"black-forest-labs/FLUX.1-schnell" : "black-forest-labs/FLUX.1-pro" , 
20+ 		"stabilityai/stable-diffusion-xl-base-1.0" : "stabilityai/stable-diffusion-xl-base-1.0" , 
21+ 	} , 
22+ 	conversational : { 
23+ 		"databricks/dbrx-instruct" : "databricks/dbrx-instruct" , 
24+ 		"deepseek-ai/deepseek-llm-67b-chat" : "deepseek-ai/deepseek-llm-67b-chat" , 
25+ 		"google/gemma-2-9b-it" : "google/gemma-2-9b-it" , 
26+ 		"google/gemma-2b-it" : "google/gemma-2-27b-it" , 
27+ 		"llava-hf/llava-v1.6-mistral-7b-hf" : "llava-hf/llava-v1.6-mistral-7b-hf" , 
28+ 		"meta-llama/Llama-2-13b-chat-hf" : "meta-llama/Llama-2-13b-chat-hf" , 
29+ 		"meta-llama/Llama-2-70b-hf" : "meta-llama/Llama-2-70b-hf" , 
30+ 		"meta-llama/Llama-2-7b-chat-hf" : "meta-llama/Llama-2-7b-chat-hf" , 
31+ 		"meta-llama/Llama-3.2-11B-Vision-Instruct" : "meta-llama/Llama-Vision-Free" , 
32+ 		"meta-llama/Llama-3.2-3B-Instruct" : "meta-llama/Llama-3.2-3B-Instruct-Turbo" , 
33+ 		"meta-llama/Llama-3.2-90B-Vision-Instruct" : "meta-llama/Llama-3.2-90B-Vision-Instruct-Turbo" , 
34+ 		"meta-llama/Llama-3.3-70B-Instruct" : "meta-llama/Llama-3.3-70B-Instruct-Turbo" , 
35+ 		"meta-llama/Meta-Llama-3-70B-Instruct" : "meta-llama/Llama-3-70b-chat-hf" , 
36+ 		"meta-llama/Meta-Llama-3-8B-Instruct" : "togethercomputer/Llama-3-8b-chat-hf-int4" , 
37+ 		"meta-llama/Meta-Llama-3.1-405B-Instruct" : "meta-llama/Llama-3.2-11B-Vision-Instruct-Turbo" , 
38+ 		"meta-llama/Meta-Llama-3.1-70B-Instruct" : "meta-llama/Meta-Llama-3.1-70B-Instruct-Turbo" , 
39+ 		"meta-llama/Meta-Llama-3.1-8B-Instruct" : "meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo-128K" , 
40+ 		"microsoft/WizardLM-2-8x22B" : "microsoft/WizardLM-2-8x22B" , 
41+ 		"mistralai/Mistral-7B-Instruct-v0.3" : "mistralai/Mistral-7B-Instruct-v0.3" , 
42+ 		"mistralai/Mixtral-8x22B-Instruct-v0.1" : "mistralai/Mixtral-8x22B-Instruct-v0.1" , 
43+ 		"mistralai/Mixtral-8x7B-Instruct-v0.1" : "mistralai/Mixtral-8x7B-Instruct-v0.1" , 
44+ 		"NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO" : "NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO" , 
45+ 		"nvidia/Llama-3.1-Nemotron-70B-Instruct-HF" : "nvidia/Llama-3.1-Nemotron-70B-Instruct-HF" , 
46+ 		"Qwen/Qwen2-72B-Instruct" : "Qwen/Qwen2-72B-Instruct" , 
47+ 		"Qwen/Qwen2.5-72B-Instruct" : "Qwen/Qwen2.5-72B-Instruct-Turbo" , 
48+ 		"Qwen/Qwen2.5-7B-Instruct" : "Qwen/Qwen2.5-7B-Instruct-Turbo" , 
49+ 		"Qwen/Qwen2.5-Coder-32B-Instruct" : "Qwen/Qwen2.5-Coder-32B-Instruct" , 
50+ 		"Qwen/QwQ-32B-Preview" : "Qwen/QwQ-32B-Preview" , 
51+ 		"scb10x/llama-3-typhoon-v1.5-8b-instruct" : "scb10x/scb10x-llama3-typhoon-v1-5-8b-instruct" , 
52+ 		"scb10x/llama-3-typhoon-v1.5x-70b-instruct-awq" : "scb10x/scb10x-llama3-typhoon-v1-5x-4f316" , 
53+ 	} , 
54+ 	"text-generation" : { 
55+ 		"meta-llama/Meta-Llama-3-8B" : "meta-llama/Meta-Llama-3-8B" , 
56+ 		"mistralai/Mixtral-8x7B-v0.1" : "mistralai/Mixtral-8x7B-v0.1" , 
57+ 	} , 
5958} ; 
0 commit comments