mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-27 16:04:21 +00:00
perf: ruff format & remove stream params in requester
This commit is contained in:
@@ -127,6 +127,7 @@ class Message(pydantic.BaseModel):
|
||||
|
||||
class MessageChunk(pydantic.BaseModel):
|
||||
"""消息"""
|
||||
|
||||
resp_message_id: typing.Optional[str] = None
|
||||
"""消息id"""
|
||||
|
||||
@@ -148,7 +149,7 @@ class MessageChunk(pydantic.BaseModel):
|
||||
tool_call_id: typing.Optional[str] = None
|
||||
|
||||
# tool_calls: typing.Optional[list[ToolCallChunk]] = None
|
||||
|
||||
|
||||
is_final: bool = False
|
||||
|
||||
def readable_str(self) -> str:
|
||||
@@ -210,6 +211,7 @@ class ToolCallChunk(pydantic.BaseModel):
|
||||
function: FunctionCall
|
||||
"""函数调用"""
|
||||
|
||||
|
||||
class Prompt(pydantic.BaseModel):
|
||||
"""供AI使用的Prompt"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user