fix(api): box anthropic provider client enum variant

Resolves clippy::large_enum_variant in client.rs.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
YeonGyu-Kim
2026-04-02 14:55:51 +09:00
parent 2959cd1e51
commit 464a870180
2 changed files with 9 additions and 7 deletions
+1 -1
View File
@@ -407,7 +407,7 @@ async fn provider_client_dispatches_anthropic_requests() {
.expect("anthropic provider client should be constructed");
let client = match client {
ProviderClient::Anthropic(client) => {
ProviderClient::Anthropic(client.with_base_url(server.base_url()))
ProviderClient::Anthropic(Box::new((*client).with_base_url(server.base_url())))
}
other => panic!("expected anthropic provider, got {other:?}"),
};