So I was working on a Rust based project which involves using OpenAI gpt-4 api. When I test the function, it panicks/shows an error at a point:
"thread ‘models::agents::agent_backend::tests::tests_backend_developer’ panicked at src\helpers\general.rs:207:14:
Failed twice to call OpenAI: reqwest::Error { kind: Decode, source: Error(“missing field choices
”, line: 8, column: 1) }
note: run with RUST_BACKTRACE=1
environment variable to display a backtrace
test models::agents::agent_backend::tests::tests_backend_developer … FAILED "
The issue here is that when I use the Gpt-3.5 api, it gets tested successfully. So I know the issue is not with the code, it should be with the API. What can that issue be?