Skip to content

docs: document ANTHROPIC_BASE_URL and GOOGLE_GENERATIVE_AI_BASE_URL in .env.example - #79

Open
kuishou68 wants to merge 1 commit into
CopilotKit:mainfrom
kuishou68:cocoon-fix-openmuse
Open

kuishou68 wants to merge 1 commit into
CopilotKit:mainfrom
kuishou68:cocoon-fix-openmuse

Conversation

@kuishou68

Copy link
Copy Markdown

What

.env.example documents the optional OPENAI_BASE_URL endpoint override, but the analogous overrides for the other two providers are missing, even though the model adapter reads them:

  • ANTHROPIC_BASE_URL — apps/server/src/engine/tanstack-agent.ts:35 (a trailing /v1 is stripped, because the Anthropic SDK adds /v1 itself)
  • GOOGLE_GENERATIVE_AI_BASE_URL — apps/server/src/engine/tanstack-agent.ts:44 (a trailing /v1beta is stripped, because @google/genai adds the API version itself)

Why

Anyone routing Anthropic or Google traffic through a gateway/proxy endpoint has no way to discover these variables from the sample env file, and the suffix handling (/v1, /v1beta) is easy to get wrong silently. This adds two commented lines mirroring the existing OPENAI_BASE_URL entry, in the same style.

Docs-only change; no code touched.

Verification

  • Grepped the source tree (excluding node_modules/dist): the only readers of these two variables are the adapter lines quoted above.
  • pnpm exec biome check . still passes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant