mirror of
https://github.com/FuQuan233/nonebot-plugin-llmchat.git
synced 2025-09-04 18:30:43 +00:00
♻️ fix lint problems
This commit is contained in:
parent
f89e41754c
commit
da5621abbe
2 changed files with 2 additions and 2 deletions
|
@ -204,7 +204,7 @@ async def process_messages(group_id: int):
|
|||
preset = get_preset(group_id)
|
||||
|
||||
# 初始化OpenAI客户端
|
||||
if preset.proxy:
|
||||
if preset.proxy != "":
|
||||
client = AsyncOpenAI(
|
||||
base_url=preset.api_base,
|
||||
api_key=preset.api_key,
|
||||
|
|
|
@ -10,7 +10,7 @@ class PresetConfig(BaseModel):
|
|||
model_name: str = Field(..., description="模型名称")
|
||||
max_tokens: int = Field(2048, description="最大响应token数")
|
||||
temperature: float = Field(0.7, description="生成温度(0-2]")
|
||||
proxy = Field(None, description="HTTP代理服务器")
|
||||
proxy: str = Field("", description="HTTP代理服务器")
|
||||
|
||||
|
||||
class ScopedConfig(BaseModel):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue