Spaces:
Runtime error
Runtime error
change temp from 0.7 to 1
Browse files
app.py
CHANGED
|
@@ -28,7 +28,7 @@ def chat(user_message, chat_history, chat_pairs, sources, plan):
|
|
| 28 |
# Call OpenAI's ChatCompletion to get assistant's reply
|
| 29 |
try:
|
| 30 |
model = os.getenv("OPENAI_MODEL", "gpt-5-mini")
|
| 31 |
-
temperature = float(os.getenv("TEMPERATURE", "
|
| 32 |
max_completion_tokens = int(os.getenv("MAX_OUTPUT_TOKENS", "1024"))
|
| 33 |
# Support alternative secret name COURSECREATOR_API_KEY as a fallback for the OpenAI API key
|
| 34 |
api_key = os.getenv("OPENAI_API_KEY") or os.getenv("COURSECREATOR_API_KEY")
|
|
|
|
| 28 |
# Call OpenAI's ChatCompletion to get assistant's reply
|
| 29 |
try:
|
| 30 |
model = os.getenv("OPENAI_MODEL", "gpt-5-mini")
|
| 31 |
+
temperature = float(os.getenv("TEMPERATURE", "1"))
|
| 32 |
max_completion_tokens = int(os.getenv("MAX_OUTPUT_TOKENS", "1024"))
|
| 33 |
# Support alternative secret name COURSECREATOR_API_KEY as a fallback for the OpenAI API key
|
| 34 |
api_key = os.getenv("OPENAI_API_KEY") or os.getenv("COURSECREATOR_API_KEY")
|