From eac01fb129ce5a06e00cc2cc24e31b40e81eb66b Mon Sep 17 00:00:00 2001 From: sigoden Date: Fri, 26 Apr 2024 02:35:03 +0000 Subject: [PATCH] refactor: rename macro to openai_compatible_client --- src/client/common.rs | 2 +- src/client/groq.rs | 2 +- src/client/mistral.rs | 2 +- src/client/moonshot.rs | 2 +- src/client/perplexity.rs | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/client/common.rs b/src/client/common.rs index 4509805..c543373 100644 --- a/src/client/common.rs +++ b/src/client/common.rs @@ -126,7 +126,7 @@ macro_rules! register_client { } #[macro_export] -macro_rules! openai_compatible_module { +macro_rules! openai_compatible_client { ( $config:ident, $client:ident, diff --git a/src/client/groq.rs b/src/client/groq.rs index 3ff2a41..ba76b68 100644 --- a/src/client/groq.rs +++ b/src/client/groq.rs @@ -1,4 +1,4 @@ -openai_compatible_module!( +openai_compatible_client!( GroqConfig, GroqClient, "https://api.groq.com/openai/v1", diff --git a/src/client/mistral.rs b/src/client/mistral.rs index c20abe7..481ca1f 100644 --- a/src/client/mistral.rs +++ b/src/client/mistral.rs @@ -1,4 +1,4 @@ -openai_compatible_module!( +openai_compatible_client!( MistralConfig, MistralClient, "https://api.mistral.ai/v1", diff --git a/src/client/moonshot.rs b/src/client/moonshot.rs index 6befadb..6a8303e 100644 --- a/src/client/moonshot.rs +++ b/src/client/moonshot.rs @@ -1,4 +1,4 @@ -openai_compatible_module!( +openai_compatible_client!( MoonshotConfig, MoonshotClient, "https://api.moonshot.cn/v1", diff --git a/src/client/perplexity.rs b/src/client/perplexity.rs index 99b2565..c8bb6f0 100644 --- a/src/client/perplexity.rs +++ b/src/client/perplexity.rs @@ -1,4 +1,4 @@ -openai_compatible_module!( +openai_compatible_client!( PerplexityConfig, PerplexityClient, "https://api.perplexity.ai",