OpenAIServiceLLMClient
OpenAIServiceLLMClient targets the official OpenAI API.
Default behavior
Default model:
gpt-4o-miniRemote execution through OpenAI service endpoints
Constructor-first usage
from design_research_agents import OpenAIServiceLLMClient
from design_research_agents.llm import LLMMessage, LLMRequest
client = OpenAIServiceLLMClient()
response = client.generate(
LLMRequest(
messages=(LLMMessage(role="user", content="Give me three study themes."),),
model=client.default_model(),
)
)
Dependencies and environment
OPENAI_API_KEY(or passapi_keydirectly)Network access to OpenAI API
Examples
examples/clients/openai_service_client.py
Attribution
Docs: OpenAI API reference
Homepage: OpenAI developer portal