Skip to content

Commit

Permalink
Temporary disable litellm import warnings (#1068)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkuzmik authored Jan 17, 2025
1 parent fd48d17 commit 40dc733
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
import importlib.metadata
import logging
import warnings
from functools import cached_property
from typing import Any, Dict, List, Optional, Set

import litellm
with warnings.catch_warnings():
# This is the first time litellm is imported when opik is imported.
# It filters out pydantic warning.
# Litellm has already fixed that, but it is not released yet, so this filter
# should be removed from here soon.
warnings.simplefilter("ignore")
import litellm

from litellm.types.utils import ModelResponse

from opik import semantic_version
Expand Down

0 comments on commit 40dc733

Please sign in to comment.