Skip to content

chore(ci): forward STRUCTURED_OUTPUT env var to ai-reviewer#24

Open
LearningCircuit wants to merge 1 commit into
mainfrom
chore/forward-structured-output-env
Open

chore(ci): forward STRUCTURED_OUTPUT env var to ai-reviewer#24
LearningCircuit wants to merge 1 commit into
mainfrom
chore/forward-structured-output-env

Conversation

@LearningCircuit

Copy link
Copy Markdown
Owner

Summary

PR #23 made structured output optional and env-controlled in ai-reviewer.sh (STRUCTURED_OUTPUT defaults to 'true'; setting it to anything other than 'true' sends the request plain — for models without structured-output support).

The workflow never passed STRUCTURED_OUTPUT through to the script, so in CI it was permanently stuck on the default with no way to actually toggle it. This wires it up like the other tunables.

Changes

  • .github/workflows/ai-code-reviewer.yml: add to the env: block
STRUCTURED_OUTPUT: ${{ vars.STRUCTURED_OUTPUT || 'true' }}

Usage

To disable structured outputs for a non-supporting model, set the repo Actions Variable STRUCTURED_OUTPUT=false. Defaults to true (unchanged behavior).

No script changes needed — the runtime logic from #23 was already complete.

PR #23 made structured output optional and env-controlled in
ai-reviewer.sh (STRUCTURED_OUTPUT defaults to 'true'; setting it to
anything other than 'true' sends the request plain, for models without
structured-output support).

The workflow never passed STRUCTURED_OUTPUT through, so in CI it was
stuck on the default with no way to toggle it. Wire it up like the other
tunables so repo Actions Variable STRUCTURED_OUTPUT=false disables it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant