Add vLLM models authentication diagnostics
This commit is contained in:
@@ -73,7 +73,14 @@ func (c *OpenAICompatibleClient) ProbeAuthentication(ctx context.Context, adapte
|
||||
if err != nil {
|
||||
return result, err
|
||||
}
|
||||
if recognizedOpenRouterKeyResponse(contents) {
|
||||
recognized := false
|
||||
switch adapter {
|
||||
case "openrouter_key":
|
||||
recognized = recognizedOpenRouterKeyResponse(contents)
|
||||
case "vllm_models":
|
||||
recognized = recognizedVLLMModelsResponse(contents)
|
||||
}
|
||||
if recognized {
|
||||
accepted := true
|
||||
result.Accepted = &accepted
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user