mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-21 20:04:55 +00:00
Add gpt-5.1-codex to model list
This commit is contained in:
parent
9b08f92dd9
commit
e0c2745989
2 changed files with 38 additions and 1 deletions
|
|
@ -295,7 +295,7 @@ async function generateModels() {
|
||||||
// Combine models (models.dev has priority)
|
// Combine models (models.dev has priority)
|
||||||
const allModels = [...modelsDevModels, ...openRouterModels];
|
const allModels = [...modelsDevModels, ...openRouterModels];
|
||||||
|
|
||||||
// Add missing gpt models (can't use tools)
|
// Add missing gpt models
|
||||||
if (!allModels.some(m => m.provider === "openai" && m.id === "gpt-5-chat-latest")) {
|
if (!allModels.some(m => m.provider === "openai" && m.id === "gpt-5-chat-latest")) {
|
||||||
allModels.push({
|
allModels.push({
|
||||||
id: "gpt-5-chat-latest",
|
id: "gpt-5-chat-latest",
|
||||||
|
|
@ -316,6 +316,26 @@ async function generateModels() {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!allModels.some(m => m.provider === "openai" && m.id === "gpt-5.1-codex")) {
|
||||||
|
allModels.push({
|
||||||
|
id: "gpt-5.1-codex",
|
||||||
|
name: "GPT-5.1 Codex",
|
||||||
|
api: "openai-responses",
|
||||||
|
baseUrl: "https://api.openai.com/v1",
|
||||||
|
provider: "openai",
|
||||||
|
reasoning: true,
|
||||||
|
input: ["text", "image"],
|
||||||
|
cost: {
|
||||||
|
input: 1.25,
|
||||||
|
output: 5,
|
||||||
|
cacheRead: 0.125,
|
||||||
|
cacheWrite: 1.25,
|
||||||
|
},
|
||||||
|
contextWindow: 400000,
|
||||||
|
maxTokens: 128000,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
// Add missing Grok models
|
// Add missing Grok models
|
||||||
if (!allModels.some(m => m.provider === "xai" && m.id === "grok-code-fast-1")) {
|
if (!allModels.some(m => m.provider === "xai" && m.id === "grok-code-fast-1")) {
|
||||||
allModels.push({
|
allModels.push({
|
||||||
|
|
|
||||||
|
|
@ -1097,6 +1097,23 @@ export const MODELS = {
|
||||||
contextWindow: 128000,
|
contextWindow: 128000,
|
||||||
maxTokens: 16384,
|
maxTokens: 16384,
|
||||||
} satisfies Model<"openai-responses">,
|
} satisfies Model<"openai-responses">,
|
||||||
|
"gpt-5.1-codex": {
|
||||||
|
id: "gpt-5.1-codex",
|
||||||
|
name: "GPT-5.1 Codex",
|
||||||
|
api: "openai-responses",
|
||||||
|
provider: "openai",
|
||||||
|
baseUrl: "https://api.openai.com/v1",
|
||||||
|
reasoning: true,
|
||||||
|
input: ["text", "image"],
|
||||||
|
cost: {
|
||||||
|
input: 1.25,
|
||||||
|
output: 5,
|
||||||
|
cacheRead: 0.125,
|
||||||
|
cacheWrite: 1.25,
|
||||||
|
},
|
||||||
|
contextWindow: 400000,
|
||||||
|
maxTokens: 128000,
|
||||||
|
} satisfies Model<"openai-responses">,
|
||||||
},
|
},
|
||||||
groq: {
|
groq: {
|
||||||
"llama-3.1-8b-instant": {
|
"llama-3.1-8b-instant": {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue