Spaces:
Sleeping
Sleeping
Update main.py
Browse files
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
|