bibibi12345 commited on
Commit
a8e4f2c
·
verified ·
1 Parent(s): 079dc83

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +3 -0
main.py CHANGED
@@ -55,6 +55,9 @@ async def proxy(request: Request, path: str):
55
  if "frequency_penalty" in data:
56
  del data["frequency_penalty"]
57
  print("Removed frequency_penalty from request body")
 
 
 
58
  body = json.dumps(data).encode("utf-8")
59
  except json.JSONDecodeError:
60
  pass # If the body isn't valid JSON, forward it unchanged
 
55
  if "frequency_penalty" in data:
56
  del data["frequency_penalty"]
57
  print("Removed frequency_penalty from request body")
58
+ if "top_p" in data:
59
+ del data["top_p"]
60
+ print("Removed top_p from request body")
61
  body = json.dumps(data).encode("utf-8")
62
  except json.JSONDecodeError:
63
  pass # If the body isn't valid JSON, forward it unchanged