Use log.debug() for logging request bodies for the backend API

This commit is contained in:
Andrew Phillips committed 2024-06-16 12:40:16 -03:00
1 parent 3eba963d03
commit c0c875eae2
3 files changed
+4 -5

No files matched your search

+1 -2
View File
@@ -839,8 +839,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))