mirror of https://github.com/0xplaygrounds/rig
add aliyun example
This commit is contained in:
parent
1c4352d1f2
commit
b84fcb1af1
|
@ -127,3 +127,8 @@ required-features = ["audio"]
|
|||
[[example]]
|
||||
name = "hyperbolic_audio_generation"
|
||||
required-features = ["audio"]
|
||||
|
||||
|
||||
[[example]]
|
||||
name = "aliyun_embeddings"
|
||||
required-features = ["derive"]
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue