Skip to content

Commit aab3816

Browse files
committed
dev: support developer message role and openai-o1-models
1 parent 873d246 commit aab3816

File tree

42 files changed

+296
-79
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+296
-79
lines changed

ghostos/app/.example.env

100644100755
File mode changed.

ghostos/app/.gitignore

100644100755
File mode changed.

ghostos/app/.streamlit/config.toml

100644100755
File mode changed.

ghostos/app/assets/docs/ghostos/en/aifunc_introduction.md

100644100755
File mode changed.

ghostos/app/assets/docs/ghostos/zh/aifunc/introduction.md

100644100755
File mode changed.

ghostos/app/assets/docs/ghostos/zh/aifunc/request_info.md

100644100755
File mode changed.

ghostos/app/assets/docs/ghostos/zh/aifunc/usage_example.md

100644100755
File mode changed.

ghostos/app/configs/documents_registry.yml

100644100755
File mode changed.

ghostos/app/configs/ghostos_conf.yml

100644100755
File mode changed.

ghostos/app/configs/llms_conf.yml

100644100755
Lines changed: 40 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
default: gpt-4o
33
models:
44
claude-3-5-sonnet:
5-
kwargs: {}
5+
kwargs: { }
66
max_tokens: 2000
77
message_types: null
88
model: claude-3-5-sonnet-20240620
@@ -13,7 +13,7 @@ models:
1313
timeout: 30
1414
use_tools: true
1515
claude-3-haiku:
16-
kwargs: {}
16+
kwargs: { }
1717
max_tokens: 2000
1818
message_types: null
1919
model: claude-3-haiku-20240307
@@ -24,18 +24,18 @@ models:
2424
timeout: 30
2525
use_tools: true
2626
deepseek-chat:
27-
kwargs: {}
27+
kwargs: { }
2828
max_tokens: 2000
2929
message_types: null
30-
model: deepseek/deepseek-chat
30+
model: deepseek-chat
3131
n: 1
3232
request_timeout: 40
3333
service: deepseek
3434
temperature: 0.7
3535
timeout: 30
3636
use_tools: true
3737
deepseek-coder:
38-
kwargs: {}
38+
kwargs: { }
3939
max_tokens: 2000
4040
message_types: null
4141
model: deepseek/deepseek-coder
@@ -46,7 +46,7 @@ models:
4646
timeout: 30
4747
use_tools: true
4848
gpt-3.5-turbo:
49-
kwargs: {}
49+
kwargs: { }
5050
max_tokens: 2000
5151
message_types: null
5252
model: gpt-3.5-turbo
@@ -57,7 +57,7 @@ models:
5757
timeout: 30
5858
use_tools: true
5959
gpt-4:
60-
kwargs: {}
60+
kwargs: { }
6161
max_tokens: 2000
6262
message_types: null
6363
model: gpt-4
@@ -68,7 +68,7 @@ models:
6868
timeout: 30
6969
use_tools: true
7070
gpt-4-turbo:
71-
kwargs: {}
71+
kwargs: { }
7272
max_tokens: 2000
7373
message_types: null
7474
model: gpt-4-turbo
@@ -78,8 +78,16 @@ models:
7878
temperature: 0.7
7979
timeout: 30
8080
use_tools: true
81+
gpt-o1-mini:
82+
model: o1-mini
83+
service: openai
84+
reasoning: { }
85+
gpt-o1:
86+
model: o1
87+
service: openai
88+
reasoning: { }
8189
gpt-4o:
82-
kwargs: {}
90+
kwargs: { }
8391
max_tokens: 2000
8492
message_types: null
8593
model: gpt-4o
@@ -90,7 +98,7 @@ models:
9098
timeout: 30
9199
use_tools: true
92100
moonshot-v1-128k:
93-
kwargs: {}
101+
kwargs: { }
94102
max_tokens: 2000
95103
message_types: null
96104
model: moonshot-v1-128k
@@ -101,7 +109,7 @@ models:
101109
timeout: 30
102110
use_tools: true
103111
moonshot-v1-32k:
104-
kwargs: {}
112+
kwargs: { }
105113
max_tokens: 2000
106114
message_types: null
107115
model: moonshot-v1-32k
@@ -112,7 +120,7 @@ models:
112120
timeout: 30
113121
use_tools: true
114122
moonshot-v1-8k:
115-
kwargs: {}
123+
kwargs: { }
116124
max_tokens: 2000
117125
message_types: null
118126
model: moonshot-v1-8k
@@ -123,23 +131,23 @@ models:
123131
timeout: 30
124132
use_tools: true
125133
services:
126-
- base_url: https://api.moonshot.cn/v1
127-
driver: openai_driver
128-
name: moonshot
129-
proxy: null
130-
token: $MOONSHOT_API_KEY
131-
- base_url: https://api.openai.com/v1
132-
driver: openai_driver
133-
name: openai
134-
proxy: $OPENAI_PROXY
135-
token: $OPENAI_API_KEY
136-
- base_url: https://api.anthropic.com/v1
137-
driver: openai_driver
138-
name: anthropic
139-
proxy: $ANTHROPIC_PROXY
140-
token: $ANTHROPIC_API_KEY
141-
- base_url: https://api.deepseek.com/beta
142-
driver: openai_driver
143-
name: deepseek
144-
proxy: null
145-
token: $DEEPSEEK_API_KEY
134+
- base_url: https://api.moonshot.cn/v1
135+
driver: openai_driver
136+
name: moonshot
137+
token: $MOONSHOT_API_KEY
138+
- base_url: https://api.openai.com/v1
139+
driver: openai_driver
140+
name: openai
141+
proxy: $OPENAI_PROXY
142+
token: $OPENAI_API_KEY
143+
compatible:
144+
use_developer_role: true
145+
- base_url: https://api.anthropic.com/v1
146+
driver: lite_llm_driver
147+
name: anthropic
148+
proxy: $ANTHROPIC_PROXY
149+
token: $ANTHROPIC_API_KEY
150+
- base_url: https://api.deepseek.com/beta
151+
driver: openai_driver
152+
name: deepseek
153+
token: $DEEPSEEK_API_KEY

0 commit comments

Comments
 (0)