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]]
|
[[example]]
|
||||||
name = "hyperbolic_audio_generation"
|
name = "hyperbolic_audio_generation"
|
||||||
required-features = ["audio"]
|
required-features = ["audio"]
|
||||||
|
|
||||||
|
|
||||||
|
[[example]]
|
||||||
|
name = "aliyun_embeddings"
|
||||||
|
required-features = ["derive"]
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue