bincooo / chatgpt-adapter

集成了openai-api、bing、gemini、coze、claude、绘画 多款AI的聊天接口适配到 OpenAI API 标准接口服务端。
GNU General Public License v3.0
473 stars 88 forks source link

Sending an image #19

Closed devanenWl closed 2 weeks ago

devanenWl commented 1 month ago

Hi, thanks for creating such a good project Coze has updated gpt-4o So could you please add support sending image to coze ? Thank you very much

image
bincooo commented 1 month ago

maybe can do it, but it's not a gpt4o attachment recognition image, it's a gpt4v plugin parsing the url. It takes time.

devanenWl commented 1 month ago
image

I have tried but it still not works. Could you please check it again please ? I'm using Lobe-chat

bincooo commented 1 month ago

i'm testing pass

Screenshot 2024-06-01 at 00 53 50

Make sure your program is up to date with the latest commit, and if you use custom coze make sure you add the gpt4v plugin

Screenshot 2024-06-01 at 00 59 09
devanenWl commented 1 month ago

Hi, I have tried once again by using default model coze But it still not works I have updated my program.

image
bincooo commented 1 month ago

It's incredible! I can't guess what the problem is...

I use it is normal recognition. This is the service demo I posted on huggingface, You can try it here:

jump

curl -i -X POST \
   -H "Content-Type:application/json" \
   -H "Authorization:{YOUR_COOKIES}" \
   -d \
'{
  "messages": [
    {
      "content": [
        {
          "type": "text",
          "content": "describe this"
        },
        {
          "type": "image_url",
          "image_url": {
            "url": "https://complete-mmx-easy-images.hf.space/images/26b423e994b9ca7a27ebd08d436a501c.jpg"
          }
        }
      ],
      "role": "user"
    }
  ],
  "tools": [
  ],
  "model": "coze",
  "max_tokens": 0,
  "stop_sequences": null,
  "temperature": 0,
  "topK": 0,
  "topP": 0,
  "stream": false,
  "tool_choice": "auto"
}' \
 'https://complete-mmx-chatgpt-adapter.hf.space/proxies/v1/chat/completions'
GeekWorkCode commented 4 weeks ago

Hello! Does this support the attachment function of gpt-4o and claude 3 sonnet? I think the request example is only the way to send it in plain text.

devanenWl commented 2 weeks ago

Plugin:

image

GPT-4o

image

This is the difference between using gpt-4o and GPT4V plugin @bincooo Can you please update this ?

bincooo commented 2 weeks ago

Unofficial interfaces cannot be completely restored to the original function. Unfortunately, it can't customize the context, so it doesn't support native attachments.

devanenWl commented 2 weeks ago

Okay thank you by the way.