Skip to content

Commit

Permalink
cast to int and float
Browse files Browse the repository at this point in the history
  • Loading branch information
AnniePacheco committed Sep 18, 2024
1 parent de9f870 commit 3785c8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/managers/MessagesManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ def __init__(self):
with self._lock:
if not hasattr(self, '_initialized'):
self._initialized = True
self.max_tokens = os.environ.get('MAX_TOKENS')
self.temperature = os.environ.get('TEMPERATURE')
self.max_tokens = int(os.environ.get('MAX_TOKENS'))
self.temperature = float(os.environ.get('TEMPERATURE'))

async def __get_llm_name__(self, assistant_id) -> Tuple[Optional[str], Optional[str]]:
async with db_session_context() as session:
Expand Down

0 comments on commit 3785c8b

Please sign in to comment.