Skip to content

Commit

Permalink
chore: Update default model and message formatting in demo
Browse files Browse the repository at this point in the history
  • Loading branch information
Luncenok committed Nov 7, 2024
1 parent 51d0209 commit 2d9d338
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/llm_postor/demo_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ def load_game_engine():
game_engine = GameEngine()

# Only for new game. Saved games have llm_model selected in the game state
model_name = "meta-llama/llama-3.1-8b-instruct"
player_model_name = "meta-llama/llama-3.1-8b-instruct"
model_name = "meta-llama/llama-3.2-3b-instruct"
player_model_name = "meta-llama/llama-3.2-3b-instruct"
# model_name = "google/gemini-flash-1.5-exp"

game_engine.init_game()
Expand Down
2 changes: 1 addition & 1 deletion src/llm_postor/game/agents/discussion_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def respond_to_statements(self, points: str) -> str:
player_name=self.player_name,
player_role=self.role,
points=points,
messages="\n".join(self.messages)
messages=self.messages
))
response = self.llm.invoke([system_message, user_message])
self.add_token_usage(response.usage_metadata)
Expand Down

0 comments on commit 2d9d338

Please sign in to comment.