tui: allow specifying custom models file path via OPENCODE_MODELS_PATH

Users can now configure their own models configuration file by setting the OPENCODE_MODELS_PATH environment variable, providing more flexibility for testing and configuration.
This commit is contained in:
Dax Raad
2026-01-31 01:53:23 -05:00
parent 8e5db3083c
commit 6ecd011e51
4 changed files with 4 additions and 6 deletions

View File

@@ -61,10 +61,6 @@ jobs:
printf '%s\n' "XDG_STATE_HOME=${{ runner.temp }}/opencode-e2e/state" >> "$GITHUB_ENV"
fi
- name: Copy models fixture
run: |
cp "${{ github.workspace }}/packages/opencode/test/tool/fixtures/models-api.json" "${{ github.workspace }}/packages/opencode/src/provider/models-snapshot.ts"
- name: Seed opencode data
if: matrix.settings.name != 'windows'
working-directory: packages/opencode