Projects with this topic
-
Simple C++ interface for the Mistral Language Models. Uses the OpenAPI interface provided by Mistral.
Updated -
C++ LLM Client Using OpenRouter API
This project demonstrates how to integrate Large Language Models (LLMs) into native C++ applications using the OpenRouter API.
Key FeaturesOpenRouter API Integration Connect to a wide range of AI models via OpenRouter's unified API endpoint.
C++ Implementation Written in modern C++ for portability and efficiency.
Command-Line Interface Simple text-based interface for interacting with AI models.
Easy Configuration Set your API key and preferred model in a config.json file: api_key, url, model. Example:
{ "api_key": "", "url": "https://openrouter.ai/api/v1/chat/completions", "model": "deepseek/deepseek-r1-0528-qwen3-8b:free" }
DependenciesC++11-compliant and forward-compatible
libcurl (for HTTP requests)
nlohmann/json (for JSON parsing)
Educational ValueLearn how to integrate third-party APIs in C++
Use C++ to build a minimal conversational AI interface
Serve as a starting point for more advanced native AI applications
Updated -