Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ private constructor(
fun conditions(): Optional<JourneyConditionsField> = conditions.getOptional("conditions")

/**
* A supported AI model id. Requests with an unknown id may be rejected with a 400 that lists
* the supported ids. Supported ids: `claude-fable-5-1`, `claude-opus-5-5`, `claude-sonnet-5-5`,
* `claude-haiku-5-5`, `gpt-6-astra`, `gpt-5.5`, `gpt-5.4`, `gpt-6.1-sol`, `gpt-5.4-mini`,
* `gpt-5.4-nano`, `gpt-6-luna`.
*
* @throws CourierInvalidDataException if the JSON field has an unexpected type (e.g. if the
* server responded with an unexpected value).
*/
Expand Down Expand Up @@ -276,6 +281,12 @@ private constructor(
fun conditions(conditionNestedGroup: JourneyConditionNestedGroup) =
conditions(JourneyConditionsField.ofConditionNestedGroup(conditionNestedGroup))

/**
* A supported AI model id. Requests with an unknown id may be rejected with a 400 that
* lists the supported ids. Supported ids: `claude-fable-5-1`, `claude-opus-5-5`,
* `claude-sonnet-5-5`, `claude-haiku-5-5`, `gpt-6-astra`, `gpt-5.5`, `gpt-5.4`,
* `gpt-6.1-sol`, `gpt-5.4-mini`, `gpt-5.4-nano`, `gpt-6-luna`.
*/
fun model(model: String) = model(JsonField.of(model))

/**
Expand Down
Loading