local_provider_url_from_env (drivers/mod.rs)

openfang · crates/openfang-runtime/src/drivers/mod.rs · rust · Apache-2.0
ai

Utility to resolve local LLM provider URLs from environment variables.

// Source: https://github.com/RightNow-AI/openfang | License: Apache-2.0 | Copyright 2024 OpenFang Contributors
// Provided via justclaw.it.com; keep this notice with the code.
//! LLM driver implementations.
//!
//! Contains drivers for Anthropic Claude, Google Gemini, OpenAI-compatible APIs, and more.
//! Supports: Anthropic, Gemini, OpenAI, Groq, OpenRouter, DeepSeek, Together,
//! Mistral, Fireworks, Ollama, vLLM, Chutes.ai, and any OpenAI-compatible endpoint.

pub mod anthropic;
pub mod bedrock;
pub mod claude_code;
pub mod copilot;
pub mod fallback;
pub mod gemini;
pub mod openai;
pub mod qwen_code;
pub mod vertex;

use crate::llm_driver::{DriverConfig, LlmDriver, LlmError};
use openfang_types::model_catalog::{
    AI21_BASE_URL, ANTHROPIC_BASE_URL, AZURE_OPENAI_BASE_URL, CEREBRAS_BA

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key