Skip to content

Latest commit

 

History

History
68 lines (45 loc) · 2.07 KB

File metadata and controls

68 lines (45 loc) · 2.07 KB
page_title subcategory description
openai_chat_completions Data Source - terraform-provider-openai

openai_chat_completions (Data Source)

Schema

Optional

  • after (String) Identifier for the last chat completion from the previous pagination request
  • limit (Number) Number of chat completions to retrieve (defaults to 20, max 100)
  • metadata (Map of String) A list of metadata keys to filter the chat completions by
  • model (String) The model used to generate the chat completions
  • order (String) Sort order for chat completions by timestamp. Use 'asc' for ascending order or 'desc' for descending order. Defaults to 'asc'.

Read-Only

  • chat_completions (List of Object) The list of chat completions (see below for nested schema)
  • has_more (Boolean) Whether there are more chat completions to retrieve
  • id (String) The ID of this resource.

Nested Schema for chat_completions

Read-Only:

  • choices (List of Object) (see below for nested schema)
  • created (Number)
  • id (String)
  • model (String)
  • object (String)
  • usage (Map of Number)

Nested Schema for chat_completions.choices

Read-Only:

Nested Schema for chat_completions.choices.message

Read-Only:

Nested Schema for chat_completions.choices.message.function_call

Read-Only:

  • arguments (String)
  • name (String)