Skip to content

Commit

Permalink
fix: manage workspace_ids str error
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorentLvr committed Apr 25, 2024
1 parent 441423a commit 27e3c6c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions utils/naas_chat_plugin.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,10 @@
" workspace_ids=[],\n",
" personal_workspace=True\n",
"):\n",
" # Init\n",
" if isinstance(workspace_ids, str) and workspace_ids == '':\n",
" workspace_ids = []\n",
" \n",
" # Get workspaces\n",
" workspaces = list_workspaces(api_key)\n",
" \n",
Expand Down

0 comments on commit 27e3c6c

Please sign in to comment.