mirror of
https://github.com/mii443/rust-genai.git
synced 2025-08-30 20:19:34 +00:00
. minor proof-comment, and add gemini flash-exp
This commit is contained in:
@ -17,6 +17,7 @@ pub struct GeminiAdapter;
|
|||||||
|
|
||||||
const MODELS: &[&str] = &[
|
const MODELS: &[&str] = &[
|
||||||
"gemini-1.5-pro",
|
"gemini-1.5-pro",
|
||||||
|
"gemini-2.0-flash-exp",
|
||||||
"gemini-1.5-flash",
|
"gemini-1.5-flash",
|
||||||
"gemini-1.5-flash-8b",
|
"gemini-1.5-flash-8b",
|
||||||
"gemini-1.0-pro",
|
"gemini-1.0-pro",
|
||||||
|
@ -90,7 +90,7 @@ pub enum Error {
|
|||||||
#[from]
|
#[from]
|
||||||
JsonValueExt(JsonValueExtError),
|
JsonValueExt(JsonValueExtError),
|
||||||
ReqwestEventSource(reqwest_eventsource::Error),
|
ReqwestEventSource(reqwest_eventsource::Error),
|
||||||
// Note: will probably need to remvoe this one to give more context
|
// Note: will probably need to remove this one to provide more context
|
||||||
#[from]
|
#[from]
|
||||||
SerdeJson(serde_json::Error),
|
SerdeJson(serde_json::Error),
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
//! genai library - Any AI provider AI client library.
|
//! `genai` library - A client library for any AI provider.
|
||||||
//! See [examples/c00-readme.rs](./examples/c00-readme.rs)
|
//! See [examples/c00-readme.rs](./examples/c00-readme.rs)
|
||||||
|
|
||||||
// region: --- Modules
|
// region: --- Modules
|
||||||
|
Reference in New Issue
Block a user