diff --git a/pilot/openapi/api_v1/api_v1.py b/pilot/openapi/api_v1/api_v1.py index b7cc46d3a..1507a9a1f 100644 --- a/pilot/openapi/api_v1/api_v1.py +++ b/pilot/openapi/api_v1/api_v1.py @@ -321,7 +321,6 @@ async def chat_prepare(dialogue: ConversationVo = Body()): @router.post("/v1/chat/completions") async def chat_completions(dialogue: ConversationVo = Body()): - # dialogue.model_name = CFG.LLM_MODEL print( f"chat_completions:{dialogue.chat_mode},{dialogue.select_param},{dialogue.model_name}" ) @@ -350,14 +349,15 @@ async def chat_completions(dialogue: ConversationVo = Body()): @router.get("/v1/model/types") -async def model_types(): +async def model_types(request: Request): print(f"/controller/model/types") try: import httpx async with httpx.AsyncClient() as client: + base_url = request.base_url response = await client.get( - f"{CFG.MODEL_SERVER}/api/controller/models?healthy_only=true", + f"{base_url}api/controller/models?healthy_only=true", ) types = set() if response.status_code == 200: diff --git a/pilot/server/static/models/baichuan.png b/pilot/server/static/models/baichuan.png new file mode 100644 index 000000000..cd5311bb7 Binary files /dev/null and b/pilot/server/static/models/baichuan.png differ diff --git a/pilot/server/static/models/bard.gif b/pilot/server/static/models/bard.gif new file mode 100644 index 000000000..78de37340 Binary files /dev/null and b/pilot/server/static/models/bard.gif differ diff --git a/pilot/server/static/models/chatglm.png b/pilot/server/static/models/chatglm.png new file mode 100644 index 000000000..83056df99 Binary files /dev/null and b/pilot/server/static/models/chatglm.png differ diff --git a/pilot/server/static/models/chatgpt.png b/pilot/server/static/models/chatgpt.png new file mode 100644 index 000000000..1d58d6ef9 Binary files /dev/null and b/pilot/server/static/models/chatgpt.png differ diff --git a/pilot/server/static/models/claude.png b/pilot/server/static/models/claude.png new file mode 100644 index 000000000..6c725b6b7 Binary files /dev/null and b/pilot/server/static/models/claude.png differ diff --git a/pilot/server/static/models/falcon.jpeg b/pilot/server/static/models/falcon.jpeg new file mode 100644 index 000000000..10527f9db Binary files /dev/null and b/pilot/server/static/models/falcon.jpeg differ diff --git a/pilot/server/static/models/google.png b/pilot/server/static/models/google.png new file mode 100644 index 000000000..1b0a85644 Binary files /dev/null and b/pilot/server/static/models/google.png differ diff --git a/pilot/server/static/models/gorilla.png b/pilot/server/static/models/gorilla.png new file mode 100644 index 000000000..0f30fad74 Binary files /dev/null and b/pilot/server/static/models/gorilla.png differ diff --git a/pilot/server/static/models/huggingface.svg b/pilot/server/static/models/huggingface.svg new file mode 100644 index 000000000..43c5d3c0c --- /dev/null +++ b/pilot/server/static/models/huggingface.svg @@ -0,0 +1,37 @@ + + + + + + + + + + + diff --git a/pilot/server/static/models/llama.jpg b/pilot/server/static/models/llama.jpg new file mode 100644 index 000000000..22db2a26b Binary files /dev/null and b/pilot/server/static/models/llama.jpg differ diff --git a/pilot/server/static/models/qwen2.png b/pilot/server/static/models/qwen2.png new file mode 100644 index 000000000..540b437a1 Binary files /dev/null and b/pilot/server/static/models/qwen2.png differ diff --git a/pilot/server/static/models/salesforce.jpeg b/pilot/server/static/models/salesforce.jpeg new file mode 100644 index 000000000..b43edf4eb Binary files /dev/null and b/pilot/server/static/models/salesforce.jpeg differ diff --git a/pilot/server/static/models/vicuna.jpeg b/pilot/server/static/models/vicuna.jpeg new file mode 100644 index 000000000..9783235fa Binary files /dev/null and b/pilot/server/static/models/vicuna.jpeg differ diff --git a/pilot/server/static/models/wizardlm.png b/pilot/server/static/models/wizardlm.png new file mode 100644 index 000000000..206ad6e87 Binary files /dev/null and b/pilot/server/static/models/wizardlm.png differ diff --git a/pilot/server/static/models/zhipu.png b/pilot/server/static/models/zhipu.png new file mode 100644 index 000000000..30d4ce225 Binary files /dev/null and b/pilot/server/static/models/zhipu.png differ