Update main.py
Browse files
main.py
CHANGED
@@ -176,33 +176,24 @@ async def chat_completions(
|
|
176 |
'app_name': 'ChitChat_Edge_Ext',
|
177 |
'app_version': '4.28.0',
|
178 |
'tz_name': 'Asia/Karachi',
|
179 |
-
'cid': '',
|
180 |
'model': request.model,
|
181 |
'search': False,
|
182 |
-
'auto_search': False,
|
183 |
-
'filter_search_history': False,
|
184 |
'from': 'chat',
|
185 |
'group_id': 'default',
|
186 |
-
'chat_models': [],
|
187 |
-
'files': [],
|
188 |
'prompt_template': {
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
},
|
193 |
},
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
'origin_title': '',
|
204 |
-
},
|
205 |
-
}
|
206 |
|
207 |
async def generate():
|
208 |
async with httpx.AsyncClient() as client:
|
|
|
176 |
'app_name': 'ChitChat_Edge_Ext',
|
177 |
'app_version': '4.28.0',
|
178 |
'tz_name': 'Asia/Karachi',
|
|
|
179 |
'model': request.model,
|
180 |
'search': False,
|
|
|
|
|
181 |
'from': 'chat',
|
182 |
'group_id': 'default',
|
|
|
|
|
183 |
'prompt_template': {
|
184 |
+
'key': 'artifacts',
|
185 |
+
'attributes': {
|
186 |
+
'lang': 'original',
|
|
|
187 |
},
|
188 |
+
},
|
189 |
+
'tools': {
|
190 |
+
'auto': ['search', 'text_to_image', 'data_analysis'],
|
191 |
+
},
|
192 |
+
'extra_info': {
|
193 |
+
'origin_url': 'chrome-extension://difoiogjjojoaoomphldepapgpbgkhkb/standalone.html?from=sidebar',
|
194 |
+
'origin_title': 'Sider',
|
195 |
+
},
|
196 |
+
}
|
|
|
|
|
|
|
197 |
|
198 |
async def generate():
|
199 |
async with httpx.AsyncClient() as client:
|