From 4669b73d38300035e48f45c08e1342609bb9396f Mon Sep 17 00:00:00 2001 From: Eric Rakestraw Date: Sat, 4 Jul 2026 17:04:25 +0000 Subject: [PATCH] Update OpenAI-compatible auth docs --- docs/integrations/openai-compatible-chat.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/integrations/openai-compatible-chat.md b/docs/integrations/openai-compatible-chat.md index 9e97c80..a44c3c0 100644 --- a/docs/integrations/openai-compatible-chat.md +++ b/docs/integrations/openai-compatible-chat.md @@ -122,7 +122,12 @@ Structured output is currently `json_schema` only, serialized as: ## Authentication Header -If `Target.APIKeyEnv` is set: +If `Target.APIKey` is set: + +- set `Authorization: Bearer ` +- do not read `Target.APIKeyEnv` + +If `Target.APIKey` is empty and `Target.APIKeyEnv` is set: - resolve environment variable value at request time - set `Authorization: Bearer ` @@ -131,7 +136,7 @@ If the environment variable is unset/empty: - request fails before HTTP call (`ErrInvalidRequest`) -If `Target.APIKeyEnv` is empty: +If both `Target.APIKey` and `Target.APIKeyEnv` are empty: - no `Authorization` header is sent