diff options
| author | sigoden <sigoden@gmail.com> | 2024-04-26 02:35:03 +0000 |
|---|---|---|
| committer | sigoden <sigoden@gmail.com> | 2024-04-26 02:35:03 +0000 |
| commit | eac01fb129ce5a06e00cc2cc24e31b40e81eb66b (patch) | |
| tree | 4282dc68415110bc3ecf55d36ef647fc91d10d59 /src | |
| parent | 740ca2413a1992d151c0a9ea62c12e69321c0973 (diff) | |
| download | aichat-eac01fb129ce5a06e00cc2cc24e31b40e81eb66b.tar.gz | |
refactor: rename macro to openai_compatible_client
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/common.rs | 2 | ||||
| -rw-r--r-- | src/client/groq.rs | 2 | ||||
| -rw-r--r-- | src/client/mistral.rs | 2 | ||||
| -rw-r--r-- | src/client/moonshot.rs | 2 | ||||
| -rw-r--r-- | 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", |
