refactor(schema): 修改 LLMResponse 中 API 响应内容的字段名称

- 将 LLMResponse 类中的 response_content 字段重命名为 content
- 更新字段类型从 dict 改为 str,以更准确地表示响应内容
- 在 reasoning.py 中相应地修改了调用 LLMResponse 时的参数
This commit is contained in:
carry
2025-04-20 18:40:51 +08:00
parent c28e4819d9
commit 5fc3b4950b
2 changed files with 4 additions and 4 deletions

View File

@@ -33,7 +33,7 @@ class LLMResponse(SQLModel):
)
response_id: str = Field(..., description="响应的唯一ID")
tokens_usage: TokensUsage = Field(default_factory=TokensUsage, description="token使用信息")
response_content: dict = Field(default_factory=dict, description="API响应的内容")
content: str = Field(default_factory=dict, description="API响应的内容")
total_duration: float = Field(default=0.0, description="请求的总时长,单位为秒")
llm_parameters: Optional[LLMParameters] = Field(default=None, description="LLM参数")