Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 1.48 KB

File metadata and controls

46 lines (32 loc) · 1.48 KB
page_title subcategory description
openai_model_response Data Source - terraform-provider-openai
Data source for retrieving OpenAI model response information

openai_model_response (Data Source)

Data source for retrieving OpenAI model response information

Schema

Required

  • response_id (String) The ID of the model response to retrieve

Optional

  • include (List of String) Additional fields to include in the response. Valid values include: usage.input_tokens_details, usage.output_tokens_details, file_search_results, web_search_results, message_files.url, computation_files.url

Read-Only

  • created_at (Number) The timestamp when the response was created
  • id (String) The ID of this resource.
  • input_items (List of Object) The input items for the model response (see below for nested schema)
  • model (String) The ID of the model used for the response
  • output (Map of String) The output of the model response
  • status (String) The status of the response (e.g., 'completed')
  • temperature (Number) The temperature used for generation
  • top_p (Number) The top_p value used for generation
  • usage (Map of String) Token usage statistics for the request

Nested Schema for input_items

Read-Only:

  • content (String)
  • id (String)
  • role (String)
  • type (String)