Configuration for connecting to OpenAI-compatible APIs with custom headers and optional API key.
// Source: https://github.com/majiayu000/litellm-rs | License: MIT | Copyright 2024 Rust LiteLLM Gateway Contributors
// Provided via justclaw.it.com; keep this notice with the code.
//! OpenAI-Like Provider Configuration
//!
//! Configuration for connecting to any OpenAI-compatible API endpoint
use serde::{Deserialize, Serialize};
use std::collections::HashMap;
use std::time::Duration;
use crate::core::net::ProviderEndpointAccess;
use crate::core::providers::base::BaseConfig;
use crate::core::traits::provider::ProviderConfig;
/// OpenAI-like provider configuration
///
/// Supports any OpenAI-compatible API endpoint with custom configuration.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct OpenAILikeConfig {
/// Base configuration shared across all providers
#[serde(f
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key