add aliyun example

This commit is contained in:
tommy 2025-04-15 14:55:21 +08:00
parent 1c4352d1f2
commit b84fcb1af1
2 changed files with 6 additions and 2 deletions

View File

@ -127,3 +127,8 @@ required-features = ["audio"]
[[example]] [[example]]
name = "hyperbolic_audio_generation" name = "hyperbolic_audio_generation"
required-features = ["audio"] required-features = ["audio"]
[[example]]
name = "aliyun_embeddings"
required-features = ["derive"]

View File

@ -9,8 +9,7 @@ struct Greetings {
#[tokio::main] #[tokio::main]
async fn main() -> Result<(), anyhow::Error> { async fn main() -> Result<(), anyhow::Error> {
// Initialize the Google Gemini client // Initialize the Aliyun client
// Create OpenAI client
let client = aliyun::Client::from_env(); let client = aliyun::Client::from_env();
let embeddings = client let embeddings = client