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.ChatPromptMessage

One 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 1682316898

Fields