Overview of Remote Inference Adapters
mainllama_openai_compat and generic passthrough via passthrough.repository·main·Indexed 27 days ago
https://github.com/ogx-ai/ogxAn open-source, agentic, and OpenAI-compatible API server designed as a model-agnostic replacement for the OpenAI API. It supports pluggable providers for various models (such as Llama, GPT, and Gemini) and infrastructure (including Ollama, vLLM, and cloud) to allow developers to build AI applications without changing application code.
llama_openai_compat and generic passthrough via passthrough.OGX uses remote provider adapters to connect OGX APIs to external services. These adapters allow you to use external inference engines, vector storage, file storage, and tool runtimes within the OGX ecosystem.
Remote providers are categorized into four main types:
ogx package is the main server implementation for the OGX ecosystem. It provides the runtime environment, built-in providers, a command-line interface (CLI), and all server-side logic. It is responsible for server startup, provider resolution, request routing, and storage.OGX provides an agentic API server with the following capabilities:
/v1/chat/completions, /v1/completions, and /v1/embeddings endpoints./v1/vector_stores and /v1/files./v1/batches./v1alpha/skills./v1/messages) and Google GenAI (/v1alpha/interactions) APIs.The OGX client SDKs are generated using Stainless based on two source-of-truth configuration files. These files ensure that the SDKs remain in lock-step with the API specification.
openapi.yml: The OpenAPI specification for the OGX API.config.yml: The Stainless configuration that instructs the generator on how to build the client SDKs.Both files are automatically generated by the scripts/run_openapi_generator.sh script to maintain synchronization between the FastAPI-based API definition and the Stainless configuration.
OGX is an open-source, vendor-neutral AI application server and Python library. It provides a stable API surface that implements major frontier lab APIs (OpenAI, Anthropic, Google) while allowing you to swap backend providers (inference engines, vector databases, safety backends) via configuration without changing your application code.
Key capabilities include:
/v1/messages), and Google GenAI Interactions API (/v1alpha/interactions).The suite includes four primary benchmark types:
| Benchmark | Type | Primary Metric | Description |
|---|---|---|---|
| BEIR | Retrieval-only | nDCG@10 | Standard IR benchmarks (nfcorpus, scifact, arguana, fiqa, trec-covid) |
| MultiHOP RAG | End-to-end RAG | EM / F1 | Multi-hop reasoning over news articles |
| QReCC | Conversational RAG | EM / F1 | Multi-turn conversational QA with scoped corpus per conversation |
| Doc2Dial | Document-grounded dialogue | EM / F1 | Goal-oriented dialogues grounded in documents |
OGX is an open-source platform that standardizes the building blocks for generative AI applications by aligning with the Open Responses specification. It provides a unified API layer that abstracts the complexity of different AI tools, vector databases, and model inference providers.
Core capabilities include:
The ogx package is organized into the following functional modules:
core/: Server core including routing, resolution, storage, and the server itself.providers/: All provider implementations (both inline and remote).distributions/: Pre-built distribution configurations.cli/: CLI commands such as ogx stack run, build, and configure.models/: Model metadata and registries.testing/: Test infrastructure, including an API recorder for record/replay.telemetry/: OpenTelemetry integration.env.py: Environment variable utilities.log.py: Logging configuration.OGX supports various vector store providers with different levels of file operations integration.
These providers support complete integration including file upload, automatic processing, and search.
Inline Providers (Single Node):
Remote Providers (Hosted):