feat(server): add ingest token guardrails MVP#1554
feat(server): add ingest token guardrails MVP#1554yeyitech wants to merge 1 commit intovolcengine:mainfrom
Conversation
|
Codex seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
Summary
add_resourceandadd_skillResourceServiceand returnRESOURCE_EXHAUSTEDwhen limits are exceededScope
Ingest preflight token guardrails MVP for discussion #1430.
Testing
PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 PYTHONPATH="/tmp/ov-stubs:${PYTHONPATH}" pytest -o addopts='' tests/service/test_token_guardrails.py tests/metrics/config/test_server_config.py -qpython -m py_compile openviking/server/app.py openviking/server/config.py openviking/service/resource_service.py openviking_cli/client/http.py openviking_cli/exceptions.py tests/metrics/config/test_server_config.py tests/server/test_error_scenarios.py tests/service/test_token_guardrails.pyNotes
pytest-asynciocollector.