3 ms·
No. I have an app that uses both. You do not have to implement chat. All you have to do is 1) call the chat completion API, 2) structure your prompt in JSON as
by brookst 4y ago
No. I have an app that uses both. You do not have to implement chat.
All you have to do is 1) call the chat completion API, 2) structure your prompt in JSON as system+agent+user, and 3) get the completion from a different JSON node. You don’t have to round trip or maintain context or anything.
- QuadmasterXLII 4y agoI'm seeing that the chat api wants to always wrap its response in "```python ```" when it generates code. Is there a prompt trick to stop this, or should I just be stripping it manually