Skip to content

Commit d6271ce

Browse files
committed
test fixes mock tests
1 parent bd7d653 commit d6271ce

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

litellm/llms/xai/responses/transformation.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from typing import TYPE_CHECKING, Any, Dict, List, Optional
22

3-
import litellm
43
from litellm._logging import verbose_logger
54
from litellm.llms.openai.responses.transformation import OpenAIResponsesAPIConfig
65
from litellm.secret_managers.main import get_secret_str
@@ -102,6 +101,8 @@ def validate_environment(
102101
103102
Uses XAI_API_KEY from environment or litellm_params.
104103
"""
104+
import litellm
105+
105106
litellm_params = litellm_params or GenericLiteLLMParams()
106107
api_key = (
107108
litellm_params.api_key
@@ -132,6 +133,8 @@ def get_complete_url(
132133
Returns:
133134
str: The full URL for the XAI /responses endpoint
134135
"""
136+
import litellm
137+
135138
api_base = (
136139
api_base
137140
or litellm.api_base

0 commit comments

Comments
 (0)