Skip to content

Commit

Permalink
Fix: Temperature Not Updated When Set to 0 VRSEN#142
Browse files Browse the repository at this point in the history
  • Loading branch information
VRSEN committed Jun 3, 2024
1 parent 48f57bf commit 94f79ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agency_swarm/agents/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def init_oai(self):
self.instructions = self.instructions or self.assistant.instructions
self.name = self.name if self.name != self.__class__.__name__ else self.assistant.name
self.description = self.description or self.assistant.description
self.temperature = self.temperature or self.assistant.temperature
self.temperature = self.assistant.temperature if self.temperature is None else self.temperature
self.top_p = self.top_p or self.assistant.top_p
self.response_format = self.response_format or self.assistant.response_format
if not isinstance(self.response_format, str):
Expand Down

0 comments on commit 94f79ca

Please sign in to comment.