Agno
Agno (formerly Phidata) provides an OpenAILike model class designed for custom OpenAI-compatible endpoints.
Install
pip install agno openaiConfigure
from agno.agent import Agent
from agno.models.openai import OpenAILike
agent = Agent(
model=OpenAILike(
id="{{selectedModel.id}}",
base_url="https://api.doubleword.ai/v1",
api_key="{{apiKey}}",
)
)
agent.print_response("Say hello.")OpenAILike is a subclass of OpenAIChat that passes base_url directly to the underlying OpenAI client.