refactor: 分隔LLM请求过程和消息封装过程

This commit is contained in:
RockChinQ
2024-02-01 15:48:26 +08:00
parent 32162afa65
commit 976a9de39c
11 changed files with 205 additions and 132 deletions

View File

@@ -20,7 +20,7 @@ class ToolCall(pydantic.BaseModel):
class Message(pydantic.BaseModel):
role: str
role: str # user, system, assistant, tool, command
name: typing.Optional[str] = None