Skip to content

Commit

Permalink
feat: Add chatgpt-4o-latest to model catalog (#527)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmigloz authored Aug 17, 2024
1 parent c5387b5 commit ec82c76
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/langchain_openai/lib/src/chat_models/types.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import 'package:meta/meta.dart';
/// Options to pass into the OpenAI Chat Model.
///
/// Available [ChatOpenAIOptions.model]s:
/// - `chatgpt-4o-latest`
/// - `gpt-4`
/// - `gpt-4-32k`
/// - `gpt-4-32k-0314`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,8 @@ class CreateChatCompletionRequest with _$CreateChatCompletionRequest {

/// Available completion models. Mind that the list may not be exhaustive nor up-to-date.
enum ChatCompletionModels {
@JsonValue('chatgpt-4o-latest')
chatgpt4oLatest,
@JsonValue('gpt-4')
gpt4,
@JsonValue('gpt-4-32k')
Expand Down

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

1 change: 1 addition & 0 deletions packages/openai_dart/oas/openapi_curated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1806,6 +1806,7 @@ components:
Available completion models. Mind that the list may not be exhaustive nor up-to-date.
enum:
[
"chatgpt-4o-latest",
"gpt-4",
"gpt-4-32k",
"gpt-4-32k-0314",
Expand Down
1 change: 1 addition & 0 deletions packages/openai_dart/oas/openapi_official.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8173,6 +8173,7 @@ components:
"gpt-4o",
"gpt-4o-2024-05-13",
"gpt-4o-2024-08-06",
"chatgpt-4o-latest",
"gpt-4o-mini",
"gpt-4o-mini-2024-07-18",
"gpt-4-turbo",
Expand Down

0 comments on commit ec82c76

Please sign in to comment.