Skip to content

Commit 47435f6

Browse files
fix: don't fetch models.dev on completion (anomalyco#13997)
1 parent df59d14 commit 47435f6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/opencode/src/provider/models.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export namespace ModelsDev {
122122
}
123123
}
124124

125-
if (!Flag.OPENCODE_DISABLE_MODELS_FETCH) {
125+
if (!Flag.OPENCODE_DISABLE_MODELS_FETCH && !process.argv.includes("--get-yargs-completions")) {
126126
ModelsDev.refresh()
127127
setInterval(
128128
async () => {

0 commit comments

Comments
 (0)