moevis commited on
Commit
6f34f72
·
verified ·
1 Parent(s): 8409eee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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, proxies={}) as client:
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,