zed
zed copied to clipboard
OpenAI API access does not work with "Pending Invoice" pay-as-you-go billing
Check for existing issues
- [X] Completed
Describe the bug / provide steps to reproduce it
The "assistant" function does not work, while I could normally access the OpenAI API with the same API key elsewhere. I have tried the solutions in #6685 but it's still not working. The editor is opened via zed .
after I set the proxy and check the connection with OpenAI, so there should not be a connection issue I think.
My OpenAI account is under "Pending Invoice" pay-as-you-go billing. The bill is paid monthly. Here is a screenshot from my OpenAI account.
Environment
Zed: v0.123.6 (Zed) OS: macOS 14.1.0 Memory: 16 GiB Architecture: aarch64
If applicable, add mockups / screenshots to help explain present your vision of the feature
No response
If applicable, attach your ~/Library/Logs/Zed/Zed.log
file to this issue.
If you only need the most recent lines, you can run the zed: open log
command palette action to see the last 1000.
The related line would be
2024-02-29T16:39:34+08:00 [ERROR] crates/ai/src/providers/open_ai/completion.rs:235: NotPresent