From c4ddfd0fe64805b7123146f4db16577a4754f807 Mon Sep 17 00:00:00 2001 From: Ronnie Ghose <1313566+RONNCC@users.noreply.github.com> Date: Fri, 13 Sep 2024 14:16:01 -0700 Subject: [PATCH] Add support for 'o1-preview' and 'o1-mini' models 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). --- .../resources/models.json | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/extensions/inference-openai-extension/resources/models.json b/extensions/inference-openai-extension/resources/models.json index 6852a1892e..72517d540b 100644 --- a/extensions/inference-openai-extension/resources/models.json +++ b/extensions/inference-openai-extension/resources/models.json @@ -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" } ]