fix(ci): repair PR-Agent model routing
PR Check / Security scan (Snyk) (pull_request) Skipped
PR Check / Lint + typecheck (pull_request) Successful in 1m8s
PR Check / Secret scan (gitleaks) (pull_request) Successful in 7s
PR Check / Dependency audit (pull_request) Successful in 8s
PR Check / Dockerfile lint (droast) (pull_request) Successful in 5s
PR Check / Security scan (Snyk) (pull_request) Skipped
PR Check / Lint + typecheck (pull_request) Successful in 1m8s
PR Check / Secret scan (gitleaks) (pull_request) Successful in 7s
PR Check / Dependency audit (pull_request) Successful in 8s
PR Check / Dockerfile lint (droast) (pull_request) Successful in 5s
OpenCode Go rejects requests without x-opencode-session, and LiteLLM needs the openai/ prefix on the fallback model. Supply the header through LITELLM__EXTRA_HEADERS, keep the prefixed fallback, and stop auto-running /improve so a PR gets one review plus /describe.
This commit is contained in:
1 parent
3eac73255f
commit
a43134ad83
4 files changed
+25
-3
No files matched your search
@@ -26,3 +26,7 @@ OPENAI__KEY=
|
||||
|
||||
# OpenCode Go requires a session id header; a stable id is enough here.
|
||||
LITELLM__EXTRA_HEADERS={"x-opencode-session":"pr-agent"}
|
||||
|
||||
# Auto commands on PR open. /improve remains available as a comment command;
|
||||
# leaving it in the auto list adds a second model call to every PR.
|
||||
GITEA__PR_COMMANDS=["/describe","/review"]
|
||||
Reference in new issue
Block a user