mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
feat(OpenAI Node): Include O1 models in the models select (#10801)
This commit is contained in:
@@ -95,6 +95,7 @@ export class LmChatOpenAi implements INodeType {
|
||||
pass: `={{
|
||||
($parameter.options?.baseURL && !$parameter.options?.baseURL?.includes('api.openai.com')) ||
|
||||
$responseItem.id.startsWith('ft:') ||
|
||||
$responseItem.id.startsWith('o1') ||
|
||||
($responseItem.id.startsWith('gpt-') && !$responseItem.id.includes('instruct'))
|
||||
}}`,
|
||||
},
|
||||
|
||||
@@ -76,10 +76,10 @@ export async function modelSearch(
|
||||
this: ILoadOptionsFunctions,
|
||||
filter?: string,
|
||||
): Promise<INodeListSearchResult> {
|
||||
return await getModelSearch((model) => model.id.startsWith('gpt-') || model.id.startsWith('ft:'))(
|
||||
this,
|
||||
filter,
|
||||
);
|
||||
return await getModelSearch(
|
||||
(model) =>
|
||||
model.id.startsWith('gpt-') || model.id.startsWith('ft:') || model.id.startsWith('o1'),
|
||||
)(this, filter);
|
||||
}
|
||||
|
||||
export async function imageModelSearch(
|
||||
|
||||
Reference in New Issue
Block a user