Skip to main content

OpenRouter plugin for vision agents

Project description

OpenRouter Plugin

OpenRouter plugin for vision agents. This plugin provides LLM capabilities using OpenRouter's API, which is compatible with the OpenAI API format.

Note/ Issues

Instruction following doesn't always work with openrouter atm.

Installation

uv pip install vision-agents-plugins-openrouter

Usage

from vision_agents.plugins import openrouter, getstream, elevenlabs, cartesia, deepgram, smart_turn

agent = Agent(
    edge=getstream.Edge(),
    agent_user=User(name="OpenRouter AI"),
    instructions="Be helpful and friendly to the user",
    llm=openrouter.LLM(
        model="anthropic/claude-haiku-4.5",  # Can also use other models like anthropic/claude-3-opus
    ),
    tts=elevenlabs.TTS(),
    stt=deepgram.STT(),
    turn_detection=smart_turn.TurnDetection(
        buffer_in_seconds=2.0, confidence_threshold=0.5
    )
)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vision_agents_plugins_openrouter-0.2.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file vision_agents_plugins_openrouter-0.2.0.tar.gz.

File metadata

File hashes

Hashes for vision_agents_plugins_openrouter-0.2.0.tar.gz
Algorithm Hash digest
SHA256 d0c9aeb711e27e328552577a85233dd445c2121e592f22775b9b2f254cc2fb86
MD5 035dff5f985fd14b9e999ad7f3308438
BLAKE2b-256 dd5b2e2180d859fe38a36dcfa030f8635a4736fa89f4c220040d45bf604e633f

See more details on using hashes here.

File details

Details for the file vision_agents_plugins_openrouter-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for vision_agents_plugins_openrouter-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 892b570cdd5ad2c61c26185b09862f4b9018a66214a3ea8f4554941e6f76bfcc
MD5 71c7239ae5e6676fe804f85af62239b4
BLAKE2b-256 2d7cb2b0e274fb34aa818b436dbab21e7508aa3739a6f2ba59972a9c7f51f487

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page