feat: add Grok Build CLI provider - #26698
Closed
canderson26 wants to merge 6 commits into
Closed
Conversation
Collaborator
|
Related xAI/Grok provider work:
This PR adds a |
Author
|
Closing this polluted branch. It accidentally picked up unrelated local work after the Grok Build provider commit. A clean replacement branch/PR will be used instead. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a first-class
grok-buildprovider backed by the local Grok CLI.grok-buildin the provider registry, model catalog, aliases, model picker, runtime resolver, and auxiliary client pathGrokCliClient, an OpenAI-compatible shim aroundgrok --prompt-file--no-memory --disable-web-search --max-turns 1 --output-format plain --effort xhighHERMES_GROK_BUILD_COMMAND,GROK_CLI_PATH,HERMES_GROK_BUILD_ARGS, andHERMES_GROK_BUILD_EFFORTTesting
venv/bin/python -m py_compile agent/grok_cli_client.py hermes_cli/auth.py hermes_cli/models.py hermes_cli/runtime_provider.py hermes_cli/providers.py hermes_cli/model_normalize.py hermes_cli/main.py hermes_cli/model_switch.py hermes_cli/setup.py agent/auxiliary_client.py agent/model_metadata.py run_agent.py tests/agent/test_grok_cli_client.py tests/hermes_cli/test_api_key_providers.py tests/hermes_cli/test_model_validation.py tests/run_agent/test_run_agent.pyvenv/bin/python -m pytest tests/agent/test_grok_cli_client.py tests/hermes_cli/test_api_key_providers.py tests/hermes_cli/test_model_validation.py tests/run_agent/test_run_agent.py::test_aiagent_uses_grok_cli_clientvenv/bin/hermes chat -q "Reply exactly with: HERMES_GROK_BUILD_OK_2" --provider grok-build -m grok-build --ignore-rulesNotes
The provider relies on an already-authenticated local Grok CLI session. Run
grok loginand confirmgrok modelsincludesgrok-build.