mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
agents: do not use bridge config vars for models (#22392)
<!-- If you have used AI to produce some or all of this PR, please ensure you have read our [AI Contribution guidelines](https://coder.com/docs/about/contributing/AI_CONTRIBUTING) before submitting. -->
This commit is contained in:
+9
-6
@@ -3041,13 +3041,16 @@ func chatProviderValidationDetail() string {
|
||||
func chatProviderAPIKeysFromDeploymentValues(
|
||||
deploymentValues *codersdk.DeploymentValues,
|
||||
) chatprovider.ProviderAPIKeys {
|
||||
_ = deploymentValues
|
||||
// For now, we'll just manage configs in the UI.
|
||||
// We should probably not be reusing the AI bridge configs anyways.
|
||||
return chatprovider.ProviderAPIKeys{
|
||||
OpenAI: deploymentValues.AI.BridgeConfig.OpenAI.Key.Value(),
|
||||
Anthropic: deploymentValues.AI.BridgeConfig.Anthropic.Key.Value(),
|
||||
BaseURLByProvider: map[string]string{
|
||||
"openai": deploymentValues.AI.BridgeConfig.OpenAI.BaseURL.Value(),
|
||||
"anthropic": deploymentValues.AI.BridgeConfig.Anthropic.BaseURL.Value(),
|
||||
},
|
||||
// OpenAI: deploymentValues.AI.BridgeConfig.OpenAI.Key.Value(),
|
||||
// Anthropic: deploymentValues.AI.BridgeConfig.Anthropic.Key.Value(),
|
||||
// BaseURLByProvider: map[string]string{
|
||||
// "openai": deploymentValues.AI.BridgeConfig.OpenAI.BaseURL.Value(),
|
||||
// "anthropic": deploymentValues.AI.BridgeConfig.Anthropic.BaseURL.Value(),
|
||||
// },
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user