-
Notifications
You must be signed in to change notification settings - Fork 10
Refactor ep upload to use Fireworks SDK + Auto-generate flags
#379
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
Refactor ep upload to use Fireworks SDK + Auto-generate flags
#379
Conversation
…eworks-sdk-auto-generate-flags # Conflicts: # development/CONTRIBUTING.md # docs/cli_reference/cli_overview.mdx # eval_protocol/auth.py # eval_protocol/cli_commands/utils.py # tests/test_auth.py
ep upload to use Fireworks SDK + Auto-generate flags
…eworks-sdk-auto-generate-flags
…eworks-sdk-auto-generate-flags
…les and remove API_KEY filtering logic
…eworks-sdk-auto-generate-flags
- Introduced `_prompt_select_secrets` function to allow users to select environment variables for upload as secrets. - Implemented fallback selection method for non-interactive environments. - Updated `upload_command` to utilize the new secret selection logic. - Enhanced user experience with improved prompts and error handling. - Added `_get_questionary_style` function for consistent CLI styling.
| ) | ||
|
|
||
| # Auto-generate flags from SDK Fireworks().evaluators.create() signature | ||
| create_evaluator_fn = Fireworks().evaluators.create |
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.
Fireworks SDK client created at CLI parser build time
The Fireworks() client is instantiated during parser construction (in _configure_parser), which happens for every CLI invocation including --help. This means users who haven't configured their FIREWORKS_API_KEY environment variable will be unable to run eval-protocol --help or any command without credentials. The add_args_from_callable_signature function only needs the method signature for introspection, so instantiating a live client with potential network/auth requirements is unnecessary and breaks the CLI for unconfigured users.
Note
Modernizes evaluator creation and secret management via the Fireworks SDK and simplifies the CLI surface.
upload): adds auto-generated flags fromFireworks().evaluators.create(with aliases/help overrides), consolidates--force, and introduces interactive/non-interactive secret selection (Questionary style, masking) pulling from.envand env varsEvaluator.create()now uses SDK for get/delete/create, signed URL retrieval, and upload validation; removes large amounts of legacy code (preview/multi-metric loaders, folder parsing)secrets.get/create/update/delete) and handles NotFound/500 cases via typed errorsdeploy,preview,deploy-mcp, andrunpaths and their tests; streamlines arg parsing/helpfireworks-aito1.0.0a20Written by Cursor Bugbot for commit a785e66. This will update automatically on new commits. Configure here.