fix(ops): chat 502/500 fixes, artifacts API, Bailian fallback - #237
Merged
Conversation
Add GET /ops/runs/{id}/artifacts, gracefully handle missing artifacts
table, map clarify runs to fast for DB route constraint compatibility,
and improve Bailian quota detection plus production model fallback chain.
Co-authored-by: Cursor <cursoragent@cursor.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
Tick the box to add this pull request to the merge queue (same as
|
Align manifest with ops_run_artifacts SQL and artifacts read API so tech_graph manifest_check passes in CI. Co-authored-by: Cursor <cursoragent@cursor.com>
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
qwen3.7-plusfree-tier exhaustion no longer returns 502 onPOST /ops/chat/messages.route=fastfor currentops_runs_route_checkcompatibility (API still returnsroute=clarify).GET /ops/runs/{run_id}/artifactsand returnartifacts: []whenops_run_artifactstable is not migrated yet.ops_desk_p1_clarify_route.sqlfor future DB-levelclarifyroute support.Test plan
pytest tests/ops_desk/test_llm_usage_metrics.py -k "bailian_quota or resolve_bailian"pytest tests/ops_desk/test_orchestrator_p1.py::test_get_run_artifacts_emptypytest tests/ops_desk/test_orchestrator_p1.py::test_get_run_artifacts_not_foundpytest tests/ops/test_chat_service.py tests/ops/test_clarify.pyPOST /api/py/ops/chat/messagesreturns 200 for clarify pathGET /api/py/ops/runs/{id}/artifactsreturns 200 with empty list when table missingMade with Cursor
CI 状态(自动 · pr-post-ci)
Required 全绿:是
变更范围(自动统计)
文件数:10
api/supabase/tests/docs/⚠ automerge 路径闸:含
api/、tests/、.github/workflows/等 — 勿打automerge或须人审 merge。命中路径
api/ops/chat_service.pyapi/ops/llm/model_catalog.pyapi/ops/llm/providers/openai_compatible.pyapi/ops/runs.pyapi/ops/store/runs.pysupabase/sql/ops_desk_p1_clarify_route.sqlsupabase/sql/ops_desk_p1_clarify_route_rollback.sqltests/ops_desk/test_llm_usage_metrics.pytests/ops_desk/test_orchestrator_p1.py