π OpenHands: AI-Driven Development
Fix mock server (#1392)
Jim Suc0adb55bfa39
diff --git a/opendevin/mock/listen.py b/opendevin/mock/listen.pyindex 8fb72e68a0..3e0bb213cd 100644--- a/opendevin/mock/listen.py+++ b/opendevin/mock/listen.py@@ -33,7 +33,7 @@ def read_root():return {'message': 'This is a mock server'}[email protected]('/litellm-models')[email protected]('/api/litellm-models')def read_llm_models():return ['gpt-4',@@ -43,7 +43,7 @@ def read_llm_models():][email protected]('/agents')[email protected]('/api/agents')def read_llm_agents():return ['MonologueAgent',@@ -52,5 +52,25 @@ def read_llm_agents():][email protected]('/api/messages')+async def get_messages():+ return {'messages': []}++[email protected]('/api/messages/total')+async def get_message_total():+ return {'msg_total': 0}++[email protected]('/api/refresh-files')+def refresh_files():+ return {+ 'name': 'workspace',+ 'children': [+ {'name': 'hello_world.py', 'children': []},+ ],+ }++if __name__ == '__main__':uvicorn.run(app, host='127.0.0.1', port=3000)