Closed HaveF closed 1 year ago
Hi @HaveF thanks for reporting the issue! Thanks for linking that code too, that’s interesting.
The json in the model’s response is probably not syntactically correct, so it’s not being parsed correctly. OpenAI just released some new features that may fix this problem once I get them integrated: https://news.ycombinator.com/item?id=36330972
If that works then this problem should be solved. I’ll mention this issue in the PR so that you’re notified when the fix is merged in.
For now, if you have GPT4 access then try that as GPT4 is much better at responding with valid json. You could also retry a few times. I’ve seen examples of this error resolving with a few attempts.
I’m excited to work on this, so hopefully it shouldn’t be too long before this is fixed.
Take care!
Oh, yes. This area develop too fast. I believe function call will fit your logic well, especially the function_call: "none"
part.
Don't bother to notified me, I'm watching the release of the tools :D
Thanks for your tools again!
Hi, Thanks for your repo. I don't know why the below not works:
it is a minimal code to reproduce :
prompt: Make sample.go more efficient.
Btw, I read [a post today]https://github.com/minimaxir/simpleaichat/blob/main/examples/notebooks/simpleaichat_coding.ipynb). maybe we can use tricks in it, like
"stop": ["``` ", "```\n"]
etc.