-
Notifications
You must be signed in to change notification settings - Fork 491
feat(cli): add fuzzy find provider capability to cli #1088
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
0cb20d1
to
7599587
Compare
12de6bb
to
5a7bdb0
Compare
c88c5ff
to
9cec72e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a neat idea, approving. How about adding a validate option where we pass in a provider/model so we can check if it's supported by Guardrails?
Could you fix these warnings before merging:
|
f97aa2b
to
bcf578f
Compare
This is a very good idea 👍🏻 I'll explore the possibility and get back to you. |
bcf578f
to
c925b04
Compare
Introduced a new CLI module for interactive selection of LLM providers. The module supports listing and selecting both text completion and chat completion providers using fuzzy matching and a user-friendly interface. Includes: - `_list_providers` for listing available providers. - `select_provider_type` and `select_provider` for interactive selection. - `find_providers` as the main entry point for the CLI command.
Added a new `find_providers` command to the CLI for listing and interactively selecting LLM providers. The command supports both text and chat completion providers and includes a `--list` option for displaying available providers without selection.
Added comprehensive unit tests for provider selection functionality, including tests for listing providers, getting provider completions, and interactive selection of provider types and providesr Tests include: - `_list_providers` output validation. - `_get_provider_completions` return type and content checks. - `find_providers` with `list_only` option. - Mocked tests for `select_provider_type` and `select_provider_with_type`.
7599587
to
95edc71
Compare
Description
Easily search providers and add it to your config using:
cli-fuzzy-find.mov
Requires:
#1085
#Resolves:
#520
Documentation
#1089