@@ -2,7 +2,7 @@ import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Inter
2
2
import { getBaseClasses , getCredentialData , getCredentialParam } from '../../../src/utils'
3
3
import { ChatOpenAI , OpenAIChatInput } from 'langchain/chat_models/openai'
4
4
5
- class ChatOpenAIFineTuned_ChatModels implements INode {
5
+ class ChatOpenAICustom_ChatModels implements INode {
6
6
label : string
7
7
name : string
8
8
version : number
@@ -15,19 +15,20 @@ class ChatOpenAIFineTuned_ChatModels implements INode {
15
15
inputs : INodeParams [ ]
16
16
17
17
constructor ( ) {
18
- this . label = 'ChatOpenAI Fine-Tuned '
19
- this . name = 'chatOpenAIFineTuned '
18
+ this . label = 'ChatOpenAI Custom '
19
+ this . name = 'chatOpenAICustom '
20
20
this . version = 1.0
21
- this . type = 'ChatOpenAI-FineTuned '
21
+ this . type = 'ChatOpenAI-Custom '
22
22
this . icon = 'openai.png'
23
23
this . category = 'Chat Models'
24
- this . description = 'Wrapper around fine-tuned OpenAI LLM that use the Chat endpoint '
24
+ this . description = 'Custom/FineTuned model using OpenAI Chat compatible API '
25
25
this . baseClasses = [ this . type , ...getBaseClasses ( ChatOpenAI ) ]
26
26
this . credential = {
27
27
label : 'Connect Credential' ,
28
28
name : 'credential' ,
29
29
type : 'credential' ,
30
- credentialNames : [ 'openAIApi' ]
30
+ credentialNames : [ 'openAIApi' ] ,
31
+ optional : true
31
32
}
32
33
this . inputs = [
33
34
{
@@ -146,4 +147,4 @@ class ChatOpenAIFineTuned_ChatModels implements INode {
146
147
}
147
148
}
148
149
149
- module . exports = { nodeClass : ChatOpenAIFineTuned_ChatModels }
150
+ module . exports = { nodeClass : ChatOpenAICustom_ChatModels }
0 commit comments