Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

temperature should not be an Int. it can be any value between 0-1

Yossi Marouanidd15900804ea
diff --git a/scripts/config.py b/scripts/config.py
index ebf1b08b22..8cbc67fc5a 100644
--- a/scripts/config.py
+++ b/scripts/config.py
@@ -44,7 +44,7 @@ class Config(metaclass=Singleton):
self.smart_token_limit = int(os.getenv("SMART_TOKEN_LIMIT", 8000))
self.openai_api_key = os.getenv("OPENAI_API_KEY")
- self.temperature = int(os.getenv("TEMPERATURE", "1"))
+ self.temperature = float(os.getenv("TEMPERATURE", "1"))
self.use_azure = False
self.use_azure = os.getenv("USE_AZURE") == 'True'
self.execute_local_commands = os.getenv('EXECUTE_LOCAL_COMMANDS', 'False') == 'True'