[F] Fix getting response
This commit is contained in:
+2
-2
@@ -37,7 +37,7 @@ def select_best_torrents(torrents_text: str) -> str:
|
|||||||
store=True,
|
store=True,
|
||||||
include=["reasoning.encrypted_content", "web_search_call.action.sources"]
|
include=["reasoning.encrypted_content", "web_search_call.action.sources"]
|
||||||
)
|
)
|
||||||
assert (output := response.output[-1]).type == "output_text"
|
assert (output := response.output[-1]).type == "message"
|
||||||
assert len(contents := output.content) == 1
|
assert len(contents := output.content) == 1
|
||||||
return contents[0].text
|
return contents[0].text
|
||||||
|
|
||||||
@@ -73,7 +73,7 @@ def generate_rename_mapping(directory_text: str) -> dict[str, str]:
|
|||||||
store=True,
|
store=True,
|
||||||
include=["reasoning.encrypted_content", "web_search_call.action.sources"]
|
include=["reasoning.encrypted_content", "web_search_call.action.sources"]
|
||||||
)
|
)
|
||||||
assert (output := response.output[-1]).type == "output_text"
|
assert (output := response.output[-1]).type == "message"
|
||||||
assert len(contents := output.content) == 1
|
assert len(contents := output.content) == 1
|
||||||
raw_response = contents[0].text
|
raw_response = contents[0].text
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user