Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
yukukotani committed Feb 8, 2025
1 parent 7bea89f commit d2dc136
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion crates/goose-server/src/routes/providers_and_keys.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"models": ["gpt-4o", "gpt-4o-mini"],
"required_keys": ["AZURE_OPENAI_API_KEY", "AZURE_OPENAI_ENDPOINT", "AZURE_OPENAI_DEPLOYMENT_NAME"]
},
"vertexai": {
"vertex_ai": {
"name": "Vertex AI",
"description": "Access variety of AI models through Vertex AI",
"models": ["claude-3-5-sonnet-v2@20241022", "claude-3-5-sonnet@20240620"],
Expand Down
2 changes: 1 addition & 1 deletion crates/goose/src/providers/factory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ pub fn create(name: &str, model: ModelConfig) -> Result<Box<dyn Provider + Send
"ollama" => Ok(Box::new(OllamaProvider::from_env(model)?)),
"openrouter" => Ok(Box::new(OpenRouterProvider::from_env(model)?)),
"google" => Ok(Box::new(GoogleProvider::from_env(model)?)),
"vertexai" => Ok(Box::new(VertexAIProvider::from_env(model)?)),
"vertex_ai" => Ok(Box::new(VertexAIProvider::from_env(model)?)),
_ => Err(anyhow::anyhow!("Unknown provider: {}", name)),
}
}
2 changes: 1 addition & 1 deletion crates/goose/src/providers/vertexai.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ impl Provider for VertexAIProvider {
Self: Sized,
{
ProviderMetadata::new(
"vertexai",
"vertex_ai",
"Vertex AI",
"Access variety of AI models such as Claude through Vertex AI",
VERTEXAI_DEFAULT_MODEL,
Expand Down
4 changes: 2 additions & 2 deletions ui/desktop/src/components/settings/models/hardcoded_stuff.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const default_models = {
openrouter: 'anthropic/claude-3.5-sonnet',
ollama: 'qwen2.5',
azure_openai: 'gpt-4o',
vertexai: 'claude-3-5-sonnet-v2@20241022',
vertex_ai: 'claude-3-5-sonnet-v2@20241022',
};

export function getDefaultModel(key: string): string | undefined {
Expand Down Expand Up @@ -116,5 +116,5 @@ export const provider_aliases = [
{ provider: 'OpenRouter', alias: 'openrouter' },
{ provider: 'Google', alias: 'google' },
{ provider: 'Azure OpenAI', alias: 'azure_openai' },
{ provider: 'Vertex AI', alias: 'vertexai' },
{ provider: 'Vertex AI', alias: 'vertex_ai' },
];

0 comments on commit d2dc136

Please sign in to comment.