mirror of
https://github.com/ollama/ollama-python.git
synced 2026-01-14 06:07:17 +08:00
Merge 5a38afe5e0 into 60e7b2f9ce
This commit is contained in:
commit
8d01929ae4
@ -1,6 +1,7 @@
|
|||||||
import contextlib
|
import contextlib
|
||||||
import ipaddress
|
import ipaddress
|
||||||
import json
|
import json
|
||||||
|
import logging
|
||||||
import os
|
import os
|
||||||
import platform
|
import platform
|
||||||
import sys
|
import sys
|
||||||
@ -26,6 +27,11 @@ from typing import (
|
|||||||
import anyio
|
import anyio
|
||||||
from pydantic.json_schema import JsonSchemaValue
|
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
|
from ollama._utils import convert_function_to_tool
|
||||||
|
|
||||||
if sys.version_info < (3, 9):
|
if sys.version_info < (3, 9):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user