From b84fcb1af159704c96127a8880ace5e3d2f6e324 Mon Sep 17 00:00:00 2001 From: tommy Date: Tue, 15 Apr 2025 14:55:21 +0800 Subject: [PATCH] add aliyun example --- rig-core/Cargo.toml | 5 +++++ rig-core/examples/aliyun_embeddings.rs | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/rig-core/Cargo.toml b/rig-core/Cargo.toml index cedf63c..c9d4579 100644 --- a/rig-core/Cargo.toml +++ b/rig-core/Cargo.toml @@ -127,3 +127,8 @@ required-features = ["audio"] [[example]] name = "hyperbolic_audio_generation" required-features = ["audio"] + + +[[example]] +name = "aliyun_embeddings" +required-features = ["derive"] diff --git a/rig-core/examples/aliyun_embeddings.rs b/rig-core/examples/aliyun_embeddings.rs index f7306e4..eb771f0 100644 --- a/rig-core/examples/aliyun_embeddings.rs +++ b/rig-core/examples/aliyun_embeddings.rs @@ -9,8 +9,7 @@ struct Greetings { #[tokio::main] async fn main() -> Result<(), anyhow::Error> { - // Initialize the Google Gemini client - // Create OpenAI client + // Initialize the Aliyun client let client = aliyun::Client::from_env(); let embeddings = client