mirror of
https://github.com/mii443/rust-genai.git
synced 2025-12-16 17:08:42 +00:00
. #23 - add documentation
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
//! This example demonstrates how to use a custom authentication function to override the default AuthData resolution
|
||||
//! for any specific adapter (which is based on environment variables).
|
||||
|
||||
use genai::chat::printer::print_chat_stream;
|
||||
use genai::chat::{ChatMessage, ChatRequest};
|
||||
use genai::resolver::{AuthData, AuthResolver};
|
||||
@@ -5,9 +8,6 @@ use genai::{Client, ModelIden};
|
||||
|
||||
const MODEL: &str = "gpt-4o-mini";
|
||||
|
||||
/// This example demonstrates how to use a custom authentication function to override the default AuthData resolution
|
||||
/// for any specific adapter (which is based on environment variables).
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
let questions = &[
|
||||
|
||||
Reference in New Issue
Block a user