# yaml-language-server: $schema=https://promptfoo.dev/config-schema.json description: 'Simple code generation with Codex SDK' prompts: - 'Write a Python function that calculates the factorial of a number. Output only the code.' providers: - id: openai:codex-sdk config: model: gpt-5.2-codex model_reasoning_effort: high cli_config: model_verbosity: medium sandbox_mode: read-only skip_git_repo_check: true tests: - vars: {} assert: - type: contains value: 'def factorial'