mirror of
https://github.com/mii443/rust-genai.git
synced 2025-08-22 16:25:27 +00:00
. fix links to c03 examples (#37)
The example was renamed from c03-kind.rs to c03-mapper.rs
This commit is contained in:
@ -77,7 +77,7 @@ const MODEL_AND_KEY_ENV_NAME_LIST: &[(&str, &str)] = &[
|
||||
// - model in Groq models -> Groq
|
||||
// - For anything else -> Ollama
|
||||
//
|
||||
// This can be customized; see `examples/c03-kind.rs`
|
||||
// This can be customized; see `examples/c03-mapper.rs`
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
@ -126,7 +126,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
- [examples/c00-readme.rs](examples/c00-readme.rs) - Quick overview code with multiple providers and streaming.
|
||||
- [examples/c01-conv.rs](examples/c01-conv.rs) - Shows how to build a conversation flow.
|
||||
- [examples/c02-auth.rs](examples/c02-auth.rs) - Demonstrates how to provide a custom `AuthResolver` to provide auth data (i.e., for api_key) per adapter kind.
|
||||
- [examples/c03-kind.rs](examples/c03-kind.rs) - Demonstrates how to provide a custom `AdapterKindResolver` to customize the "model name" to "adapter kind" mapping.
|
||||
- [examples/c03-mapper.rs](examples/c03-mapper.rs) - Demonstrates how to provide a custom `AdapterKindResolver` to customize the "model name" to "adapter kind" mapping.
|
||||
- [examples/c04-chat-options.rs](examples/c04-chat-options.rs) - Demonstrates how to set chat generation options such as `temperature` and `max_tokens` at the client level (for all requests) and per request level.
|
||||
- [examples/c05-model-names.rs](examples/c05-model-names.rs) - Show how to get model names per AdapterKind.
|
||||
- [examples/c06-target-resolver.rs](examples/c06-target-resolver.rs) - For custom Auth, EndPoint, and Model.
|
||||
|
@ -35,7 +35,7 @@ const MODEL_AND_KEY_ENV_NAME_LIST: &[(&str, &str)] = &[
|
||||
// - model in Groq models -> Groq
|
||||
// - For anything else -> Ollama
|
||||
//
|
||||
// This can be customized; see `examples/c03-kind.rs`
|
||||
// This can be customized; see `examples/c03-mapper.rs`
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
|
Reference in New Issue
Block a user