Hacker News new | ask | show | jobs
by grncdr 1201 days 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 ?

The "chat format" looks simple, extensible, and clean. The JSON format shown in 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.

1 comments

I 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