Skip to content

Commit ba6c027

Browse files
committed
almost working openrouter
1 parent 0b1c873 commit ba6c027

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

dev.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,15 +95,14 @@ def mypy_plugins():
9595
"uv run mypy --install-types --non-interactive --exclude 'plugins/.*/tests/.*' plugins"
9696
)
9797

98-
9998
@cli.command()
10099
def check():
101100
"""Run full check: ruff, mypy, and unit tests."""
102101
click.echo("Running full development check...")
103102

104103
# Run ruff
105104
click.echo("\n=== 1. Ruff Linting ===")
106-
run("uv run ruff check .")
105+
run("uv run ruff check . --fix")
107106

108107
# Run mypy on main package
109108
click.echo("\n=== 2. MyPy Type Checking ===")

plugins/openai/vision_agents/plugins/openai/openai_llm.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ async def create_conversation(self):
112112
self.openai_conversation = await self.client.conversations.create()
113113

114114
def add_conversation_history(self, kwargs):
115-
kwargs["conversation"] = self.openai_conversation.id
115+
if self.openai_conversation:
116+
kwargs["conversation"] = self.openai_conversation.id
116117

117118
async def create_response(
118119
self, *args: Any, **kwargs: Any

plugins/openrouter/example/openrouter_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
from vision_agents.core import User
88
from vision_agents.core.agents import Agent
9-
from vision_agents.plugins import openrouter, getstream, elevenlabs, cartesia, deepgram, smart_turn
9+
from vision_agents.plugins import openrouter, getstream, elevenlabs, deepgram, smart_turn
1010

1111
load_dotenv()
1212

plugins/openrouter/tests/test_openrouter_llm.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from vision_agents.core.agents.conversation import Message, InMemoryConversation
99
from vision_agents.core.llm.events import (
1010
LLMResponseChunkEvent,
11-
LLMResponseCompletedEvent,
1211
)
1312
from vision_agents.plugins.openrouter import LLM
1413

0 commit comments

Comments
 (0)