mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(OpenAI Chat Model Node, Ollama Chat Model Node): Change default model to a more up-to-date option (#11293)
This commit is contained in:
@@ -79,7 +79,7 @@ export class EmbeddingsOpenAi implements INodeType {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
group: ['transform'],
|
group: ['transform'],
|
||||||
version: 1,
|
version: [1, 1.1],
|
||||||
description: 'Use Embeddings OpenAI',
|
description: 'Use Embeddings OpenAI',
|
||||||
defaults: {
|
defaults: {
|
||||||
name: 'Embeddings OpenAI',
|
name: 'Embeddings OpenAI',
|
||||||
|
|||||||
@@ -128,7 +128,7 @@ export class LmChatOpenAi implements INodeType {
|
|||||||
property: 'model',
|
property: 'model',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
default: 'gpt-3.5-turbo',
|
default: 'gpt-4o-mini',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName:
|
displayName:
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ export const ollamaModel: INodeProperties = {
|
|||||||
displayName: 'Model',
|
displayName: 'Model',
|
||||||
name: 'model',
|
name: 'model',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
default: 'llama2',
|
default: 'llama3.2',
|
||||||
description:
|
description:
|
||||||
'The model which will generate the completion. To download models, visit <a href="https://ollama.ai/library">Ollama Models Library</a>.',
|
'The model which will generate the completion. To download models, visit <a href="https://ollama.ai/library">Ollama Models Library</a>.',
|
||||||
typeOptions: {
|
typeOptions: {
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ type RunDetail = {
|
|||||||
options: SerializedSecret | SerializedNotImplemented | SerializedFields;
|
options: SerializedSecret | SerializedNotImplemented | SerializedFields;
|
||||||
};
|
};
|
||||||
|
|
||||||
const TIKTOKEN_ESTIMATE_MODEL = 'gpt-3.5-turbo';
|
const TIKTOKEN_ESTIMATE_MODEL = 'gpt-4o';
|
||||||
export class N8nLlmTracing extends BaseCallbackHandler {
|
export class N8nLlmTracing extends BaseCallbackHandler {
|
||||||
name = 'N8nLlmTracing';
|
name = 'N8nLlmTracing';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user