-
在调用openai包时报错TypeError: adapter is not a function
看到你只是引用了ChatCompletionRequest和Response,自行fetch进行的请求。你是也遇到了adapter is not a function的问题吗? |
Beta Was this translation helpful? Give feedback.
Answered by
Loop-p
May 8, 2023
Replies: 2 comments
-
感觉像是哪里配置出了问题,但是毫无头绪。开发环境:cloudflare worker - wrangler。 |
Beta Was this translation helpful? Give feedback.
0 replies
-
git搜索后,类似问题详见https://github.com/fern-openai/openai-node/issues/7 大致原因可能是cloudflare worker的一些问题,上述链接中提到的方式也有尝试,还是不行。 建议:还是自建fetch进行调用 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Loop-p
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
git搜索后,类似问题详见https://github.com/fern-openai/openai-node/issues/7
大致原因可能是cloudflare worker的一些问题,上述链接中提到的方式也有尝试,还是不行。
建议:还是自建fetch进行调用