Skip to content

Commit f2099c4

Browse files
committed
Make supports_schema and supports_tools constructor arguments
1 parent f7afd05 commit f2099c4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

llm/responses.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,18 +384,20 @@ class _SharedResponses:
384384
model_id: str
385385
api_base: str
386386
can_stream: bool = True
387-
supports_schema: bool = False
388-
supports_tools: bool = True
389387

390388
def __init__(
391389
self,
392390
model_id: str,
393391
api_base: Optional[str] = None,
394392
key: Optional[str] = None,
393+
supports_schema: bool = False,
394+
supports_tools: bool = True,
395395
):
396396
self.model_id = model_id
397397
self.api_base = api_base or "https://api.openai.com/v1"
398398
self.key = key
399+
self.supports_schema = supports_schema
400+
self.supports_tools = supports_tools
399401

400402
def __str__(self) -> str:
401403
return f"OpenResponses: {self.model_id}"

0 commit comments

Comments
 (0)