Module open_router

Module open_router 

Source
Available on crate feature open-router only.
Expand description

This module provides integration with OpenRouter’s API, enabling the use of language models and embeddings within the Swiftide project. It includes the OpenRouter struct for managing API clients and default options for embedding and prompt models. The module is conditionally compiled based on the “openrouter” feature flag.

Re-exports§

pub use openai::Options;
pub use openai::OptionsBuilder;
pub use openai::OptionsBuilderError;

Modules§

config

Type Aliases§

OpenRouter
The OpenRouter struct encapsulates an OpenRouter client and default options for embedding and prompt models. It uses the Builder pattern for flexible and customizable instantiation.
OpenRouterBuilder
OpenRouterBuilderError