4 ms·
It shouldn't be too bad. The responses API accepts the same basic interface as the chat completion one.
by dtagames 2y ago
It shouldn't be too bad. The responses API accepts the same basic interface as the chat completion one.
- Tiberium 2y agoEven the basic interface is different, actually - "input" vs "messages", no "max_completion_tokens" nor "max_tokens". That said, changing those things is quite easy.
- simonw 2y agoThe harder bit is the streaming response format - that's changed a bunch, and my tool supports both streaming and non-streaming for both Python sync and async IO - so there are four different cases I need to consider.
- dtagames 2y agoIf it's easier, just ask Cursor to make the upgrade. Give it a link to the OpenAI doc. You might be surprised at how easy it is.