Skip to content

Conversation

@shoryasethia
Copy link

Description

This is support for OpenRouter as a response generation provider. This allows users to access a wide range of LLMs through the OpenRouter API, using the existing OpenAI client compatibility.

Changes Made

  • Added openrouter to RESPONSE_MODEL options in voice_assistant/config.py
  • Added OPENROUTER_LLM constant (default: google/gemini-2.0-flash-exp:free)
  • Updated voice_assistant/api_key_manager.py to handle OPENROUTER_API_KEY
  • Implemented _generate_openrouter_response in voice_assistant/response_generation.py
  • Updated README.md to include OpenRouter documentation

Usage

Set RESPONSE_MODEL = 'openrouter' in config.py and add OPENROUTER_API_KEY to your .env file.

@shoryasethia
Copy link
Author

@PromtEngineer Hello Muhammad, requesting your review for this PR.

@PromtEngineer
Copy link
Owner

@shoryasethia having a look into it. thanks,

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.

2 participants