Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -48,7 +48,7 @@ def _chat_stream(model, tokenizer, query, history, temperature, top_p, max_outpu
|
|
| 48 |
}
|
| 49 |
|
| 50 |
try:
|
| 51 |
-
API_URL = "http://8.152.0.142:
|
| 52 |
response = requests.post(API_URL, headers=headers, data=json.dumps(payload), timeout=60, stream=True)
|
| 53 |
response.raise_for_status()
|
| 54 |
for chunk in get_streaming_response(response):
|
|
|
|
| 48 |
}
|
| 49 |
|
| 50 |
try:
|
| 51 |
+
API_URL = "http://8.152.0.142:10021/v1/chat/completions"
|
| 52 |
response = requests.post(API_URL, headers=headers, data=json.dumps(payload), timeout=60, stream=True)
|
| 53 |
response.raise_for_status()
|
| 54 |
for chunk in get_streaming_response(response):
|