mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-29 05:09:46 +01:00
添加vllm支持
This commit is contained in:
parent
6573559ef5
commit
46b432a714
1 changed files with 0 additions and 2 deletions
|
|
@ -13,8 +13,6 @@ class LLMProvider(LLMProviderBase):
|
||||||
配置项:
|
配置项:
|
||||||
- model_name: 模型名称或路径(必填)
|
- model_name: 模型名称或路径(必填)
|
||||||
- base_url: vllm 服务地址,默认为 "http://localhost:8000"
|
- base_url: vllm 服务地址,默认为 "http://localhost:8000"
|
||||||
- max_tokens: 生成文本的最大 token 数量(可选)
|
|
||||||
- temperature: 采样温度(可选)
|
|
||||||
"""
|
"""
|
||||||
self.model_name = config.get("model_name")
|
self.model_name = config.get("model_name")
|
||||||
if not self.model_name:
|
if not self.model_name:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue