Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -287,7 +287,7 @@ def chat(system_prompt, user_text, audio_file, history, max_tokens, temperature,
|
|
| 287 |
|
| 288 |
try:
|
| 289 |
# 禁用代理以访问内网 API
|
| 290 |
-
with httpx.Client(base_url=API_BASE_URL, timeout=120
|
| 291 |
response = client.post("/chat/completions", json={
|
| 292 |
"model": model_name,
|
| 293 |
"messages": messages,
|
|
|
|
| 287 |
|
| 288 |
try:
|
| 289 |
# 禁用代理以访问内网 API
|
| 290 |
+
with httpx.Client(base_url=API_BASE_URL, timeout=120) as client:
|
| 291 |
response = client.post("/chat/completions", json={
|
| 292 |
"model": model_name,
|
| 293 |
"messages": messages,
|