nanova commited on
Commit
d1285cd
·
1 Parent(s): 001ce47
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -70,8 +70,8 @@ def respond(
70
  if 'choices' in json_response and len(json_response['choices']) > 0:
71
  content = json_response['choices'][0].get('message', {}).get('content', '')
72
  if content:
73
- if '<think>' in content and '</think>' in content:
74
- content = content.split('</think>')[-1].strip()
75
  print(f"[INFO] response: {content}")
76
  return content
77
  return "Service temporarily unavailable"
 
70
  if 'choices' in json_response and len(json_response['choices']) > 0:
71
  content = json_response['choices'][0].get('message', {}).get('content', '')
72
  if content:
73
+ # if '<think>' in content and '</think>' in content:
74
+ # content = content.split('</think>')[-1].strip()
75
  print(f"[INFO] response: {content}")
76
  return content
77
  return "Service temporarily unavailable"