. #23 - add documentation

This commit is contained in:
Jeremy Chone
2024-09-13 16:21:54 -07:00
parent 2b776ec509
commit 158efa18ec
30 changed files with 213 additions and 45 deletions

View File

@@ -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 = &[