Skip to content

Commit

Permalink
Fix: Correct construction of TextGenerator
Browse files Browse the repository at this point in the history
  • Loading branch information
SverreNystad committed Sep 20, 2023
1 parent 6f79401 commit db4ef59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/text_generation/text_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def get_default_text_generator(temperature: float = 0.7, is_llm: bool = True) ->
"""
assert 0.0 <= temperature <= 1.0, "Temperature must be between 0.0 and 1.0"
if is_llm:
return LLM(temperature)
return LLM(temperature=temperature)
else:
return Chatbot(temperature)
return Chatbot(temperature=temperature)

0 comments on commit db4ef59

Please sign in to comment.