Repository navigation
Conversation
This branch has not been deployed
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
agentbook/providers/registry.py, next to the other direct OpenAI-compatible backends: base URLhttps://api.runcrate.ai/v1, keyRUNCRATE_API_KEY, endpoint overrideRUNCRATE_BASE_URL, default modeldeepseek-ai/DeepSeek-V4.1-Flash.namespaces_modelsstays off), because Runcrate already uses organization-prefixed ids such aszai-org/GLM-5.3orQwen/Qwen3.5-397B-A17B, the same way SiliconFlow does..env.exampleand adds a row to the Chinese and English API-key tables (README.md,docs/en/README.md).--providerfromSUPPORTED_PROVIDERS,--provider runcratebecomes selectable with no other change.Testing
uv run --extra dev python -m pytest tests/test_providers.py -q: 83 passed (new: direct resolution withRUNCRATE_API_KEY, model ids kept as given,RUNCRATE_BASE_URLoverride,runcrateinSUPPORTED_PROVIDERS; both Runcrate variables added to the clearedPROVIDER_KEY_VARS).uv run --extra dev python -m pytest tests -q --ignore tests/test_site_edit_urls.py: 733 passed, 16 skipped, 1 failed. The failure istests/test_core_clean_site_links.py::test_linked_json_files_finds_script_and_iframe_linked_jsons, which fails the same way onmainwithout this change;tests/test_site_edit_urls.pyneedsmkdocs, which thedevextra does not install.uv run --extra dev ruff check agentbook/providers/registry.py tests/test_providers.py: all checks passed. (ruff format --checkalready reportstests/test_providers.pyonmain; the added tests do not change that.)resolve_backend("runcrate")with onlyRUNCRATE_API_KEYset, then theopenaiclient with the returned base URL and default model, a chat completion with one function tool:finish_reason: tool_calls, callingget_weatherwith{"city": "Paris"}.This PR was prepared with AI assistance (omp with Claude): the registry entry, tests, README rows and this description were written with it, and the commands and live call above were run as described.