cafe3310 commited on
Commit
3731531
Β·
1 Parent(s): a3b65ba

feat(chat): Update default model and add default scenario

Browse files

- Set `Ling-mini-2.0` as the default model for the chat tab.
- Add a new default scenario "Be a simple and happy assistant" to all models to improve user experience.
- Ensure all new text is in English.

Files changed (1) hide show
  1. config.py +67 -25
config.py CHANGED
@@ -61,11 +61,50 @@ WORKFLOW_EXECUTE_SYSTEM_PROMPT = "You are a workflow execution assistant. Your g
61
  # --- Model Specifications ---
62
 
63
  CHAT_MODEL_SPECS = {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
64
  "ling-1t": {
65
  "model_id": "inclusionai/ling-1t",
66
  "display_name": "πŸ¦‰ Ling-1T",
67
  "description": "A trillion-parameter large language model designed for complex natural language understanding and generation tasks that require extreme performance and high fluency.",
68
  "prompt_scenarios": [
 
 
 
 
 
 
 
69
  {
70
  "title": "In-depth Analysis Report Writing",
71
  "system_prompt": "You are a senior industry analyst who can write in-depth analysis reports with clear logic, sufficient data, and unique insights.",
@@ -91,6 +130,13 @@ CHAT_MODEL_SPECS = {
91
  "display_name": "πŸ¦‰ Ling-flash-2.0",
92
  "description": "A high-performance billion-parameter model optimized for scenarios requiring high-speed response and complex instruction following.",
93
  "prompt_scenarios": [
 
 
 
 
 
 
 
94
  {
95
  "title": "Technical Document Writing",
96
  "system_prompt": "You are a professional technical writer who can clearly and accurately explain complex technical concepts.",
@@ -111,36 +157,18 @@ CHAT_MODEL_SPECS = {
111
  }
112
  ]
113
  },
114
- "ling-mini-2.0": {
115
- "model_id": "inclusionai/ling-mini-2.0",
116
- "display_name": "πŸ¦‰ Ling-mini-2.0",
117
- "description": "A lightweight conversational model optimized for efficient operation on consumer-grade hardware, ideal for mobile or localized deployment scenarios.",
118
- "prompt_scenarios": [
119
- {
120
- "title": "Efficient Email Assistant",
121
- "system_prompt": "You are a professional administrative assistant who excels at writing clear, concise, and professional emails.",
122
- "message_examples": [
123
- "Write me a short email reminding the team members of the meeting tomorrow at 10 am.",
124
- "Draft an email to the client to inquire about the project progress.",
125
- "Help me write a polite rejection letter in response to an inappropriate collaboration invitation."
126
- ]
127
- },
128
- {
129
- "title": "Text Summarization and Translation",
130
- "system_prompt": "You are a language expert who can quickly and accurately perform text summarization and multilingual translation.",
131
- "message_examples": [
132
- "Summarize the main content of this news article in no more than three sentences.",
133
- "Translate this English passage into Chinese: 'Gradio is an open-source Python library...'",
134
- "Recommend three sci-fi movies suitable for watching on the weekend."
135
- ]
136
- }
137
- ]
138
- },
139
  "ring-1t": {
140
  "model_id": "inclusionai/ring-1t",
141
  "display_name": "πŸ’οΈ Ring-1T",
142
  "description": "A brand-new trillion-parameter reasoning model with powerful code generation and tool use capabilities.",
143
  "prompt_scenarios": [
 
 
 
 
 
 
 
144
  {
145
  "title": "Python Script Generator",
146
  "system_prompt": "You are a Python programming expert who can generate high-quality, executable Python scripts based on requirements.",
@@ -157,6 +185,13 @@ CHAT_MODEL_SPECS = {
157
  "display_name": "πŸ’οΈ Ring-flash-2.0",
158
  "description": "A billion-parameter reasoning model that strikes a good balance between performance and cost, suitable for general-purpose tasks that require step-by-step thinking or code generation.",
159
  "prompt_scenarios": [
 
 
 
 
 
 
 
160
  {
161
  "title": "Travel Planning Expert",
162
  "system_prompt": "You are an experienced travel planner who is proficient in travel routes, transportation, and budget planning around the world.",
@@ -182,6 +217,13 @@ CHAT_MODEL_SPECS = {
182
  "display_name": "πŸ’οΈ Ring-mini-2.0",
183
  "description": "A quantized and extremely efficient reasoning model designed for resource-constrained environments with strict speed and efficiency requirements (such as edge computing).",
184
  "prompt_scenarios": [
 
 
 
 
 
 
 
185
  {
186
  "title": "Daily Life Assistant",
187
  "system_prompt": "You are a helpful life assistant who can handle various daily requests.",
 
61
  # --- Model Specifications ---
62
 
63
  CHAT_MODEL_SPECS = {
64
+ "ling-mini-2.0": {
65
+ "model_id": "inclusionai/ling-mini-2.0",
66
+ "display_name": "πŸ¦‰ Ling-mini-2.0",
67
+ "description": "A lightweight conversational model optimized for efficient operation on consumer-grade hardware, ideal for mobile or localized deployment scenarios.",
68
+ "prompt_scenarios": [
69
+ {
70
+ "title": "Be a simple and happy assistant",
71
+ "system_prompt": "You are a simple and happy assistant.",
72
+ "message_examples": [
73
+ "Give a brief self-introduction"
74
+ ]
75
+ },
76
+ {
77
+ "title": "Efficient Email Assistant",
78
+ "system_prompt": "You are a professional administrative assistant who excels at writing clear, concise, and professional emails.",
79
+ "message_examples": [
80
+ "Write me a short email reminding the team members of the meeting tomorrow at 10 am.",
81
+ "Draft an email to the client to inquire about the project progress.",
82
+ "Help me write a polite rejection letter in response to an inappropriate collaboration invitation."
83
+ ]
84
+ },
85
+ {
86
+ "title": "Text Summarization and Translation",
87
+ "system_prompt": "You are a language expert who can quickly and accurately perform text summarization and multilingual translation.",
88
+ "message_examples": [
89
+ "Summarize the main content of this news article in no more than three sentences.",
90
+ "Translate this English passage into Chinese: 'Gradio is an open-source Python library...'",
91
+ "Recommend three sci-fi movies suitable for watching on the weekend."
92
+ ]
93
+ }
94
+ ]
95
+ },
96
  "ling-1t": {
97
  "model_id": "inclusionai/ling-1t",
98
  "display_name": "πŸ¦‰ Ling-1T",
99
  "description": "A trillion-parameter large language model designed for complex natural language understanding and generation tasks that require extreme performance and high fluency.",
100
  "prompt_scenarios": [
101
+ {
102
+ "title": "Be a simple and happy assistant",
103
+ "system_prompt": "You are a simple and happy assistant.",
104
+ "message_examples": [
105
+ "Give a brief self-introduction"
106
+ ]
107
+ },
108
  {
109
  "title": "In-depth Analysis Report Writing",
110
  "system_prompt": "You are a senior industry analyst who can write in-depth analysis reports with clear logic, sufficient data, and unique insights.",
 
130
  "display_name": "πŸ¦‰ Ling-flash-2.0",
131
  "description": "A high-performance billion-parameter model optimized for scenarios requiring high-speed response and complex instruction following.",
132
  "prompt_scenarios": [
133
+ {
134
+ "title": "Be a simple and happy assistant",
135
+ "system_prompt": "You are a simple and happy assistant.",
136
+ "message_examples": [
137
+ "Give a brief self-introduction"
138
+ ]
139
+ },
140
  {
141
  "title": "Technical Document Writing",
142
  "system_prompt": "You are a professional technical writer who can clearly and accurately explain complex technical concepts.",
 
157
  }
158
  ]
159
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
160
  "ring-1t": {
161
  "model_id": "inclusionai/ring-1t",
162
  "display_name": "πŸ’οΈ Ring-1T",
163
  "description": "A brand-new trillion-parameter reasoning model with powerful code generation and tool use capabilities.",
164
  "prompt_scenarios": [
165
+ {
166
+ "title": "Be a simple and happy assistant",
167
+ "system_prompt": "You are a simple and happy assistant.",
168
+ "message_examples": [
169
+ "Give a brief self-introduction"
170
+ ]
171
+ },
172
  {
173
  "title": "Python Script Generator",
174
  "system_prompt": "You are a Python programming expert who can generate high-quality, executable Python scripts based on requirements.",
 
185
  "display_name": "πŸ’οΈ Ring-flash-2.0",
186
  "description": "A billion-parameter reasoning model that strikes a good balance between performance and cost, suitable for general-purpose tasks that require step-by-step thinking or code generation.",
187
  "prompt_scenarios": [
188
+ {
189
+ "title": "Be a simple and happy assistant",
190
+ "system_prompt": "You are a simple and happy assistant.",
191
+ "message_examples": [
192
+ "Give a brief self-introduction"
193
+ ]
194
+ },
195
  {
196
  "title": "Travel Planning Expert",
197
  "system_prompt": "You are an experienced travel planner who is proficient in travel routes, transportation, and budget planning around the world.",
 
217
  "display_name": "πŸ’οΈ Ring-mini-2.0",
218
  "description": "A quantized and extremely efficient reasoning model designed for resource-constrained environments with strict speed and efficiency requirements (such as edge computing).",
219
  "prompt_scenarios": [
220
+ {
221
+ "title": "Be a simple and happy assistant",
222
+ "system_prompt": "You are a simple and happy assistant.",
223
+ "message_examples": [
224
+ "Give a brief self-introduction"
225
+ ]
226
+ },
227
  {
228
  "title": "Daily Life Assistant",
229
  "system_prompt": "You are a helpful life assistant who can handle various daily requests.",