effect-io-ai

Package: @effect/ai-openai-compat
Module: OpenAiClient

OpenAiClient.ChatCompletionResponseFormat

JSON response format configuration for chat completion requests.

Signature

type ChatCompletionResponseFormat = | {
    readonly type: "json_object"
  }
  | {
    readonly type: "json_schema"
    readonly json_schema: {
      readonly name: string
      readonly schema: JsonObject
      readonly description?: string | undefined
      readonly strict?: boolean | undefined
    }
  }

Source

Since v4.0.0