OpenAI configuration for testing.
()
| 47 | |
| 48 | @pytest.fixture |
| 49 | def openai_config() -> Dict[str, Any]: |
| 50 | """OpenAI configuration for testing.""" |
| 51 | api_key = os.getenv("OPENAI_APIKEY", "test-key") |
| 52 | return { |
| 53 | "llm": { |
| 54 | "api_key": api_key, |
| 55 | "model": "gpt-3.5-turbo", |
| 56 | "temperature": 0, |
| 57 | }, |
| 58 | "verbose": False, |
| 59 | "headless": True, |
| 60 | } |
| 61 | |
| 62 | |
| 63 | @pytest.fixture |
nothing calls this directly
no outgoing calls
no test coverage detected