Skip to content

fix(llms): allow customFetch auth without apiKey#206

Open
stablegenius49 wants to merge 1 commit intoalibaba:mainfrom
stablegenius49:pr-factory/issue-200-optional-apikey
Open

fix(llms): allow customFetch auth without apiKey#206
stablegenius49 wants to merge 1 commit intoalibaba:mainfrom
stablegenius49:pr-factory/issue-200-optional-apikey

Conversation

@stablegenius49
Copy link

Summary

  • allow PageAgent / LLM configs to omit apiKey when customFetch is provided
  • skip injecting the Authorization header when no API key is configured
  • update the production-auth docs to show the customFetch-only flow

Verification

  • npm run build --workspace=@page-agent/llms
  • npm run build:website --workspace=@page-agent/website
  • npx eslint packages/llms/src/index.ts packages/llms/src/OpenAIClient.ts packages/llms/src/types.ts packages/website/src/pages/docs/features/models/page.tsx

Closes #200

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.

[Bug] apiKey是否可以改为非必填属性

1 participant