fix: don't send default temperature=0 to Claude Opus/Sonnet 5+ models #113
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test OpenAI Examples | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| workflow_dispatch: | |
| jobs: | |
| test-openai: | |
| name: Test OpenAI Examples | |
| runs-on: ubuntu-latest | |
| env: | |
| # OpenAI | |
| OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
| OPENAI_MODEL_NAME: ${{ secrets.OPENAI_MODEL_NAME }} | |
| # Configuration | |
| LLM_SHOW_TIMING: ${{ secrets.LLM_SHOW_TIMING }} | |
| ENABLE_TRACING: ${{ secrets.ENABLE_TRACING }} | |
| LLM_PROVIDER: ${{ secrets.LLM_PROVIDER }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Set up Python 3.13 | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.13" | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| version: latest | |
| - name: Cache dependencies | |
| uses: actions/cache@v5 | |
| with: | |
| path: | | |
| .venv | |
| .uv | |
| key: ${{ runner.os }}-3.13-${{ hashFiles('**/pyproject.toml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-3.13- | |
| - name: Install dependencies | |
| run: | | |
| uv sync --dev | |
| - name: Test OpenAI | |
| id: test-openai | |
| run: | | |
| source .venv/bin/activate | |
| echo "🧪 Testing OpenAI Example" | |
| python examples/openai_example.py | |
| echo "status=success" >> $GITHUB_OUTPUT | |
| continue-on-error: true | |
| - name: Comment test results on PR | |
| if: github.event_name == 'pull_request' | |
| uses: actions/github-script@v8 | |
| with: | |
| script: | | |
| const stepResult = '${{ steps.test-openai.outputs.status }}'; | |
| let summary = "### 🧪 OpenAI Test Results\n\n"; | |
| if (stepResult === "success") { | |
| summary += "✅ **OpenAI Examples**: PASS\n"; | |
| } else { | |
| summary += "❌ **OpenAI Examples**: FAIL\n"; | |
| } | |
| summary += "\n---\n"; | |
| summary += "🔗 [View full workflow run](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})"; | |
| github.rest.issues.createComment({ | |
| issue_number: context.issue.number, | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| body: summary | |
| }); |