Skip to content

Commit

Permalink
feat: added support for o1-preview and o1-mini
Browse files Browse the repository at this point in the history
  • Loading branch information
xavidop committed Sep 20, 2024
1 parent e4d6735 commit 03e23fd
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,13 @@ plugins/.DS_Store
lerna-debug.log
.DS_Store

docs
docs

# Yarn
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
34 changes: 34 additions & 0 deletions src/github_llms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,38 @@ export const openAIGpt4oMini = modelRef({
configSchema: GenerationCommonConfigSchema,
});

export const openAIO1Preview = modelRef({
name: "github/o1-preview",
info: {
versions: ["o1-preview"],
label: "OpenAI - o1-preview",
supports: {
multiturn: true,
tools: true,
media: true,
systemRole: true,
output: ["text", "json"],
},
},
configSchema: GenerationCommonConfigSchema,
});

export const openAIO1Mini = modelRef({
name: "github/o1-mini",
info: {
versions: ["o1-mini"],
label: "OpenAI - o1-mini",
supports: {
multiturn: true,
tools: true,
media: true,
systemRole: true,
output: ["text", "json"],
},
},
configSchema: GenerationCommonConfigSchema,
});

export const metaLlama370bInstruct = modelRef({
name: "github/meta-llama-3-70b-instruct",
info: {
Expand Down Expand Up @@ -384,6 +416,8 @@ export const microsoftPhi35Mini128kInstruct = modelRef({
export const SUPPORTED_GITHUB_MODELS: Record<string, any> = {
"gpt-4o": openAIGpt4o,
"gpt-4o-mini": openAIGpt4oMini,
"o1-preview": openAIO1Preview,
"o1-mini": openAIO1Mini,
"meta-llama-3-70b-instruct": metaLlama370bInstruct,
"meta-llama-3-8b-instruct": metaLlama38bInstruct,
"meta-llama-3.1-405b-instruct": metaLlama31405bInstruct,
Expand Down
4 changes: 4 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import {
githubModel,
openAIGpt4o,
openAIGpt4oMini,
openAIO1Preview,
openAIO1Mini,
metaLlama370bInstruct,
metaLlama38bInstruct,
metaLlama31405bInstruct,
Expand Down Expand Up @@ -38,6 +40,8 @@ import {
export {
openAIGpt4o,
openAIGpt4oMini,
openAIO1Preview,
openAIO1Mini,
metaLlama370bInstruct,
metaLlama38bInstruct,
metaLlama31405bInstruct,
Expand Down

0 comments on commit 03e23fd

Please sign in to comment.