fix: configure codex with a longer timeout

refactor: param names
This commit is contained in:
Fahad
2025-10-21 10:35:44 +04:00
parent 04132f1459
commit d2773f488a
47 changed files with 232 additions and 194 deletions

View File

@@ -78,7 +78,7 @@ class TestPromptIntegration:
@pytest.mark.integration
@pytest.mark.asyncio
async def test_chat_with_files(self):
"""Test chat tool with files parameter using real API."""
"""Test chat tool with absolute_file_paths parameter using real API."""
skip_if_no_custom_api()
tool = ChatTool()
@@ -99,7 +99,11 @@ if __name__ == "__main__":
try:
result = await tool.execute(
{"prompt": "What does this Python code do?", "files": [temp_file], "model": "local-llama"}
{
"prompt": "What does this Python code do?",
"absolute_file_paths": [temp_file],
"model": "local-llama",
}
)
assert len(result) == 1
@@ -291,7 +295,7 @@ class UserController:
tool = ChatTool()
# Test with no files parameter
# Test with no absolute_file_paths parameter
result = await tool.execute({"prompt": "Hello", "model": "local-llama"})
assert len(result) == 1