Skip to content

fix: fallback for empty model list#172

Open
euyua9 wants to merge 1 commit intoBuilderIO:mainfrom
euyua9:fix/model-select-fallback-euyua9
Open

fix: fallback for empty model list#172
euyua9 wants to merge 1 commit intoBuilderIO:mainfrom
euyua9:fix/model-select-fallback-euyua9

Conversation

@euyua9
Copy link
Copy Markdown

@euyua9 euyua9 commented Apr 23, 2026

Summary

  • filter listModels() results down to valid string ids before showing model choices
  • fall back to manual model id input when the endpoint returns no selectable models
  • avoid crashing the config UI on custom OpenAI-compatible endpoints that return an empty/odd model list

Tests

  • npm run lint -- src/helpers/config.ts
  • npm run typecheck

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