Skip to content

Commit 9daaf07

Browse files
Boris DevBoris Dev
authored andcommitted
cleaned the test of claude cruft
1 parent 83f9d8d commit 9daaf07

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

test_azure_openai.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ def test_azure_openai_direct():
3434
print("Required environment variables:")
3535
print(" - AZURE_OPENAI_ENDPOINT")
3636
print(" - AZURE_OPENAI_API_KEY")
37-
print(" - AZURE_API_VERSION (optional)")
38-
print(" - AZURE_DEPLOYMENT_NAME (optional)")
37+
print(" - AZURE_API_VERSION")
38+
print(" - AZURE_DEPLOYMENT_NAME")
3939
return False
4040

4141
print(f"Azure Configuration:")
4242
print(f" Endpoint: {azure_endpoint}")
43-
print(f" API Version: {azure_api_version or 'default'}")
44-
print(f" Deployment: {azure_deployment or 'default'}")
43+
print(f" API Version: {azure_api_version}")
44+
print(f" Deployment: {azure_deployment}")
4545
print()
4646

4747
try:
@@ -50,7 +50,7 @@ def test_azure_openai_direct():
5050

5151
# Construct the Azure model string for LiteLLM
5252
# Format: azure/{deployment_name}
53-
model = f"azure/{azure_deployment}" if azure_deployment else "azure/gpt-4"
53+
model = f"azure/{azure_deployment}"
5454

5555
print(f"Testing LiteLLM connection with model: {model}")
5656

@@ -80,11 +80,6 @@ def test_azure_openai_direct():
8080
print("✅ Azure OpenAI connection successful!")
8181
print(f"Response: {content}")
8282

83-
# Print usage info if available
84-
if hasattr(response, "usage"):
85-
usage = response.usage
86-
print(f"Tokens used: {getattr(usage, 'total_tokens', 'unknown')}")
87-
8883
return True
8984
else:
9085
print("❌ Azure OpenAI connection failed: Empty or invalid response")

0 commit comments

Comments
 (0)