From bcc278c9cfb34c1cbe78ad11ea1e8e6c4c7a37bc Mon Sep 17 00:00:00 2001 From: Enrico Ros Date: Fri, 14 Mar 2025 22:10:23 -0700 Subject: [PATCH] OpenAI: contrary to the docs, the Search Preview models don't support image inputs --- src/modules/llms/server/openai/models/openai.models.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/llms/server/openai/models/openai.models.ts b/src/modules/llms/server/openai/models/openai.models.ts index d05ebe60d..2db6bca04 100644 --- a/src/modules/llms/server/openai/models/openai.models.ts +++ b/src/modules/llms/server/openai/models/openai.models.ts @@ -145,7 +145,7 @@ export const _knownOpenAIChatModels: ManualMappings = [ contextWindow: 128000, maxCompletionTokens: 16384, trainingDataCutoff: 'Sep 30, 2023', - interfaces: [LLM_IF_OAI_Chat, LLM_IF_OAI_Vision, LLM_IF_OAI_Json, LLM_IF_HOTFIX_NoTemperature], + interfaces: [LLM_IF_OAI_Chat, LLM_IF_OAI_Json, LLM_IF_HOTFIX_NoTemperature], // NOTE: 2025-03-15: confirmed on 'playground' that this model does not support images parameterSpecs: [{ paramId: 'llmVndOaiWebSearchContext' }, { paramId: 'llmVndOaiWebSearchGeolocation' }], chatPrice: { input: 2.5, output: 10 }, isPreview: true, @@ -158,7 +158,7 @@ export const _knownOpenAIChatModels: ManualMappings = [ contextWindow: 128000, maxCompletionTokens: 16384, trainingDataCutoff: 'Sep 30, 2023', - interfaces: [LLM_IF_OAI_Chat, LLM_IF_OAI_Vision, LLM_IF_OAI_Json, LLM_IF_HOTFIX_NoTemperature], + interfaces: [LLM_IF_OAI_Chat, LLM_IF_OAI_Json, LLM_IF_HOTFIX_NoTemperature], // NOTE: 2025-03-15: confirmed on 'playground' that this model does not support images parameterSpecs: [{ paramId: 'llmVndOaiWebSearchContext' }, { paramId: 'llmVndOaiWebSearchGeolocation' }], chatPrice: { input: 2.5, output: 10 }, isPreview: true, @@ -335,7 +335,7 @@ export const _knownOpenAIChatModels: ManualMappings = [ contextWindow: 128000, maxCompletionTokens: 16384, trainingDataCutoff: 'Sep 30, 2023', - interfaces: [LLM_IF_OAI_Chat, LLM_IF_OAI_Vision, LLM_IF_OAI_Json, LLM_IF_HOTFIX_NoTemperature], // NOTE: this support function calling, but only its own, not a Custom Function + interfaces: [LLM_IF_OAI_Chat, LLM_IF_OAI_Json, LLM_IF_HOTFIX_NoTemperature], // NOTE: this support function calling, but only its own, not a Custom Function parameterSpecs: [{ paramId: 'llmVndOaiWebSearchContext' }, { paramId: 'llmVndOaiWebSearchGeolocation' }], chatPrice: { input: 0.15, output: 0.6 }, isPreview: true, @@ -348,7 +348,7 @@ export const _knownOpenAIChatModels: ManualMappings = [ contextWindow: 128000, maxCompletionTokens: 16384, trainingDataCutoff: 'Sep 30, 2023', - interfaces: [LLM_IF_OAI_Chat, LLM_IF_OAI_Vision, LLM_IF_OAI_Json, LLM_IF_HOTFIX_NoTemperature], // NOTE: this support function calling, but only its own, not a Custom Function + interfaces: [LLM_IF_OAI_Chat, LLM_IF_OAI_Json, LLM_IF_HOTFIX_NoTemperature], // NOTE: this support function calling, but only its own, not a Custom Function parameterSpecs: [{ paramId: 'llmVndOaiWebSearchContext' }, { paramId: 'llmVndOaiWebSearchGeolocation' }], chatPrice: { input: 0.15, output: 0.6 }, isPreview: true,