Skip to content

Commit

Permalink
feat: Add OpenAI o1-preview and o1-mini to model catalog (davidmigloz…
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmigloz authored and KennethKnudsen97 committed Oct 1, 2024
1 parent 364842c commit 8ffbe8c
Show file tree
Hide file tree
Showing 11 changed files with 7,983 additions and 5,400 deletions.
22 changes: 11 additions & 11 deletions packages/langchain/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,17 @@ Popular third-party integrations (e.g. [`langchain_openai`](https://pub.dev/pack

> Depend on an integration-specific package if you want to use the specific integration.
| Package | Version | Description |
|---------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [langchain_anthropic](https://pub.dev/packages/langchain_anthropic) | [![langchain_anthropic](https://img.shields.io/pub/v/langchain_anthropic.svg)](https://pub.dev/packages/langchain_anthropic) | Anthopic integration (Claude 3.5 Sonnet, Opus, Haiku, Instant, etc.) |
| [langchain_chroma](https://pub.dev/packages/langchain_chroma) | [![langchain_chroma](https://img.shields.io/pub/v/langchain_chroma.svg)](https://pub.dev/packages/langchain_chroma) | Chroma vector database integration |
| [langchain_firebase](https://pub.dev/packages/langchain_firebase) | [![langchain_firebase](https://img.shields.io/pub/v/langchain_firebase.svg)](https://pub.dev/packages/langchain_firebase) | Firebase integration (VertexAI for Firebase (Gemini 1.5 Pro, Gemini 1.5 Flash, etc.)) |
| [langchain_google](https://pub.dev/packages/langchain_google) | [![langchain_google](https://img.shields.io/pub/v/langchain_google.svg)](https://pub.dev/packages/langchain_google) | Google integration (GoogleAI, VertexAI, Gemini, PaLM 2, Embeddings, Vector Search, etc.) |
| [langchain_mistralai](https://pub.dev/packages/langchain_mistralai) | [![langchain_mistralai](https://img.shields.io/pub/v/langchain_mistralai.svg)](https://pub.dev/packages/langchain_mistralai) | Mistral AI integration (Mistral-7B, Mixtral 8x7B, Mixtral 8x22B, Mistral Small, Mistral Large, embeddings, etc.). |
| [langchain_ollama](https://pub.dev/packages/langchain_ollama) | [![langchain_ollama](https://img.shields.io/pub/v/langchain_ollama.svg)](https://pub.dev/packages/langchain_ollama) | Ollama integration (Llama 3.2, Gemma 2, Phi-3.5, Mistral nemo, WizardLM-2, CodeGemma, Command R, LLaVA, DBRX, Qwen, Dolphin, DeepSeek Coder, Vicuna, Orca, etc.) |
| [langchain_openai](https://pub.dev/packages/langchain_openai) | [![langchain_openai](https://img.shields.io/pub/v/langchain_openai.svg)](https://pub.dev/packages/langchain_openai) | OpenAI integration (GPT-3.5 Turbo, GPT-4, GPT-4o, Embeddings, Tools, Vision, DALL·E 3, etc.) and OpenAI Compatible services (TogetherAI, Anyscale, OpenRouter, One API, Groq, Llamafile, GPT4All, etc.) |
| [langchain_pinecone](https://pub.dev/packages/langchain_pinecone) | [![langchain_pinecone](https://img.shields.io/pub/v/langchain_pinecone.svg)](https://pub.dev/packages/langchain_pinecone) | Pinecone vector database integration |
| [langchain_supabase](https://pub.dev/packages/langchain_supabase) | [![langchain_supabase](https://img.shields.io/pub/v/langchain_supabase.svg)](https://pub.dev/packages/langchain_supabase) | Supabase Vector database integration |
| Package | Version | Description |
|---------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [langchain_anthropic](https://pub.dev/packages/langchain_anthropic) | [![langchain_anthropic](https://img.shields.io/pub/v/langchain_anthropic.svg)](https://pub.dev/packages/langchain_anthropic) | Anthopic integration (Claude 3.5 Sonnet, Opus, Haiku, Instant, etc.) |
| [langchain_chroma](https://pub.dev/packages/langchain_chroma) | [![langchain_chroma](https://img.shields.io/pub/v/langchain_chroma.svg)](https://pub.dev/packages/langchain_chroma) | Chroma vector database integration |
| [langchain_firebase](https://pub.dev/packages/langchain_firebase) | [![langchain_firebase](https://img.shields.io/pub/v/langchain_firebase.svg)](https://pub.dev/packages/langchain_firebase) | Firebase integration (VertexAI for Firebase (Gemini 1.5 Pro, Gemini 1.5 Flash, etc.)) |
| [langchain_google](https://pub.dev/packages/langchain_google) | [![langchain_google](https://img.shields.io/pub/v/langchain_google.svg)](https://pub.dev/packages/langchain_google) | Google integration (GoogleAI, VertexAI, Gemini, PaLM 2, Embeddings, Vector Search, etc.) |
| [langchain_mistralai](https://pub.dev/packages/langchain_mistralai) | [![langchain_mistralai](https://img.shields.io/pub/v/langchain_mistralai.svg)](https://pub.dev/packages/langchain_mistralai) | Mistral AI integration (Mistral-7B, Mixtral 8x7B, Mixtral 8x22B, Mistral Small, Mistral Large, embeddings, etc.). |
| [langchain_ollama](https://pub.dev/packages/langchain_ollama) | [![langchain_ollama](https://img.shields.io/pub/v/langchain_ollama.svg)](https://pub.dev/packages/langchain_ollama) | Ollama integration (Llama 3.2, Gemma 2, Phi-3.5, Mistral nemo, WizardLM-2, CodeGemma, Command R, LLaVA, DBRX, Qwen, Dolphin, DeepSeek Coder, Vicuna, Orca, etc.) |
| [langchain_openai](https://pub.dev/packages/langchain_openai) | [![langchain_openai](https://img.shields.io/pub/v/langchain_openai.svg)](https://pub.dev/packages/langchain_openai) | OpenAI integration (GPT-4o, o1, Embeddings, Tools, Vision, DALL·E 3, etc.) and OpenAI Compatible services (TogetherAI, Anyscale, OpenRouter, One API, Groq, Llamafile, GPT4All, etc.) |
| [langchain_pinecone](https://pub.dev/packages/langchain_pinecone) | [![langchain_pinecone](https://img.shields.io/pub/v/langchain_pinecone.svg)](https://pub.dev/packages/langchain_pinecone) | Pinecone vector database integration |
| [langchain_supabase](https://pub.dev/packages/langchain_supabase) | [![langchain_supabase](https://img.shields.io/pub/v/langchain_supabase.svg)](https://pub.dev/packages/langchain_supabase) | Supabase Vector database integration |

<p align="center">
<img src="https://raw.githubusercontent.com/davidmigloz/langchain_dart/main/docs/img/langchain_packages.png" width="500">
Expand Down
5 changes: 5 additions & 0 deletions packages/langchain_openai/lib/src/chat_models/types.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import 'package:meta/meta.dart';
/// - `gpt-4o`
/// - `gpt-4o-2024-05-13`
/// - `gpt-4o-2024-08-06`
/// - `gpt-4o-2024-08-06`
/// - `gpt-4o-mini`
/// - `gpt-4o-mini-2024-07-18`
/// - `gpt-3.5-turbo`
Expand All @@ -32,6 +33,10 @@ import 'package:meta/meta.dart';
/// - `gpt-3.5-turbo-0301`
/// - `gpt-3.5-turbo-0613`
/// - `gpt-3.5-turbo-1106`
/// - `o1-mini`
/// - `o1-mini-2024-09-12`
/// - `o1-preview`
/// - `o1-preview-2024-09-12`
///
/// Mind that the list may be outdated.
/// See https://platform.openai.com/docs/models for the latest list.
Expand Down
2 changes: 1 addition & 1 deletion packages/langchain_openai/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: langchain_openai
description: LangChain.dart integration module for OpenAI (GPT-4o, Embeddings, DALL·E, etc.).
description: LangChain.dart integration module for OpenAI (GPT-4o, o1, Embeddings, DALL·E, etc.).
version: 0.7.1
repository: https://github.com/davidmigloz/langchain_dart/tree/main/packages/langchain_openai
issue_tracker: https://github.com/davidmigloz/langchain_dart/issues?q=label:p:langchain_openai
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ class CreateAssistantRequest with _$CreateAssistantRequest {

/// Available assistant models. Mind that the list may not be exhaustive nor up-to-date.
enum AssistantModels {
@JsonValue('chatgpt-4o-latest')
chatgpt4oLatest,
@JsonValue('gpt-4')
gpt4,
@JsonValue('gpt-4-32k')
Expand Down Expand Up @@ -183,6 +185,8 @@ enum AssistantModels {
gpt4o20240513,
@JsonValue('gpt-4o-2024-08-06')
gpt4o20240806,
@JsonValue('gpt-4o-2024-08-06')
gpt4o20240806,
@JsonValue('gpt-4o-mini')
gpt4oMini,
@JsonValue('gpt-4o-mini-2024-07-18')
Expand All @@ -201,6 +205,14 @@ enum AssistantModels {
gpt35Turbo0613,
@JsonValue('gpt-3.5-turbo-1106')
gpt35Turbo1106,
@JsonValue('o1-mini')
o1Mini,
@JsonValue('o1-mini-2024-09-12')
o1Mini20240912,
@JsonValue('o1-preview')
o1Preview,
@JsonValue('o1-preview-2024-09-12')
o1Preview20240912,
}

// ==========================================
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,8 @@ enum ChatCompletionModels {
gpt4o20240513,
@JsonValue('gpt-4o-2024-08-06')
gpt4o20240806,
@JsonValue('gpt-4o-2024-08-06')
gpt4o20240806,
@JsonValue('gpt-4o-mini')
gpt4oMini,
@JsonValue('gpt-4o-mini-2024-07-18')
Expand All @@ -327,6 +329,14 @@ enum ChatCompletionModels {
gpt35Turbo0613,
@JsonValue('gpt-3.5-turbo-1106')
gpt35Turbo1106,
@JsonValue('o1-mini')
o1Mini,
@JsonValue('o1-mini-2024-09-12')
o1Mini20240912,
@JsonValue('o1-preview')
o1Preview,
@JsonValue('o1-preview-2024-09-12')
o1Preview20240912,
}

// ==========================================
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,8 @@ class CreateRunRequest with _$CreateRunRequest {

/// Available models. Mind that the list may not be exhaustive nor up-to-date.
enum RunModels {
@JsonValue('chatgpt-4o-latest')
chatgpt4oLatest,
@JsonValue('gpt-4')
gpt4,
@JsonValue('gpt-4-32k')
Expand Down Expand Up @@ -221,6 +223,8 @@ enum RunModels {
gpt4o20240513,
@JsonValue('gpt-4o-2024-08-06')
gpt4o20240806,
@JsonValue('gpt-4o-2024-08-06')
gpt4o20240806,
@JsonValue('gpt-4o-mini')
gpt4oMini,
@JsonValue('gpt-4o-mini-2024-07-18')
Expand All @@ -239,6 +243,14 @@ enum RunModels {
gpt35Turbo0613,
@JsonValue('gpt-3.5-turbo-1106')
gpt35Turbo1106,
@JsonValue('o1-mini')
o1Mini,
@JsonValue('o1-mini-2024-09-12')
o1Mini20240912,
@JsonValue('o1-preview')
o1Preview,
@JsonValue('o1-preview-2024-09-12')
o1Preview20240912,
}

// ==========================================
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,8 @@ class CreateThreadAndRunRequest with _$CreateThreadAndRunRequest {

/// Available models. Mind that the list may not be exhaustive nor up-to-date.
enum ThreadAndRunModels {
@JsonValue('chatgpt-4o-latest')
chatgpt4oLatest,
@JsonValue('gpt-4')
gpt4,
@JsonValue('gpt-4-32k')
Expand Down Expand Up @@ -220,6 +222,8 @@ enum ThreadAndRunModels {
gpt4o20240513,
@JsonValue('gpt-4o-2024-08-06')
gpt4o20240806,
@JsonValue('gpt-4o-2024-08-06')
gpt4o20240806,
@JsonValue('gpt-4o-mini')
gpt4oMini,
@JsonValue('gpt-4o-mini-2024-07-18')
Expand All @@ -238,6 +242,14 @@ enum ThreadAndRunModels {
gpt35Turbo0613,
@JsonValue('gpt-3.5-turbo-1106')
gpt35Turbo1106,
@JsonValue('o1-mini')
o1Mini,
@JsonValue('o1-mini-2024-09-12')
o1Mini20240912,
@JsonValue('o1-preview')
o1Preview,
@JsonValue('o1-preview-2024-09-12')
o1Preview20240912,
}

// ==========================================
Expand Down
19 changes: 19 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 8ffbe8c

Please sign in to comment.