Merge pull request #3217 from theasp/better-body-logging

chore: Log API request bodies at debug level
This commit is contained in:
Timothy Jaeryang Baek
2024-06-16 09:07:22 -07:00
committed by GitHub
3 changed files with 4 additions and 7 deletions

View File

@@ -850,8 +850,7 @@ async def generate_chat_completion(
url = app.state.config.OLLAMA_BASE_URLS[url_idx]
log.info(f"url: {url}")
print(payload)
log.debug(payload)
return await post_streaming_url(f"{url}/api/chat", json.dumps(payload))