mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
feat(OpenAI Chat Model Node, OpenAI Node): Include o3 models in model selection (#13005)
This commit is contained in:
@@ -108,6 +108,7 @@ export class LmChatOpenAi implements INodeType {
|
||||
($credentials?.url && !$credentials.url.includes('api.openai.com')) ||
|
||||
$responseItem.id.startsWith('ft:') ||
|
||||
$responseItem.id.startsWith('o1') ||
|
||||
$responseItem.id.startsWith('o3') ||
|
||||
($responseItem.id.startsWith('gpt-') && !$responseItem.id.includes('instruct'))
|
||||
}}`,
|
||||
},
|
||||
|
||||
@@ -19,6 +19,7 @@ export async function searchModels(
|
||||
(baseURL && !baseURL.includes('api.openai.com')) ||
|
||||
model.id.startsWith('ft:') ||
|
||||
model.id.startsWith('o1') ||
|
||||
model.id.startsWith('o3') ||
|
||||
(model.id.startsWith('gpt-') && !model.id.includes('instruct'));
|
||||
|
||||
if (!filter) return isValidModel;
|
||||
|
||||
@@ -84,7 +84,8 @@ export async function modelSearch(
|
||||
isCustomAPI ||
|
||||
model.id.startsWith('gpt-') ||
|
||||
model.id.startsWith('ft:') ||
|
||||
model.id.startsWith('o1'),
|
||||
model.id.startsWith('o1') ||
|
||||
model.id.startsWith('o3'),
|
||||
)(this, filter);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user