Skip to main content

openai_protocol/
lib.rs

1// Protocol definitions and validation for various LLM APIs
2// This module provides a structured approach to handling different API protocols
3
4/// Default model identifier used when no model is specified.
5///
6/// This constant should be used instead of hardcoded "unknown" strings
7/// throughout the codebase for consistency.
8pub const UNKNOWN_MODEL_ID: &str = "unknown";
9
10pub mod builders;
11pub mod chat;
12pub mod classify;
13pub mod common;
14pub mod completion;
15pub mod embedding;
16pub mod event_types;
17pub mod generate;
18pub mod interactions;
19pub mod messages;
20pub mod model_card;
21pub mod model_type;
22pub mod parser;
23pub mod rerank;
24pub mod responses;
25pub mod sampling_params;
26pub mod tokenize;
27pub mod validated;
28pub mod worker;