Align default space and Hunyuan 3 behavior with hygate

This commit is contained in:
Luxferre
2026-09-07 11:05:20 +03:00
parent 187edabadb
commit c5ea129b44
3 changed files with 149 additions and 51 deletions
+23 -10
View File
@@ -79,7 +79,8 @@ With SOCKS5 proxy:
| Flag | Default | Description |
|------|---------|-------------|
| `-space`, `-url` | `https://tencent-hy3.hf.space` | Target Gradio space URL |
| `-space`, `-url`, `-endpoint` | `https://tencent-hy3.hf.space` | Target Gradio space URL |
| `-model` | `""` | Exposed model name override (default: auto-detected) |
| `-port` | `8080` | Port to listen on |
| `-host` | `0.0.0.0` | Host interface to bind to |
| `-socks`, `-proxy`, `-socks5` | `""` | SOCKS5 proxy URL (`socks5://user:pass@host:port`) |
@@ -105,7 +106,19 @@ Response:
"object": "list",
"data": [
{
"id": "digital-twin",
"id": "hy3",
"object": "model",
"created": 1788756307,
"owned_by": "gradio"
},
{
"id": "hunyuan3",
"object": "model",
"created": 1788756307,
"owned_by": "gradio"
},
{
"id": "tencent/Hy3",
"object": "model",
"created": 1788756307,
"owned_by": "gradio"
@@ -120,7 +133,7 @@ Response:
curl http://localhost:8080/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "digital-twin",
"model": "hy3",
"messages": [
{"role": "user", "content": "What is the capital of France?"}
]
@@ -133,13 +146,13 @@ Response:
"id": "chatcmpl-16425f9d-c350-47a1-9a6d-e9ce10871545",
"object": "chat.completion",
"created": 1788756310,
"model": "digital-twin",
"model": "hy3",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Paris is the capital of France."
"content": "The capital of France is Paris."
},
"finish_reason": "stop"
}
@@ -158,7 +171,7 @@ Response:
curl -N http://localhost:8080/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "digital-twin",
"model": "hy3",
"messages": [
{"role": "user", "content": "Count from 1 to 5."}
],
@@ -172,7 +185,7 @@ curl -N http://localhost:8080/v1/chat/completions \
curl http://localhost:8080/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "digital-twin",
"model": "hy3",
"messages": [
{"role": "user", "content": "What is the weather in Tokyo?"}
],
@@ -199,7 +212,7 @@ Response:
"id": "chatcmpl-32727c62-ef2a-4866-855b-f1c7ec2b8023",
"object": "chat.completion",
"created": 1788756322,
"model": "digital-twin",
"model": "hy3",
"choices": [
{
"index": 0,
@@ -234,7 +247,7 @@ Response:
curl http://localhost:8080/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "digital-twin",
"model": "hy3",
"messages": [
{"role": "user", "content": "What is the weather in Tokyo?"},
{
@@ -279,7 +292,7 @@ Response:
"id": "chatcmpl-4903ba12-f12b-4cd3-a801-7290bc91a421",
"object": "chat.completion",
"created": 1788756335,
"model": "digital-twin",
"model": "hy3",
"choices": [
{
"index": 0,