refactor: remove model init param from OpenAIResponsesLLMService
Model is only configurable via settings, matching the canonical API.
This commit is contained in:
committed by
Mark Backman
parent
eb3affd45b
commit
f33f2d7640
@@ -79,7 +79,6 @@ class OpenAIResponsesLLMService(LLMService):
|
|||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
model: Optional[str] = None,
|
|
||||||
api_key=None,
|
api_key=None,
|
||||||
base_url=None,
|
base_url=None,
|
||||||
organization=None,
|
organization=None,
|
||||||
@@ -92,15 +91,13 @@ class OpenAIResponsesLLMService(LLMService):
|
|||||||
"""Initialize the OpenAI Responses API LLM service.
|
"""Initialize the OpenAI Responses API LLM service.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
model: The OpenAI model name to use. Defaults to "gpt-4.1".
|
|
||||||
api_key: OpenAI API key. If None, uses environment variable.
|
api_key: OpenAI API key. If None, uses environment variable.
|
||||||
base_url: Custom base URL for OpenAI API. If None, uses default.
|
base_url: Custom base URL for OpenAI API. If None, uses default.
|
||||||
organization: OpenAI organization ID.
|
organization: OpenAI organization ID.
|
||||||
project: OpenAI project ID.
|
project: OpenAI project ID.
|
||||||
default_headers: Additional HTTP headers to include in requests.
|
default_headers: Additional HTTP headers to include in requests.
|
||||||
service_tier: Service tier to use (e.g., "auto", "flex", "priority").
|
service_tier: Service tier to use (e.g., "auto", "flex", "priority").
|
||||||
settings: Runtime-updatable settings. When provided alongside
|
settings: Runtime-updatable settings.
|
||||||
other parameters, ``settings`` values take precedence.
|
|
||||||
**kwargs: Additional arguments passed to the parent LLMService.
|
**kwargs: Additional arguments passed to the parent LLMService.
|
||||||
"""
|
"""
|
||||||
default_settings = self.Settings(
|
default_settings = self.Settings(
|
||||||
@@ -119,9 +116,6 @@ class OpenAIResponsesLLMService(LLMService):
|
|||||||
extra={},
|
extra={},
|
||||||
)
|
)
|
||||||
|
|
||||||
if model is not None:
|
|
||||||
default_settings.model = model
|
|
||||||
|
|
||||||
if settings is not None:
|
if settings is not None:
|
||||||
default_settings.apply_update(settings)
|
default_settings.apply_update(settings)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user