Skip to content

feat: display error on selection of invalid model - #78

Closed
thesoorajsingh wants to merge 0 commit into
openai:mainfrom
thesoorajsingh:feat/invalid-model-error
Closed

thesoorajsingh wants to merge 0 commit into
openai:mainfrom
thesoorajsingh:feat/invalid-model-error

Conversation

@thesoorajsingh

Copy link
Copy Markdown
Contributor

Fixes #32

@tibo-openai

Copy link
Copy Markdown
Collaborator

nice, ty, could you add a test as part of this PR and I'll merge

@github-actions

github-actions Bot commented Apr 17, 2025 •

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@thesoorajsingh

Copy link
Copy Markdown
Contributor Author

I have read the CLA Document and I hereby sign the CLA

github-actions Bot added a commit that referenced this pull request Apr 17, 2025
@thesoorajsingh

Copy link
Copy Markdown
Contributor Author

hello @tibo-openai,
the test i've added covers picking valid and invalid models, and relevant function calls. feel free to review and add/modify/suggest more cases if needed :)

@thesoorajsingh

thesoorajsingh commented Apr 18, 2025 •

Copy link
Copy Markdown
Contributor Author

@tibo-openai, rewrote some tests
lmk if this testing format works or you'd prefer ink's testing-library :)

@thesoorajsingh

Copy link
Copy Markdown
Contributor Author

bumping @tibo-openai :)

@thesoorajsingh

Copy link
Copy Markdown
Contributor Author

following up on this for a quick run through :)

Will close if not relevant, or can resolve conflicts to merge

@tibo-openai

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of passing back state from the child to the parent, could you change this slightly so that onSelect takes both the list of available models and the new model directly?

@tibo-openai

Copy link
Copy Markdown
Collaborator

Sorry this slipped, this still seems useful. Made a small comment on code structure, please take a look at that and it looks good to go. Thank you for adding tests.

@tibo-openai tibo-openai changed the title (feature) error on invalid model feat: display error on selection of invalid model Apr 23, 2025
@thesoorajsingh
thesoorajsingh force-pushed the feat/invalid-model-error branch from c6ca8c4 to 146a61b Compare April 23, 2025 17:25
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 23, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Provide suggestions on model picker

2 participants