create_code uses gpt-4 even if set to gpt-3.5
PhillipRt opened this issue · comments
Phillip Rath commented
This leads to this error every time if you don't have access to gpt-4:
Error calling API with status code 404 and message "{
"error": {
"message": "The model: gpt-4
does not exist",
"type": "invalid_request_error",
"param": null,
"code": "model_not_found"
}
}
"
Zohaib Rauf commented
Thanks for reporting that bug, I’ll look into it.
Mister Maximus commented
I'm guessing its because the user does not have GPT-4 API. Add a check at the start to see what version of GPT are available, or better 3 options, GPT-4 only, GPT-3 general & GPT-4 code, GPT-3 only.
Zohaib Rauf commented
@PhillipRt issues should be fixed. I've made the model being used consistent across all plugins based on selection.