Use log.debug() for logging request bodies for the backend API
This commit is contained in:
1 parent
3eba963d03
commit
c0c875eae2
3 files changed
+4
-5
No files matched your search
@@ -430,7 +430,7 @@ async def generate_chat_completion(
|
||||
# Convert the modified body back to JSON
|
||||
payload = json.dumps(payload)
|
||||
|
||||
print(payload)
|
||||
log.debug(payload)
|
||||
|
||||
url = app.state.config.OPENAI_API_BASE_URLS[idx]
|
||||
key = app.state.config.OPENAI_API_KEYS[idx]
|
||||
|
||||
Reference in new issue
Block a user