Skip to content

Conversation

@dphuang2
Copy link
Collaborator

@dphuang2 dphuang2 commented Dec 16, 2025

  • Lots of other refactors

Note

Modernizes evaluator creation and secret management via the Fireworks SDK and simplifies the CLI surface.

  • CLI (upload): adds auto-generated flags from Fireworks().evaluators.create (with aliases/help overrides), consolidates --force, and introduces interactive/non-interactive secret selection (Questionary style, masking) pulling from .env and env vars
  • Evaluator lifecycle: Evaluator.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)
  • Platform API: replaces raw requests with SDK (secrets.get/create/update/delete) and handles NotFound/500 cases via typed errors
  • CLI cleanup: prunes disabled deploy, preview, deploy-mcp, and run paths and their tests; streamlines arg parsing/help
  • Deps: bumps fireworks-ai to 1.0.0a20

Written by Cursor Bugbot for commit a785e66. This will update automatically on new commits. Configure here.

xzrderek and others added 3 commits December 16, 2025 09:54
…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
@dphuang2 dphuang2 changed the title Dhuang/dxe 442 refactor ep upload to use fireworks sdk auto generate flags Refactor ep upload to use Fireworks SDK + Auto-generate flags Dec 16, 2025
- 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
Copy link

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.

Additional Locations (1)

Fix in Cursor Fix in Web

@dphuang2 dphuang2 merged commit 5c14bdf into main Dec 30, 2025
17 checks passed
@dphuang2 dphuang2 deleted the dhuang/dxe-442-refactor-ep-upload-to-use-fireworks-sdk-auto-generate-flags branch December 30, 2025 19:09
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.

3 participants