mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-09 22:24:05 -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: `={{
|
||||
($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(
|
||||
|
|
Loading…
Reference in a new issue