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

Bug: Cannot reach OpenAI api, please check network #86

Closed
Lan-ce-lot opened this issue Apr 2, 2023 · 1 comment · Fixed by #87
Closed

Bug: Cannot reach OpenAI api, please check network #86

Lan-ce-lot opened this issue Apr 2, 2023 · 1 comment · Fixed by #87

Comments

@Lan-ce-lot
Copy link
Contributor

When I use ChatGPT to translate

image

 Cannot reach OpenAI api, please check network.

fanyi version

./fanyi --version
8.0.2

OS

macOS 12.5.1 21G83 arm64

Is this the problem of the network? I used the clashX proxy at the terminal, how should I solve this problem.

@Lan-ce-lot
Copy link
Contributor Author

transitive-bullshit/agentic#419 (comment)

Use a proxy and pass a custom fetch to the ChatGPTAPI constructor which uses you proxy. Note: you'll still need a valid OpenAI API key from their website.

Maybe we can try this method.

@afc163 afc163 closed this as completed in #87 Apr 3, 2023
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 a pull request may close this issue.

1 participant