chore: add support for gpt 5.1
This commit is contained in:
parent
978a79dd95
commit
a5e93dd49e
2 changed files with 10 additions and 1 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import { LLMOptions } from "../../index.js";
|
||||
import { allModelProviders } from "@continuedev/llm-info";
|
||||
import { LLMOptions } from "../../index.js";
|
||||
import OpenAI from "./OpenAI.js";
|
||||
|
||||
/**
|
||||
|
|
@ -183,6 +183,7 @@ class CometAPI extends OpenAI {
|
|||
*/
|
||||
private static RECOMMENDED_MODELS = [
|
||||
// GPT series
|
||||
"gpt-5.1",
|
||||
"gpt-5-chat-latest",
|
||||
"chatgpt-4o-latest",
|
||||
"gpt-5-mini",
|
||||
|
|
|
|||
|
|
@ -92,6 +92,14 @@ export const OpenAi: ModelProvider = {
|
|||
regex: /gpt-5-codex/,
|
||||
recommendedFor: ["chat"],
|
||||
},
|
||||
{
|
||||
model: "gpt-5.1",
|
||||
displayName: "GPT-5.1",
|
||||
contextLength: 128000,
|
||||
maxCompletionTokens: 16384,
|
||||
regex: /^gpt-5.1$/,
|
||||
recommendedFor: ["chat"],
|
||||
},
|
||||
// gpt-4o
|
||||
{
|
||||
model: "gpt-4o",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue