Rajavignesh commited on
Commit
aaeedba
·
1 Parent(s): e442d33

updating the main file

Browse files
Files changed (1) hide show
  1. main.py +3 -6
main.py CHANGED
@@ -8,7 +8,6 @@ import uuid
8
  import random
9
  from datetime import datetime
10
  import os
11
- from vector_search import process_chat
12
  from typing import Dict, Any
13
  from dotenv import load_dotenv
14
 
@@ -107,10 +106,8 @@ async def chat_endpoint(request: Dict[str, Any]):
107
 
108
  if not user_prompt or not parent_code:
109
  return {"error": "Both 'user_question' and 'parent_code' are required."}
110
-
111
- llm_response = process_chat(user_prompt, parent_code, sys_prompt)
112
-
113
- return {"response": llm_response}
114
 
115
  except Exception as e:
116
  print(f"Error in chat endpoint: {str(e)}")
@@ -293,4 +290,4 @@ async def simulate_processing(websocket: WebSocket, request: ProcessingRequest,
293
 
294
  if __name__ == "__main__":
295
  import uvicorn
296
- uvicorn.run(app, host="0.0.0.0", port=8000)
 
8
  import random
9
  from datetime import datetime
10
  import os
 
11
  from typing import Dict, Any
12
  from dotenv import load_dotenv
13
 
 
106
 
107
  if not user_prompt or not parent_code:
108
  return {"error": "Both 'user_question' and 'parent_code' are required."}
109
+
110
+ return {"response": "We have limited the capabilities of the LLM in this simulator since we don't have access to the full vector database or client database."}
 
 
111
 
112
  except Exception as e:
113
  print(f"Error in chat endpoint: {str(e)}")
 
290
 
291
  if __name__ == "__main__":
292
  import uvicorn
293
+ uvicorn.run(app, host="0.0.0.0", port=7860)