refactor: remove model init param from OpenAIResponsesLLMService

Model is only configurable via settings, matching the canonical API.
This commit is contained in:
Paul Kompfner
2026-03-19 14:37:46 -04:00
committed by Mark Backman
parent eb3affd45b
commit f33f2d7640

View File

@@ -79,7 +79,6 @@ class OpenAIResponsesLLMService(LLMService):
def __init__(
self,
*,
model: Optional[str] = None,
api_key=None,
base_url=None,
organization=None,
@@ -92,15 +91,13 @@ class OpenAIResponsesLLMService(LLMService):
"""Initialize the OpenAI Responses API LLM service.
Args:
model: The OpenAI model name to use. Defaults to "gpt-4.1".
api_key: OpenAI API key. If None, uses environment variable.
base_url: Custom base URL for OpenAI API. If None, uses default.
organization: OpenAI organization ID.
project: OpenAI project ID.
default_headers: Additional HTTP headers to include in requests.
service_tier: Service tier to use (e.g., "auto", "flex", "priority").
settings: Runtime-updatable settings. When provided alongside
other parameters, ``settings`` values take precedence.
settings: Runtime-updatable settings.
**kwargs: Additional arguments passed to the parent LLMService.
"""
default_settings = self.Settings(
@@ -119,9 +116,6 @@ class OpenAIResponsesLLMService(LLMService):
extra={},
)
if model is not None:
default_settings.model = model
if settings is not None:
default_settings.apply_update(settings)