From d2227ae2c5e2d123980ec4fb26fcb9ae9fb5c846 Mon Sep 17 00:00:00 2001 From: akubesti Date: Thu, 21 Nov 2024 20:10:03 +0700 Subject: [PATCH] feat: add gpt-4o-2024-11-20 --- .../model_providers/openai/llm/_position.yaml | 1 + .../openai/llm/gpt-4o-2024-11-20.yaml | 47 +++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 api/core/model_runtime/model_providers/openai/llm/gpt-4o-2024-11-20.yaml diff --git a/api/core/model_runtime/model_providers/openai/llm/_position.yaml b/api/core/model_runtime/model_providers/openai/llm/_position.yaml index b7c25ecb1602b..099aae38a6566 100644 --- a/api/core/model_runtime/model_providers/openai/llm/_position.yaml +++ b/api/core/model_runtime/model_providers/openai/llm/_position.yaml @@ -3,6 +3,7 @@ - gpt-4o - gpt-4o-2024-05-13 - gpt-4o-2024-08-06 +- gpt-4o-2024-11-20 - chatgpt-4o-latest - gpt-4o-mini - gpt-4o-mini-2024-07-18 diff --git a/api/core/model_runtime/model_providers/openai/llm/gpt-4o-2024-11-20.yaml b/api/core/model_runtime/model_providers/openai/llm/gpt-4o-2024-11-20.yaml new file mode 100644 index 0000000000000..ebd5ab38c3b7d --- /dev/null +++ b/api/core/model_runtime/model_providers/openai/llm/gpt-4o-2024-11-20.yaml @@ -0,0 +1,47 @@ +model: gpt-4o-2024-11-20 +label: + zh_Hans: gpt-4o-2024-11-20 + en_US: gpt-4o-2024-11-20 +model_type: llm +features: + - multi-tool-call + - agent-thought + - stream-tool-call + - vision +model_properties: + mode: chat + context_size: 128000 +parameter_rules: + - name: temperature + use_template: temperature + - name: top_p + use_template: top_p + - name: presence_penalty + use_template: presence_penalty + - name: frequency_penalty + use_template: frequency_penalty + - name: max_tokens + use_template: max_tokens + default: 512 + min: 1 + max: 16384 + - name: response_format + label: + zh_Hans: 回复格式 + en_US: Response Format + type: string + help: + zh_Hans: 指定模型必须输出的格式 + en_US: specifying the format that the model must output + required: false + options: + - text + - json_object + - json_schema + - name: json_schema + use_template: json_schema +pricing: + input: '2.50' + output: '10.00' + unit: '0.000001' + currency: USD