Skip to content

Commit 7f03489

Browse files
fix: http client generic parameter part 2 (0xPlaygrounds#1698)
* fix: http client generic parameter * revert example * fixup --------- Co-authored-by: Fay Carsons <faycarsons23@gmail.com>
1 parent 03bed11 commit 7f03489

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

rig/rig-core/src/providers/minimax.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ pub type ClientBuilder<H = crate::markers::Missing> =
7575
client::ClientBuilder<MiniMaxBuilder, MiniMaxApiKey, H>;
7676

7777
pub type AnthropicClient<H = reqwest::Client> = client::Client<MiniMaxAnthropicExt, H>;
78-
pub type AnthropicClientBuilder<H = reqwest::Client> =
78+
pub type AnthropicClientBuilder<H = crate::markers::Missing> =
7979
client::ClientBuilder<MiniMaxAnthropicBuilder, AnthropicKey, H>;
8080

8181
impl Provider for MiniMaxExt {

rig/rig-core/src/providers/moonshot.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ pub type Client<H = reqwest::Client> = client::Client<MoonshotExt, H>;
152152
pub type ClientBuilder<H = crate::markers::Missing> =
153153
client::ClientBuilder<MoonshotBuilder, MoonshotApiKey, H>;
154154
pub type AnthropicClient<H = reqwest::Client> = client::Client<MoonshotAnthropicExt, H>;
155-
pub type AnthropicClientBuilder<H = reqwest::Client> =
155+
pub type AnthropicClientBuilder<H = crate::markers::Missing> =
156156
client::ClientBuilder<MoonshotAnthropicBuilder, AnthropicKey, H>;
157157

158158
impl ProviderClient for Client {

rig/rig-core/src/providers/openai/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ pub type ClientBuilder<H = crate::markers::Missing> =
4444

4545
// Completions API client
4646
pub type CompletionsClient<H = reqwest::Client> = client::Client<OpenAICompletionsExt, H>;
47-
pub type CompletionsClientBuilder<H = reqwest::Client> =
47+
pub type CompletionsClientBuilder<H = crate::markers::Missing> =
4848
client::ClientBuilder<OpenAICompletionsExtBuilder, OpenAIApiKey, H>;
4949

5050
impl Provider for OpenAIResponsesExt {

rig/rig-core/src/providers/xiaomimimo.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ pub type ClientBuilder<H = crate::markers::Missing> =
6969
client::ClientBuilder<XiaomiMimoBuilder, XiaomiMimoApiKey, H>;
7070

7171
pub type AnthropicClient<H = reqwest::Client> = client::Client<XiaomiMimoAnthropicExt, H>;
72-
pub type AnthropicClientBuilder<H = reqwest::Client> =
72+
pub type AnthropicClientBuilder<H = crate::markers::Missing> =
7373
client::ClientBuilder<XiaomiMimoAnthropicBuilder, AnthropicKey, H>;
7474

7575
impl Provider for XiaomiMimoExt {

rig/rig-core/src/providers/zai.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ pub type ClientBuilder<H = crate::markers::Missing> =
7474
client::ClientBuilder<ZAiBuilder, ZAiApiKey, H>;
7575

7676
pub type AnthropicClient<H = reqwest::Client> = client::Client<ZAiAnthropicExt, H>;
77-
pub type AnthropicClientBuilder<H = reqwest::Client> =
77+
pub type AnthropicClientBuilder<H = crate::markers::Missing> =
7878
client::ClientBuilder<ZAiAnthropicBuilder, AnthropicKey, H>;
7979

8080
impl Provider for ZAiExt {

0 commit comments

Comments
 (0)