fix: configure codex with a longer timeout
refactor: param names
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user