4 ms·
Could you clarify whether the JSON format shown here is really intended to be used by developers vs. the "chat format" shown in https://platform.openai.com/docs
by grncdr 4y ago
Could you clarify whether the JSON format shown here is really intended to be used by developers vs. the "chat format" shown in https://platform.openai.com/docs/api-reference/chat/create https://platform.openai.com/docs/api-reference/chat/create ?
The "chat format" looks simple, extensible, and clean. The JSON format shown in https://github.com/openai/openai-python/blob/main/chatml.md https://github.com/openai/openai-python/blob/main/chatml.md looks ad-hoc, confusing, and (as noted by others) likely to lead to mistakes and injections.
- blensor 4y agoI tried it with their python library and that expects a list of dicts with role and content fields. And that seems to translate 1:1 to the API call where it's also expecting that and not chatml markup