continuedev / continue

⏩ Continue is the leading open-source AI code assistant. You can connect any models and any context to build custom autocomplete and chat experiences inside VS Code and JetBrains
https://docs.continue.dev/
Apache License 2.0
19.25k stars 1.66k forks source link

#2714 the models array can be empty #2721

Closed siom79 closed 2 weeks ago

siom79 commented 2 weeks ago

Description

Fixes issue #2714

Checklist

Screenshots

[ For visual changes, include screenshots. ]

Testing

[ For new or modified features, provide step-by-step testing instructions to validate the intended behavior of the change. ] [ For new UI features, ensure that the changes look good across viewport widths, light/dark theme, etc ]

siom79 commented 2 weeks ago

@sestinj As mentioned in the issue, we only have a custom model in config.ts and no model in config.json. Therefore this check will blow up the error and we can no longer use our custom model.

sestinj commented 2 weeks ago

oops completely forgot to read the issue 😅 yeah that makes sense. thx for the PR!