Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

fix: fix setup wizard

Krrish Dholakia5671baaadf7d
diff --git a/litellm/setup_wizard.py b/litellm/setup_wizard.py
index ee5918e1273..666915669fa 100644
--- a/litellm/setup_wizard.py
+++ b/litellm/setup_wizard.py
@@ -71,7 +71,7 @@ PROVIDERS: List[Dict] = [
"id": "azure",
"name": "Azure OpenAI",
"description": "GPT-4o via Azure",
- "env_key": "AZURE_API_KEY",
+ "env_key": "AZURE_AI_API_KEY",
"key_hint": "your-azure-key",
"test_model": None, # needs deployment name — skip validation
"models": [],
@@ -428,7 +428,7 @@ class SetupWizard:
f" {blue('❯')} Azure endpoint URL {grey(p.get('api_base_hint', ''))}: "
)
if api_base:
- env_vars[f"_LITELLM_AZURE_API_BASE_{p['id'].upper()}"] = api_base
+ env_vars[f"_LITELLM_AZURE_AI_API_BASE_{p['id'].upper()}"] = api_base
deployment = _styled_input(
f" {blue('❯')} Azure deployment name {grey('(e.g. my-gpt4o)')}: "
)
@@ -557,7 +557,7 @@ class SetupWizard:
f' api_base: "{_yaml_escape(str(p["api_base"]))}"'
)
elif p.get("needs_api_base"):
- azure_base_key = f"_LITELLM_AZURE_API_BASE_{p['id'].upper()}"
+ azure_base_key = f"_LITELLM_AZURE_AI_API_BASE_{p['id'].upper()}"
if azure_base_key in env_copy:
lines.append(
f' api_base: "{_yaml_escape(env_copy.pop(azure_base_key))}"'
diff --git a/tests/llm_translation/test_fireworks_ai_translation.py b/tests/llm_translation/test_fireworks_ai_translation.py
index 24c0d546e25..1cc6aabdca8 100644
--- a/tests/llm_translation/test_fireworks_ai_translation.py
+++ b/tests/llm_translation/test_fireworks_ai_translation.py
@@ -77,18 +77,6 @@ def test_map_response_format():
}
[email protected](reason="fireworks is having an active outage")
-class TestFireworksAIChatCompletion(BaseLLMChatTest):
- def get_base_completion_call_args(self) -> dict:
- return {
- "model": "fireworks_ai/accounts/fireworks/models/llama-v3p1-8b-instruct"
- }
-
- def test_tool_call_no_arguments(self, tool_call_no_arguments):
- """Test that tool calls with no arguments is translated correctly. Relevant issue: https://github.com/BerriAI/litellm/issues/6833"""
- pass
-
-
class TestFireworksAIAudioTranscription(BaseLLMAudioTranscriptionTest):
def get_base_audio_transcription_call_args(self) -> dict:
return {
@@ -252,7 +240,5 @@ def test_global_disable_flag_with_transform_messages_helper(monkeypatch):
json_data = json.loads(mock_post.call_args.kwargs["data"])
assert (
"#transform=inline"
- not in json_data["messages"][0]["content"][1]["image_url"][
- "url"
- ]
+ not in json_data["messages"][0]["content"][1]["image_url"]["url"]
)