Skip to content

Commit

Permalink
use startswith
Browse files Browse the repository at this point in the history
  • Loading branch information
SmartManoj committed Sep 16, 2024
1 parent 71571f3 commit c8f2a04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agenthub/codeact_agent/codeact_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def step(self, state: State) -> Action:
return self.action_parser.parse(response)

def _get_messages(self, state: State) -> list[Message]:
system_role = 'user' if 'o1-' in config2.model else 'system'
system_role = 'user' if config2.model.startswith('o1-') else 'system'
messages: list[Message] = [
Message(
role=system_role,
Expand Down

0 comments on commit c8f2a04

Please sign in to comment.