Refine agent strategy routing and config handling

This commit is contained in:
lky-spec
2026-04-28 19:37:44 +08:00
parent fc6c42ac11
commit 2d45e7ab15
22 changed files with 1321 additions and 968 deletions

View File

@@ -345,6 +345,11 @@ func TestClient_IsRetryableError(t *testing.T) {
err: errors.New("connection reset by peer"),
expected: true,
},
{
name: "upstream empty output",
err: errors.New(`API returned error (status 429): {"error":{"code":"upstream_empty_output","message":"Upstream model returned empty output.","type":"rate_limit_error"}}`),
expected: true,
},
{
name: "normal error",
err: errors.New("bad request"),