From 0830a38f9df84028430e7c75c402cbb0cd9c7c92 Mon Sep 17 00:00:00 2001 From: Tianqi Xu Date: Thu, 19 Sep 2024 15:09:41 +0300 Subject: [PATCH] Fix test --- crab/agents/backend_models/openai_model.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crab/agents/backend_models/openai_model.py b/crab/agents/backend_models/openai_model.py index 4c9827e..2d1eb23 100644 --- a/crab/agents/backend_models/openai_model.py +++ b/crab/agents/backend_models/openai_model.py @@ -46,6 +46,10 @@ def __init__( self.client = openai.OpenAI(base_url=base_url) self.tool_call_required: bool = tool_call_required self.system_message: str = "You are a helpful assistant." + self.openai_system_message = { + "role": "system", + "content": self.system_message, + } self.action_space: list[Action] | None = None self.action_schema: list[dict] | None = None self.token_usage: int = 0