Spaces:
Running
Running
Chandima Prabhath
commited on
Commit
·
5066509
1
Parent(s):
faa3c7c
Fix model parameter in Pollinations API URL to use 'openai-large' for improved performance
Browse files
polLLM.py
CHANGED
|
@@ -22,7 +22,7 @@ def generate_llm(prompt):
|
|
| 22 |
# Build the GET request URL for Pollinations' text API
|
| 23 |
randomSeed = random.randint(0, 999999)
|
| 24 |
print(f"DEBUG: Random seed: {randomSeed}")
|
| 25 |
-
url = f"https://text.pollinations.ai/{encoded_prompt}?model=openai&seed={randomSeed}&private=true&system={encoded_system}"
|
| 26 |
|
| 27 |
try:
|
| 28 |
response = requests.get(url, timeout=30)
|
|
|
|
| 22 |
# Build the GET request URL for Pollinations' text API
|
| 23 |
randomSeed = random.randint(0, 999999)
|
| 24 |
print(f"DEBUG: Random seed: {randomSeed}")
|
| 25 |
+
url = f"https://text.pollinations.ai/{encoded_prompt}?model=openai-large&seed={randomSeed}&private=true&system={encoded_system}"
|
| 26 |
|
| 27 |
try:
|
| 28 |
response = requests.get(url, timeout=30)
|