Skip to content

Commit

Permalink
Add support for 'o1-preview' and 'o1-mini' models
Browse files Browse the repository at this point in the history
Add support for 'o1-preview' and 'o1-mini' model names in the OpenAI API.

* **Update `models.json`**:
  - Add 'o1-preview' model details with appropriate parameters and metadata.
  - Add 'o1-mini' model details with appropriate parameters and metadata.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/janhq/jan?shareId=XXXX-XXXX-XXXX-XXXX).
  • Loading branch information
RONNCC committed Sep 13, 2024
1 parent 0cce4a0 commit 789a22d
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions extensions/inference-openai-extension/resources/models.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,5 +119,65 @@
]
},
"engine": "openai"
},
{
"sources": [
{
"url": "https://openai.com"
}
],
"id": "o1-preview",
"object": "model",
"name": "OpenAI o1-preview",
"version": "1.0",
"description": "OpenAI o1-preview is a new model with complex reasoning",
"format": "api",
"settings": {},
"parameters": {
"max_tokens": 4096,
"temperature": 0.7,
"top_p": 0.95,
"stream": true,
"stop": [],
"frequency_penalty": 0,
"presence_penalty": 0
},
"metadata": {
"author": "OpenAI",
"tags": [
"General"
]
},
"engine": "openai"
},
{
"sources": [
{
"url": "https://openai.com"
}
],
"id": "o1-mini",
"object": "model",
"name": "OpenAI o1-mini",
"version": "1.0",
"description": "OpenAI o1-mini is a lightweight reasoning model",
"format": "api",
"settings": {},
"parameters": {
"max_tokens": 4096,
"temperature": 0.7,
"top_p": 0.95,
"stream": true,
"stop": [],
"frequency_penalty": 0,
"presence_penalty": 0
},
"metadata": {
"author": "OpenAI",
"tags": [
"General"
]
},
"engine": "openai"
}
]

0 comments on commit 789a22d

Please sign in to comment.