You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8a4beb8
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: src/hugchat/hugchat.py
+14-22Lines changed: 14 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -166,7 +166,7 @@ def new_conversation(
166
166
Create a new conversation. Return a conversation object.
167
167
168
168
modelIndex: int, get it from get_available_llm_models(). If None, use the default model.
169
-
assistant: str or Assistant, the assistant **id** or assistant object. Use search_assistant() to get the assistant object.
169
+
assistant: str or Assistant, the assistant **id**. Assistant id can be found in the assistant url, such as https://huggingface.co/chat/assistant/65bf2ddbf4017c8048ae43a3, the id is `65bf2ddbf4017c8048ae43a3`.
170
170
171
171
- You should change the conversation by calling change_conversation() after calling this method. Or set param switch_to to True.
172
172
- if you use assistant, the parameter `system_prompt` will be ignored.
- If you created an assistant by your own, you should pass the assistant_id here but not the assistant_name. You can pass your assistant_id into the new_conversation() directly.
629
629
- Search an available assistant by assistant name or assistant id.
630
630
- Will search on api.soulter.top/hugchat because offifial api doesn't support search.
0 commit comments