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

This commit is contained in:
Andrew Phillips
2024-06-16 12:40:16 -03:00
parent 3eba963d03
commit c0c875eae2
3 changed files with 4 additions and 5 deletions

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))