-
Notifications
You must be signed in to change notification settings - Fork 472
Open
Description
The OpenAPI raises Issue when using the pydantic model .model_dump for EasyInput Message when simulating assistant <-> user exchange, as the assistant content can only be set to "input_text"
EasyInputMessage:
type: object
title: Input message
description: |
A message input to the model with a role indicating instruction following
hierarchy. Instructions given with the `developer` or `system` role take
precedence over instructions given with the `user` role. Messages with the
`assistant` role are presumed to have been generated by the model in previous
interactions.
properties:
role:
type: string
description: |
The role of the message input. One of `user`, `assistant`, `system`, or
`developer`.
enum:
- user
- assistant
- system
- developer
content:
description: |
Text, image, or audio input to the model, used to generate a response.
Can also contain previous assistant responses.
anyOf:
- type: string
title: Text input
description: |
A text input to the model.
- $ref: '#/components/schemas/InputMessageContentList'
type:
type: string
description: |
The type of the message input. Always `message`.
enum:
- message
x-stainless-const: true
required:
- role
- content
Metadata
Metadata
Assignees
Labels
No labels