Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,9 +14,9 @@ except requests.exceptions.RequestException as e:
|
|
| 14 |
css = " h1{text-align:center}"
|
| 15 |
|
| 16 |
API_URL = "https://text.pollinations.ai/openai"
|
| 17 |
-
MODEL_NAME = "
|
| 18 |
TEMPERATURE = 0.7
|
| 19 |
-
MAX_TOKENS =
|
| 20 |
|
| 21 |
def call_pollinations_api(messages, temperature=TEMPERATURE, max_tokens=MAX_TOKENS, stream=False): # stream=False
|
| 22 |
"""Calls the Pollinations API with the given messages."""
|
|
|
|
| 14 |
css = " h1{text-align:center}"
|
| 15 |
|
| 16 |
API_URL = "https://text.pollinations.ai/openai"
|
| 17 |
+
MODEL_NAME = "openai-fast"
|
| 18 |
TEMPERATURE = 0.7
|
| 19 |
+
MAX_TOKENS = 1500
|
| 20 |
|
| 21 |
def call_pollinations_api(messages, temperature=TEMPERATURE, max_tokens=MAX_TOKENS, stream=False): # stream=False
|
| 22 |
"""Calls the Pollinations API with the given messages."""
|