Skip to content

Commit 5344eb6

Browse files
authored
Merge pull request #258 from PySpur-Dev/feat/o1pro
feat: add o1-pro
2 parents 9f48c5e + d46769e commit 5344eb6

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

backend/pyspur/nodes/llm/_model_info.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ class LLMModel(BaseModel):
8282

8383
class LLMModels(str, Enum):
8484
# OpenAI Models
85+
O1_PRO = "openai/o1-pro"
8586
O3_MINI = "openai/o3-mini"
8687
O3_MINI_2025_01_31 = "openai/o3-mini-2025-01-31"
8788
GPT_4O_MINI = "openai/gpt-4o-mini"
@@ -205,6 +206,18 @@ def get_model_info(cls, model_id: str) -> LLMModel | None:
205206
supports_temperature=False,
206207
).add_mime_categories({MimeCategory.IMAGES}),
207208
),
209+
cls.O1_PRO.value: LLMModel(
210+
id=cls.O1_PRO.value,
211+
provider=LLMProvider.OPENAI,
212+
name="O1 Pro",
213+
constraints=ModelConstraints(
214+
max_tokens=100000,
215+
max_temperature=2.0,
216+
supports_max_tokens=False,
217+
supports_temperature=False,
218+
supports_JSON_output=True,
219+
).add_mime_categories({MimeCategory.IMAGES}),
220+
),
208221
cls.O1_2024_12_17.value: LLMModel(
209222
id=cls.O1_2024_12_17.value,
210223
provider=LLMProvider.OPENAI,

0 commit comments

Comments
 (0)