Commit
·
96a8503
1
Parent(s):
fe80c00
fixing streaming
Browse files
main.py
CHANGED
|
@@ -86,6 +86,8 @@ async def proxy(request: Request, model_path: str, api_key: str = Security(get_a
|
|
| 86 |
except json.JSONDecodeError:
|
| 87 |
pass # Not a json body, proxy as is
|
| 88 |
|
|
|
|
|
|
|
| 89 |
target_url = f"https://aiplatform.googleapis.com/v1/projects/{project_id}/locations/global/publishers/google/models/{model_path}?key={express_key}"
|
| 90 |
|
| 91 |
client = httpx.AsyncClient(timeout=None)
|
|
|
|
| 86 |
except json.JSONDecodeError:
|
| 87 |
pass # Not a json body, proxy as is
|
| 88 |
|
| 89 |
+
print(request_body_to_send)
|
| 90 |
+
|
| 91 |
target_url = f"https://aiplatform.googleapis.com/v1/projects/{project_id}/locations/global/publishers/google/models/{model_path}?key={express_key}"
|
| 92 |
|
| 93 |
client = httpx.AsyncClient(timeout=None)
|