Fix the issue of Arch-Intent

This commit is contained in:
Shuguang Chen 2024-12-06 11:53:46 -08:00
parent 4fcfd83639
commit 818ec0a9db
4 changed files with 7 additions and 9 deletions

View file

@ -28,8 +28,8 @@ class ChatCompletionResponse(BaseModel):
id: Optional[int] = 0
object: Optional[str] = "chat_completion"
created: Optional[str] = ""
model: str
choices: List[Choice]
model: str
class ArchBaseHandler:
@ -124,7 +124,7 @@ class ArchBaseHandler:
if tools:
processed_messages.append(
{"role": "system", "content": self._format_system(tools)}
{"role": "system", "content": self._format_system_prompt(tools)}
)
for message in messages: