PeterPinetree commited on
Commit
87c9853
·
verified ·
1 Parent(s): ca074f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -159,14 +159,13 @@ def respond(message: str, chat_history: List[Tuple[str, str]], genre: Optional[s
159
  api_messages.append({"role": "user", "content": str(message)})
160
  logging.debug(f"Final Message List: {api_messages}")
161
 
162
- # Make API call with timeout
163
  logging.debug("Making API call...")
164
  response = client.chat_completion(
165
  messages=api_messages,
166
  max_tokens=MAX_TOKENS,
167
  temperature=TEMPERATURE,
168
- top_p=TOP_P,
169
- timeout=30 # 30 second timeout
170
  )
171
  logging.debug("API call completed")
172
 
 
159
  api_messages.append({"role": "user", "content": str(message)})
160
  logging.debug(f"Final Message List: {api_messages}")
161
 
162
+ # Make API call without timeout
163
  logging.debug("Making API call...")
164
  response = client.chat_completion(
165
  messages=api_messages,
166
  max_tokens=MAX_TOKENS,
167
  temperature=TEMPERATURE,
168
+ top_p=TOP_P
 
169
  )
170
  logging.debug("API call completed")
171