This commit is contained in:
ゆり 2026-01-07 02:55:11 +01:00 committed by GitHub
commit 8d01929ae4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,6 +1,7 @@
import contextlib
import ipaddress
import json
import logging
import os
import platform
import sys
@ -26,6 +27,11 @@ from typing import (
import anyio
from pydantic.json_schema import JsonSchemaValue
# Set httpx logger to WARNING level to suppress verbose HTTP request logs at INFO level.
# Users who want to see these logs can set the level back to INFO or DEBUG in their application.
# See: https://github.com/ollama/ollama-python/issues/539
logging.getLogger('httpx').setLevel(logging.WARNING)
from ollama._utils import convert_function_to_tool
if sys.version_info < (3, 9):