Add vLLM models authentication diagnostics

This commit is contained in:
2026-11-22 18:17:30 +00:00
parent ca8cf1b827
commit c3257b63f0
9 changed files with 116 additions and 9 deletions

View File

@@ -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 {