Skip to content

部署在github page 中的AI chatbot 调用 github env 的 apikey 失败,请检查问题。 ``` 3f4a73b9-d655-4ff6-8dbb-bb02a3349ecb:5 unsupported GPOS table LookupType 8 format 2 3f4a73b9-d655-4ff6-8dbb-bb02a3349ecb:5 unsupported GPOS table LookupType 5 format 1 3f4a73b9-d655-4ff6-...#10

Closed
Copilot wants to merge 1 commit into
mainfrom
copilot/fix-280e5d1a-dfa3-4f83-9be6-19e7acd85e75

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Oct 2, 2025

  • Analyze the issue: API key is being embedded in build output
  • Create .env.production file to exclude sensitive vars in production
  • Update vite.config.ts to handle production builds correctly
  • Add runtime API key configuration (localStorage fallback)
  • Update documentation to explain the security concern
  • Test the build to ensure API key is not embedded
  • Verify chatbot works with runtime configuration
Original prompt

部署在github page 中的AI chatbot 调用 github env 的 apikey 失败,请检查问题。

3f4a73b9-d655-4ff6-8dbb-bb02a3349ecb:5 unsupported GPOS table LookupType 8 format 2
3f4a73b9-d655-4ff6-8dbb-bb02a3349ecb:5 unsupported GPOS table LookupType 5 format 1
3f4a73b9-d655-4ff6-8dbb-bb02a3349ecb:5 unsupported GSUB table LookupType 6 format 2
3f4a73b9-d655-4ff6-8dbb-bb02a3349ecb:5 unsupported GSUB table LookupType 6 format 1
3f4a73b9-d655-4ff6-8dbb-bb02a3349ecb:5 unsupported GPOS table LookupType 8 format 2
3f4a73b9-d655-4ff6-8dbb-bb02a3349ecb:5 unsupported GPOS table LookupType 5 format 1
3f4a73b9-d655-4ff6-8dbb-bb02a3349ecb:5 unsupported GSUB table LookupType 6 format 2
3f4a73b9-d655-4ff6-8dbb-bb02a3349ecb:5 unsupported GSUB table LookupType 6 format 1
hook.js:608 Chat error: ft: 401 Incorrect API key provided: sk-proj-********************************************************************************************************************************************************WYMA. You can find your API key at https://platform.openai.com/account/api-keys.

Troubleshooting URL: https://js.langchain.com/docs/troubleshooting/errors/MODEL_AUTHENTICATION/

    at ct.generate (index-BgZ7Q66J.js:12:33823)
    at Wa.makeStatusError (index-BgZ7Q66J.js:12:121029)
    at Wa.makeRequest (index-BgZ7Q66J.js:12:124305)
    at async index-BgZ7Q66J.js:30:104084
    at async e._fn (index-BgZ7Q66J.js:12:210569)
overrideMethod @ hook.js:608
hook.js:608 Chat error: ft: 401 Incorrect API key provided: sk-proj-********************************************************************************************************************************************************WYMA. You can find your API key at https://platform.openai.com/account/api-keys.

Troubleshooting URL: https://js.langchain.com/docs/troubleshooting/errors/MODEL_AUTHENTICATION/

    at ct.generate (index-BgZ7Q66J.js:12:33823)
    at Wa.makeStatusError (index-BgZ7Q66J.js:12:121029)
    at Wa.makeRequest (index-BgZ7Q66J.js:12:124305)
    at async index-BgZ7Q66J.js:30:104084
    at async e._fn (index-BgZ7Q66J.js:12:210569)
overrideMethod @ hook.js:608

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

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.

2 participants