Skip to content

Implemented OpenRouter, added --requirements flag#55

Open
devicemanager wants to merge 3 commits intodhanji:mainfrom
devicemanager:main
Open

Implemented OpenRouter, added --requirements flag#55
devicemanager wants to merge 3 commits intodhanji:mainfrom
devicemanager:main

Conversation

@devicemanager
Copy link

Changelog.md

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog,
and this project adheres to Semantic Versioning.

[Unreleased] - 2025-12-16

Added

  • OpenRouter Support: Implemented full support for OpenRouter as an LLM provider.
    • Added OpenRouterProvider implementation in crates/g3-providers.
    • Added configuration structures OpenRouterConfig and ProviderPreferencesConfig in crates/g3-config.
    • Added integration tests in crates/tests/openrouter_integration_tests.rs.
    • Updated g3-cli to accept openrouter as a valid provider type in command line arguments.
    • Updated g3-core to register and handle OpenRouter providers.
    • Added example configuration in config.example.toml.
  • Configuration: Added config.toml to .gitignore.

Changed

  • g3-core: Updated provider_max_tokens and resolve_max_tokens to correctly handle OpenRouter configuration and context window sizes (defaulting to 128k if not specified, but respecting config).
  • g3-cli: Updated provider validation logic to support openrouter prefix (e.g., openrouter.grok).

Fixed

  • g3-providers: Fixed unused variable warnings in anthropic.rs by renaming cache_config to _cache_config.
  • g3-planner: Fixed unused function warning in llm.rs by renaming print_status_line to _print_status_line.
  • g3-providers: Fixed typo in openrouter.rs (pub mode -> pub mod).

devicemanager and others added 3 commits December 16, 2025 16:05
- Implement OpenRouter provider with configuration options
- Update .gitignore to exclude config.toml
- Create CHANGELOG.md to document notable changes
- Add OpenRouter configuration examples in config.example.toml
- Enhance g3-core and g3-config to register and manage OpenRouter providers
- Update g3-cli to support OpenRouter as a valid provider
- Add integration tests for OpenRouter functionality, including basic completion and streaming
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant