pvanand commited on
Commit
4c019ab
·
verified ·
1 Parent(s): e54fecc

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -140,7 +140,7 @@ prompt = ChatPromptTemplate.from_messages([
140
  ("placeholder", "{messages}"),
141
  ])
142
 
143
- async def get_collection_files(collection_id: str, user_id: str) -> str:
144
  """Get list of files in the specified collection"""
145
  try:
146
  # Get the full collection name
@@ -159,7 +159,7 @@ async def get_collection_files(collection_id: str, user_id: str) -> str:
159
  logging.error(f"Error getting collection files: {str(e)}")
160
  return f"Error getting files: {str(e)}"
161
 
162
- async def format_for_model(state):
163
  # Get collection_id and user_id from the state's configurable
164
  config = state.get("configurable", {})
165
  collection_id = config.get("collection_id")
 
140
  ("placeholder", "{messages}"),
141
  ])
142
 
143
+ def get_collection_files(collection_id: str, user_id: str) -> str:
144
  """Get list of files in the specified collection"""
145
  try:
146
  # Get the full collection name
 
159
  logging.error(f"Error getting collection files: {str(e)}")
160
  return f"Error getting files: {str(e)}"
161
 
162
+ def format_for_model(state):
163
  # Get collection_id and user_id from the state's configurable
164
  config = state.get("configurable", {})
165
  collection_id = config.get("collection_id")