Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

问题:启动错误,没有使用openapi,但是为什么还提示openai的api错误呢 #265

Open
yyyywm opened this issue Feb 21, 2025 · 0 comments

Comments

@yyyywm
Copy link

yyyywm commented Feb 21, 2025

/wechat-bot-main # npm run start -- --serve Xunfei

[email protected] start
node ./cli.js --serve Xunfei

file:///wechat-bot-main/node_modules/openai/index.mjs:43
throw new Errors.OpenAIError("The OPENAI_API_KEY environment variable is missing or empty; either provide it, or instantiate the OpenAI client with an apiKey option, like new OpenAI({ apiKey: 'My API Key' }).");
^

OpenAIError: The OPENAI_API_KEY environment variable is missing or empty; either provide it, or instantiate the OpenAI client with an apiKey option, like new OpenAI({ apiKey: 'My API Key' }).
at new OpenAI (file:///wechat-bot-main/node_modules/openai/index.mjs:43:19)
at file:///wechat-bot-main/src/openai/index.js:24:16
at ModuleJob.run (node:internal/modules/esm/module_job:222:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:323:24)

Node.js v20.12.0

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

No branches or pull requests

1 participant