test_azure_openai_with_prompt_cache_key

This commit is contained in:
Ishaan Jaffer 2026-02-11 12:25:15 -08:00
parent e032205afe
commit 3058ab0b14

View file

@ -736,7 +736,10 @@ def test_azure_openai_with_prompt_cache_key():
"""
litellm._turn_on_debug()
response = litellm.completion(
model="azure/gpt-4o",
model="azure/gpt-4.1-mini",
api_key=os.getenv("AZURE_API_KEY"),
api_base=os.getenv("AZURE_API_BASE"),
api_version="2024-12-01-preview",
messages=[{"role": "user", "content": "What is the weather in San Francisco?"}],
prompt_cache_key="test_streaming_azure_openai",
)