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

chore(weave): Add gpt-4.5-preview and deepseek to playground #3830

Merged
merged 6 commits into from
Mar 4, 2025
Merged
Show file tree
Hide file tree
Changes from 4 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 @@ -107,6 +107,15 @@ export const LLM_MAX_TOKENS = {
max_tokens: 100000,
supports_function_calling: true,
},
'gpt-4.5-preview': {
litellm_provider: 'openai',
api_key_name: 'OPENAI_API_KEY',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why does this need an api key name but the others dont?

},
'gpt-4.5-preview-2025-02-27': {
provider: 'openai',
max_tokens: 16384,
supports_function_calling: true,
},

// Anthropic models
'claude-3-7-sonnet-20250219': {
Expand Down Expand Up @@ -484,6 +493,18 @@ export const LLM_MAX_TOKENS = {
provider: 'xai',
supports_function_calling: true,
},

// DeepSeek models
'deepseek/deepseek-reasoner': {
provider: 'deepseek',
max_tokens: 8192,
supports_function_calling: true,
},
'deepseek/deepseek-chat': {
provider: 'deepseek',
max_tokens: 8192,
supports_function_calling: true,
},
};

export type LLMMaxTokensKey = keyof typeof LLM_MAX_TOKENS;
Expand All @@ -500,6 +521,7 @@ export const LLM_PROVIDERS = [
'groq',
'bedrock',
'xai',
'deepseek',
];

export const LLM_PROVIDER_LABELS: Record<
Expand All @@ -513,4 +535,5 @@ export const LLM_PROVIDER_LABELS: Record<
groq: 'Groq',
bedrock: 'AWS Bedrock',
xai: 'xAI',
deepseek: 'DeepSeek',
};
50 changes: 49 additions & 1 deletion weave/trace_server/model_providers/model_providers.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@
"litellm_provider": "openai",
"api_key_name": "OPENAI_API_KEY"
},
"gpt-4.5-preview": {
"litellm_provider": "openai",
"api_key_name": "OPENAI_API_KEY"
},
"gpt-4.5-preview-2025-02-27": {
"litellm_provider": "openai",
"api_key_name": "OPENAI_API_KEY"
},
"gpt-4o-audio-preview": {
"litellm_provider": "openai",
"api_key_name": "OPENAI_API_KEY"
Expand Down Expand Up @@ -555,6 +563,10 @@
"litellm_provider": "azure_ai",
"api_key_name": "AZURE_API_KEY"
},
"azure_ai/Phi-4": {
"litellm_provider": "azure_ai",
"api_key_name": "AZURE_API_KEY"
},
"azure_ai/Phi-3.5-mini-instruct": {
"litellm_provider": "azure_ai",
"api_key_name": "AZURE_API_KEY"
Expand Down Expand Up @@ -611,6 +623,14 @@
"litellm_provider": "anthropic",
"api_key_name": "ANTHROPIC_API_KEY"
},
"deepseek/deepseek-reasoner": {
"litellm_provider": "deepseek",
"api_key_name": "DEEPSEEK_API_KEY"
},
"deepseek/deepseek-chat": {
"litellm_provider": "deepseek",
"api_key_name": "DEEPSEEK_API_KEY"
},
"xai/grok-beta": {
"litellm_provider": "xai",
"api_key_name": "XAI_API_KEY"
Expand Down Expand Up @@ -643,6 +663,10 @@
"litellm_provider": "xai",
"api_key_name": "XAI_API_KEY"
},
"deepseek/deepseek-coder": {
"litellm_provider": "deepseek",
"api_key_name": "DEEPSEEK_API_KEY"
},
"groq/deepseek-r1-distill-llama-70b": {
"litellm_provider": "groq",
"api_key_name": "GEMMA_API_KEY"
Expand Down Expand Up @@ -743,6 +767,14 @@
"litellm_provider": "anthropic",
"api_key_name": "ANTHROPIC_API_KEY"
},
"claude-3-5-haiku-latest": {
"litellm_provider": "anthropic",
"api_key_name": "ANTHROPIC_API_KEY"
},
"claude-3-opus-latest": {
"litellm_provider": "anthropic",
"api_key_name": "ANTHROPIC_API_KEY"
},
"claude-3-opus-20240229": {
"litellm_provider": "anthropic",
"api_key_name": "ANTHROPIC_API_KEY"
Expand All @@ -751,10 +783,18 @@
"litellm_provider": "anthropic",
"api_key_name": "ANTHROPIC_API_KEY"
},
"claude-3-5-sonnet-latest": {
"litellm_provider": "anthropic",
"api_key_name": "ANTHROPIC_API_KEY"
},
"claude-3-5-sonnet-20240620": {
"litellm_provider": "anthropic",
"api_key_name": "ANTHROPIC_API_KEY"
},
"claude-3-7-sonnet-latest": {
"litellm_provider": "anthropic",
"api_key_name": "ANTHROPIC_API_KEY"
},
"claude-3-7-sonnet-20250219": {
"litellm_provider": "anthropic",
"api_key_name": "ANTHROPIC_API_KEY"
Expand Down Expand Up @@ -995,12 +1035,16 @@
"litellm_provider": "bedrock",
"api_key_name": "BEDROCK_API_KEY"
},
"bedrock/invoke/anthropic.claude-3-5-sonnet-20240620-v1:0": {
"litellm_provider": "bedrock",
"api_key_name": "BEDROCK_API_KEY"
},
"anthropic.claude-3-5-sonnet-20240620-v1:0": {
"litellm_provider": "bedrock",
"api_key_name": "BEDROCK_API_KEY"
},
"anthropic.claude-3-7-sonnet-20250219-v1:0": {
"litellm_provider": "bedrock",
"litellm_provider": "bedrock_converse",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

huh, why?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

new format?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm this was auto exported but let me just double check

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i thought i made a merge error, but I guess thats what its suppposed to be, shouldnt matter since we dont expose 3-7 under bedrock in the frontend yet

"api_key_name": "BEDROCK_API_KEY"
},
"anthropic.claude-3-5-sonnet-20241022-v2:0": {
Expand Down Expand Up @@ -1031,6 +1075,10 @@
"litellm_provider": "bedrock",
"api_key_name": "BEDROCK_API_KEY"
},
"us.anthropic.claude-3-7-sonnet-20250219-v1:0": {
"litellm_provider": "bedrock_converse",
"api_key_name": "BEDROCK_API_KEY"
},
"us.anthropic.claude-3-haiku-20240307-v1:0": {
"litellm_provider": "bedrock",
"api_key_name": "BEDROCK_API_KEY"
Expand Down
1 change: 1 addition & 0 deletions weave/trace_server/model_providers/model_providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"azure_ai": "AZURE_API_KEY",
"bedrock": "BEDROCK_API_KEY",
"bedrock_converse": "BEDROCK_API_KEY",
"deepseek": "DEEPSEEK_API_KEY",
"fireworks": "FIREWORKS_API_KEY",
"gemini": "GOOGLE_API_KEY",
"groq": "GEMMA_API_KEY",
Expand Down
Loading