mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-12 15:44:06 -08:00
feat(OpenAI Node): Include O1 models in the models select (#10801)
Some checks are pending
Test Master / install-and-build (push) Waiting to run
Test Master / Unit tests (18.x) (push) Blocked by required conditions
Test Master / Unit tests (20.x) (push) Blocked by required conditions
Test Master / Unit tests (22.4) (push) Blocked by required conditions
Test Master / Lint (push) Blocked by required conditions
Test Master / Notify Slack on failure (push) Blocked by required conditions
Some checks are pending
Test Master / install-and-build (push) Waiting to run
Test Master / Unit tests (18.x) (push) Blocked by required conditions
Test Master / Unit tests (20.x) (push) Blocked by required conditions
Test Master / Unit tests (22.4) (push) Blocked by required conditions
Test Master / Lint (push) Blocked by required conditions
Test Master / Notify Slack on failure (push) Blocked by required conditions
This commit is contained in:
parent
53c0fb18bf
commit
b2b1abc531
|
@ -95,6 +95,7 @@ export class LmChatOpenAi implements INodeType {
|
||||||
pass: `={{
|
pass: `={{
|
||||||
($parameter.options?.baseURL && !$parameter.options?.baseURL?.includes('api.openai.com')) ||
|
($parameter.options?.baseURL && !$parameter.options?.baseURL?.includes('api.openai.com')) ||
|
||||||
$responseItem.id.startsWith('ft:') ||
|
$responseItem.id.startsWith('ft:') ||
|
||||||
|
$responseItem.id.startsWith('o1') ||
|
||||||
($responseItem.id.startsWith('gpt-') && !$responseItem.id.includes('instruct'))
|
($responseItem.id.startsWith('gpt-') && !$responseItem.id.includes('instruct'))
|
||||||
}}`,
|
}}`,
|
||||||
},
|
},
|
||||||
|
|
|
@ -76,10 +76,10 @@ export async function modelSearch(
|
||||||
this: ILoadOptionsFunctions,
|
this: ILoadOptionsFunctions,
|
||||||
filter?: string,
|
filter?: string,
|
||||||
): Promise<INodeListSearchResult> {
|
): Promise<INodeListSearchResult> {
|
||||||
return await getModelSearch((model) => model.id.startsWith('gpt-') || model.id.startsWith('ft:'))(
|
return await getModelSearch(
|
||||||
this,
|
(model) =>
|
||||||
filter,
|
model.id.startsWith('gpt-') || model.id.startsWith('ft:') || model.id.startsWith('o1'),
|
||||||
);
|
)(this, filter);
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function imageModelSearch(
|
export async function imageModelSearch(
|
||||||
|
|
Loading…
Reference in a new issue