Azure OpenAI configuration for testing.
()
| 121 | |
| 122 | @pytest.fixture |
| 123 | def azure_config() -> Dict[str, Any]: |
| 124 | """Azure OpenAI configuration for testing.""" |
| 125 | return { |
| 126 | "llm": { |
| 127 | "api_key": os.getenv("AZURE_OPENAI_KEY", "test-key"), |
| 128 | "model": "azure_openai/gpt-35-turbo", |
| 129 | "api_base": os.getenv("AZURE_OPENAI_ENDPOINT", "https://test.openai.azure.com/"), |
| 130 | "api_version": "2024-02-15-preview", |
| 131 | "temperature": 0, |
| 132 | }, |
| 133 | "verbose": False, |
| 134 | "headless": True, |
| 135 | } |
| 136 | |
| 137 | |
| 138 | @pytest.fixture |
nothing calls this directly
no outgoing calls
no test coverage detected