Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix
  • Loading branch information
ndb-rkang committed Jan 22, 2025
commit ffee32b2e8419d3ce57ebda2807cd0fd7138b126
3 changes: 2 additions & 1 deletion chatbees/client_models/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ def _validate_names(self):
@classmethod
def list_conversations(cls, collection_name=None, application_name=None) -> List[ConversationMeta]:
url = f'{Config.get_base_url()}/conversations/list'
namespace = Config.namespace if collection_name is not None else None
req = ListConversationsRequest(
namespace_name=Config.namespace,
namespace_name=namespace,
collection_name=collection_name,
application_name=application_name
)
Expand Down
7 changes: 4 additions & 3 deletions chatbees/tests/localfs_impl_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,9 @@ def test_conversations(self):
assert cl_convo.history_messages == [('cl_foo', cl_foo_answer), ('cl_bar', cl_bar_answer)], f"Actual convo {cl_convo}"
assert app_convo.history_messages == [('app_foo', app_foo_answer), ('app_bar', app_bar_answer)], f"Actual convo {app_convo}"


except Exception:
print(cl_convo.history_messages)
print(app_convo.history_messages)
finally:
cb.delete_application(appname)
cb.delete_collection(clname)

Expand Down Expand Up @@ -117,7 +118,7 @@ def test_applications(self):

cb.delete_application('test')
cb.delete_application('test2')
except Exception:
finally:
cb.delete_collection(clname)

def test_doc_apis(self):
Expand Down