openai-python/chatml.md at main · openai/openai-python.
The OpenAI Python library provides convenient access to the OpenAI API from applications written in the Python language. - openai-python/chatml.md at main · openai/openai-python
Read in full here:
This file has been truncated.
(This document is a preview of the underlying format consumed by
ChatGPT models. As a developer, you can use our [higher-level
API](https://platform.openai.com/docs/guides/chat) and won't need to
iteract directly with this format today — but expect to have the
option in the future!)
Traditionally, GPT models consumed unstructured text. ChatGPT models
instead expect a structured format, called Chat Markup Language
(ChatML for short).
ChatML documents consists of a sequence of messages. Each message
contains a header (which today consists of who said it, but in the
future will contain other metadata) and contents (which today is a
text payload, but in the future will contain other datatypes).
We are still evolving ChatML, but the current version (ChatML v0) can
be represented with our upcoming "list of dicts" JSON format as
"system\nYou are ChatGPT, a large language model trained by OpenAI. Answer as concisely as possible.\nKnowledge cutoff: 2021-09-01\nCurrent date: 2023-03-01",
This thread was posted by one of our members via one of our news source trackers.
2 March 2023 14:46
Corresponding tweet for this thread:
Share link for this tweet.