Skip to content

Commit

Permalink
feat: Add gpt-4-0125-preview and gpt-4-turbo-preview in model catalog (
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmigloz committed Jan 26, 2024
1 parent f80729a commit f5a7886
Show file tree
Hide file tree
Showing 6 changed files with 72 additions and 62 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ sealed class ChatCompletionUserMessageContent
with _$ChatCompletionUserMessageContent {
const ChatCompletionUserMessageContent._();

/// An array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts. Image input is only supported when using the `gpt-4-visual-preview` model.
/// An array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts. Image input is only supported when using the `gpt-4-vision-preview` model.
const factory ChatCompletionUserMessageContent.parts(
List<ChatCompletionMessageContentPart> value,
) = ChatCompletionMessageContentParts;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class CreateChatCompletionRequest with _$CreateChatCompletionRequest {
@Default(0.0)
double? presencePenalty,

/// An object specifying the format that the model must output. Compatible with `gpt-4-1106-preview` and `gpt-3.5-turbo-1106`.
/// An object specifying the format that the model must output. Compatible with [GPT-4 Turbo](https://platform.openai.com/docs/models/gpt-4-and-gpt-4-turbo) and `gpt-3.5-turbo-1106`.
///
/// Setting to `{ "type": "json_object" }` enables JSON mode, which guarantees the message the model generates is valid JSON.
///
Expand Down Expand Up @@ -255,8 +255,12 @@ enum ChatCompletionModels {
gpt432k0314,
@JsonValue('gpt-4-32k-0613')
gpt432k0613,
@JsonValue('gpt-4-turbo-preview')
gpt4TurboPreview,
@JsonValue('gpt-4-1106-preview')
gpt41106Preview,
@JsonValue('gpt-4-0125-preview')
gpt40125Preview,
@JsonValue('gpt-4-vision-preview')
gpt4VisionPreview,
@JsonValue('gpt-3.5-turbo')
Expand Down Expand Up @@ -333,7 +337,7 @@ class _ChatCompletionModelConverter
// CLASS: ChatCompletionResponseFormat
// ==========================================

/// An object specifying the format that the model must output. Compatible with `gpt-4-1106-preview` and `gpt-3.5-turbo-1106`.
/// An object specifying the format that the model must output. Compatible with [GPT-4 Turbo](https://platform.openai.com/docs/models/gpt-4-and-gpt-4-turbo) and `gpt-3.5-turbo-1106`.
///
/// Setting to `{ "type": "json_object" }` enables JSON mode, which guarantees the message the model generates is valid JSON.
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3386,7 +3386,7 @@ mixin _$CreateChatCompletionRequest {
@JsonKey(name: 'presence_penalty', includeIfNull: false)
double? get presencePenalty => throw _privateConstructorUsedError;

/// An object specifying the format that the model must output. Compatible with `gpt-4-1106-preview` and `gpt-3.5-turbo-1106`.
/// An object specifying the format that the model must output. Compatible with [GPT-4 Turbo](https://platform.openai.com/docs/models/gpt-4-and-gpt-4-turbo) and `gpt-3.5-turbo-1106`.
///
/// Setting to `{ "type": "json_object" }` enables JSON mode, which guarantees the message the model generates is valid JSON.
///
Expand Down Expand Up @@ -3976,7 +3976,7 @@ class _$CreateChatCompletionRequestImpl extends _CreateChatCompletionRequest {
@JsonKey(name: 'presence_penalty', includeIfNull: false)
final double? presencePenalty;

/// An object specifying the format that the model must output. Compatible with `gpt-4-1106-preview` and `gpt-3.5-turbo-1106`.
/// An object specifying the format that the model must output. Compatible with [GPT-4 Turbo](https://platform.openai.com/docs/models/gpt-4-and-gpt-4-turbo) and `gpt-3.5-turbo-1106`.
///
/// Setting to `{ "type": "json_object" }` enables JSON mode, which guarantees the message the model generates is valid JSON.
///
Expand Down Expand Up @@ -4258,7 +4258,7 @@ abstract class _CreateChatCompletionRequest
double? get presencePenalty;
@override

/// An object specifying the format that the model must output. Compatible with `gpt-4-1106-preview` and `gpt-3.5-turbo-1106`.
/// An object specifying the format that the model must output. Compatible with [GPT-4 Turbo](https://platform.openai.com/docs/models/gpt-4-and-gpt-4-turbo) and `gpt-3.5-turbo-1106`.
///
/// Setting to `{ "type": "json_object" }` enables JSON mode, which guarantees the message the model generates is valid JSON.
///
Expand Down
2 changes: 2 additions & 0 deletions packages/openai_dart/lib/src/generated/schema/schema.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f5a7886

Please sign in to comment.