← API reference
CANONICAL TYPE REFERENCE

OpenAIConfigurationInput

Configuration for OpenAI adapter

apiKeyString

OpenAI API key. Optional on update: omit it (or send an empty string) to keep the stored key — it is never readable, so a client has nothing to send back. Required to create an adapter.

Organization ID (optional)

baseURLString

Base URL for custom endpoints (optional)

Default model for chat (optional)

Default model for code (optional)

Default model for completions (optional)

View exact SDL
"""Configuration for OpenAI adapter"""
input OpenAIConfigurationInput {
  """
  OpenAI API key. Optional on update: omit it (or send an empty string) to keep the stored key — it is never readable, so a client has nothing to send back. Required to create an adapter.
  """
  apiKey: String
  """Organization ID (optional)"""
  organizationId: String
  """Base URL for custom endpoints (optional)"""
  baseURL: String
  """Default model for chat (optional)"""
  defaultChatModel: String
  """Default model for code (optional)"""
  defaultCodeModel: String
  """Default model for completions (optional)"""
  defaultCompletionModel: String
}

One stable address across all schema views. Follow a field’s type to explore connections between domains.