-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathllm.js
More file actions
60 lines (52 loc) · 921 Bytes
/
llm.js
File metadata and controls
60 lines (52 loc) · 921 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
const defaultLLMConfig = {
// moonshot
moonshot: {
apiKey: "",
modelName: "moonshot-v1-8k",
baseUrl: "https://api.moonshot.cn/v1",
},
// openai
openai: {
apiKey: "",
modelName: "gpt-4-turbo-preview",
baseUrl: "https://api.openai.com/v1",
},
// azure
azure: {
apiKey: "",
modelName: "gpt-35-turbo",
baseUrl: "***",
apiVersion: "2024-02-15-preview",
},
// gemini
gemini: {
apiKey: "",
modelName: "",
baseUrl: "***",
},
// g4f
g4f: {
apiKey: "xxx",
modelName: "gpt-3.5-turbo-16k-0613",
baseUrl: "***",
},
// gpt4js
gpt4js: {
apiKey: "xxx",
provider: "Nextway",
modelName: "gpt-4o-free",
baseUrl: "***",
},
otherAI: {
apiKey: "",
modelName: "",
baseUrl: "",
},
// default
default: {
apiKey: "",
modelName: "",
baseUrl: "***",
},
};
module.exports = defaultLLMConfig;