animalnots / BetterChatGPT-PLUS

Maintained version of bettergpt. An amazing UI for OpenAI's ChatGPT (Website + Windows + MacOS + Linux). https://discord.gg/2CKfAbAJrH
https://animalnots.github.io/BetterChatGPT-PLUS/
Creative Commons Zero v1.0 Universal
58 stars 26 forks source link

`content` cannot be a list when gpt-3.5-turbo is called. For models that support text input only, string only #33

Open Zapzatron opened 2 months ago

Zapzatron commented 2 months ago
openai.BadRequestError: Error code: 400 - {'error': {'type': 'invalid_request_error', 'message': [{'type': 'value_error', 'loc': ['body'], 'msg': 'Value error, This model does not support multimodal requests', 'input': {'messages': [{'role': 'system', 'content': [{'type': 'text', 'text': "You are ChatGPT, a large language model trained by OpenAI.\nCarefully heed the user's instructions. \nRespond using Markdown."}]}, {'role': 'user', 'content': [{'type': 'text', 'text': 'Hi'}]}], 'model': 'gpt-3.5-turbo', 'frequency_penalty': 0, 'max_tokens': 2000, 'presence_penalty': 0, 'stream': False, 'temperature': 1, 'top_p': 1}, 'ctx': {'error': {}}}], 'tip': None}}

content cannot be a list when gpt-3.5-turbo is called. For models that support text input only, string only I usually don't call gpt-3.5-turbo from the interface, but it may be relevant for someone.

animalnots commented 2 months ago

thanks for reporting, will look into this in the near future

animalnots commented 2 months ago

can you provide exact steps to replicate this error?

Zapzatron commented 2 months ago

Replication steps:

  1. Go to https://animalnots.github.io/BetterChatGPT-PLUS/
  2. Add endpoint and key in API connection settings.
  3. Select model gpt-3.5-turbo.
  4. Send any request.
animalnots commented 2 months ago
image

Perhaps you can share the value of the storage for the free-chat-gpt key (can remove sensitive info)?

image
animalnots commented 2 months ago

if you don't care about the current chats and you just need it to work, you can wipe the data (remove all data associated with the https://animalnots.github.io/BetterChatGPT-PLUS/ and it should work. e.g. delete the data associated with the free-chat-gpt key.

Zapzatron commented 2 months ago

I don't use free-chat-gpt, I make requests through providers that follow the openai format.

animalnots commented 2 months ago

I don't use free-chat-gpt, I make requests through providers that follow the openai format.

If I can't replicate it, it's difficult to fix something. Which provider do you use?

Zapzatron commented 2 months ago

NagaAI

animalnots commented 2 months ago

Couldn't find steps to replicate or reuse their key, is this still an issue with v.1.5.0?

Zapzatron commented 2 months ago

Yes this problem persists in version 1.5.0.

  1. /account key get in #commands
  2. Go to https://animalnots.github.io/BetterChatGPT-PLUS/
  3. Add endpoint (https://api.naga.ac/v1/chat/completions) and your key in BetterGPT-Plus API connection settings.
  4. Select model gpt-3.5-turbo.
  5. Send any prompt.