openai.internal.ChatPromptMessage
One prompt message after role resolution, before the content encoding is chosen (string vs parts) — merging adjacent same-role messages happens here.
Reference version
Signature
class openai.internal.ChatPromptMessageOne prompt message after role resolution, before the content encoding is chosen (string vs parts) — merging adjacent same-role messages happens here.
Source:<builtin>/openai/ns_internal/chat.bamlbytes 16823–16898
Fields
role
string