Rooni commited on
Commit
8e86e9f
·
verified ·
1 Parent(s): d278742

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 = "gemini" # Или какая у вас модель
18
  TEMPERATURE = 0.7
19
- MAX_TOKENS = 1200
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."""