Allow vllm provider to work without API key
Skip the API key requirement check when using the vllm provider, enabling use of OpenAI-compatible endpoints that don't require authentication (e.g. opencode.ai/zen free models).
This commit is contained in:
parent
e883e14b81
commit
ba71e79abd
1 changed files with 1 additions and 1 deletions
|
|
@ -295,7 +295,7 @@ func resolveProviderSelection(cfg *config.Config) (providerSelection, error) {
|
|||
}
|
||||
|
||||
if sel.providerType == providerTypeHTTPCompat {
|
||||
if sel.apiKey == "" && !strings.HasPrefix(model, "bedrock/") {
|
||||
if sel.apiKey == "" && !strings.HasPrefix(model, "bedrock/") && providerName != "vllm" {
|
||||
return providerSelection{}, fmt.Errorf("no API key configured for provider (model: %s)", model)
|
||||
}
|
||||
if sel.apiBase == "" {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue