Update app.py
Browse files
app.py
CHANGED
@@ -86,10 +86,10 @@ class OpenAIModelWrapper:
|
|
86 |
self.client = client
|
87 |
|
88 |
def __call__(self, prompt: str, **kwargs) -> str:
|
89 |
-
#
|
90 |
resp = self.client.responses.create(
|
91 |
model=self.model_id,
|
92 |
-
|
93 |
)
|
94 |
return resp.output_text
|
95 |
|
|
|
86 |
self.client = client
|
87 |
|
88 |
def __call__(self, prompt: str, **kwargs) -> str:
|
89 |
+
# kwargs catches stop_sequences, temperature, etc.
|
90 |
resp = self.client.responses.create(
|
91 |
model=self.model_id,
|
92 |
+
input_text=prompt # <-- use input_text here
|
93 |
)
|
94 |
return resp.output_text
|
95 |
|