Skip to content

Latest commit

 

History

History
61 lines (42 loc) · 1.6 KB

File metadata and controls

61 lines (42 loc) · 1.6 KB
page_title subcategory description
openai_messages Data Source - terraform-provider-openai

openai_messages (Data Source)

Schema

Required

  • thread_id (String) The ID of the thread containing the messages

Optional

  • after (String) A cursor for pagination. Return objects after this message ID.
  • before (String) A cursor for pagination. Return objects before this message ID.
  • limit (Number) A limit on the number of messages to be returned. Maximum of 100.
  • order (String) Sort order by creation timestamp. One of: asc, desc (default)

Read-Only

  • first_id (String) The ID of the first message in the list
  • has_more (Boolean) Whether there are more items available in the list
  • id (String) The ID of this resource.
  • last_id (String) The ID of the last message in the list
  • messages (List of Object) List of messages in the thread (see below for nested schema)

Nested Schema for messages

Read-Only:

  • assistant_id (String)
  • attachments (List of Object) (see below for nested schema)
  • content (String)
  • created_at (Number)
  • id (String)
  • metadata (Map of String)
  • object (String)
  • role (String)
  • run_id (String)
  • thread_id (String)

Nested Schema for messages.attachments

Read-Only:

  • assistant_id (String)
  • created_at (Number)
  • id (String)
  • type (String)