Soulter / hugging-chat-api

HuggingChat Python API🤗
GNU Affero General Public License v3.0
865 stars 124 forks source link

Assistant not found, but exist!!! #245

Closed JacobHawk603 closed 2 months ago

JacobHawk603 commented 4 months ago
          I've recently created an assistant, but despite I can chare the link and chat with it through that link, when I tried to do this: 

you can try this way:

ASSISTANT_ID: str = YOUR_ASSISTANT_ID # such as 65fc7e89c0f4abe9abb9d304
bot.new_conversation(assistant=ASSISTANT_ID)

I always receive an error message, because my assistant is not found whether I use name or id.

I also tried to search directly from the API link, and I got this:

{
  "code": 1,
  "message": "Assistant id 668dddcf58b753e8ae141281 not found",
  "data": {

  }
}

If I repeat the same experiment with ChatGpt assistant (just an example), I got this another message:

{
  "code": 0,
  "message": "OK",
  "data": {
    "assistant_id": "65bd6d583140495b7e30f744",
    "author": "Matros77",
    "name": "ChatGpt",
    "model_name": "CohereForAI/c4ai-command-r-plus",
    "pre_prompt": "You will respond to user requests in the classic ChatGpt-3.5 style! Just answer the questions they ask you!",
    "description": "This bot will tell you everything you ask!"
  }
}

I don't know what else I can do to solve this, I've tried so hard to make my assistant visible, but It's useless

The API link I'm using on the browser is this one: https://api.soulter.top/hugchat/assistant?id={assistant_id}

Originally posted by @JacobHawk603 in https://github.com/Soulter/hugging-chat-api/issues/191#issuecomment-2223911863

github-actions[bot] commented 4 months ago

Hi! Thanks for your issue, we will deal with your issue as soon as possible.

github-actions[bot] commented 2 months ago

This issue was marked as stale because of inactivity.

github-actions[bot] commented 2 months ago

This issue was closed because of inactivity.