weaigc / gradio-chatbot

A tool that can automatically convert 🤗 Huggingface Spaces,魔搭创空间 and Gradio ChatBot into free APIs. Supports GPT4Free,ChatGPT,Llama2,MPT,Falcon Chat,ChatGLM,通义千问 and many other chatbot like spaces.
https://weaigc.github.io/gradio-chatbot-ui/
Apache License 2.0
150 stars 23 forks source link

Error in Response #7

Closed egcash closed 1 year ago

egcash commented 1 year ago

I performed everything carefully. But,when I did : curl -X POST 'http://localhost:8000/api/conversation' -H 'accept:text/event-stream' -H 'Content-Type:application/json' -d '{ "model": "https://huggingface.co/spaces/justest/gpt4free", "messages": [ { "role": "user", "content": "hello" } ] }'

I got this response : ReactNativeBlobUtil failed to encode response data to BASE64 string.

weaigc commented 1 year ago

I performed everything carefully. But,when I did : curl -X POST 'http://localhost:8000/api/conversation' -H 'accept:text/event-stream' -H 'Content-Type:application/json' -d '{ "model": "https://huggingface.co/spaces/justest/gpt4free", "messages": [ { "role": "user", "content": "hello" } ] }'

I got this response : ReactNativeBlobUtil failed to encode response data to BASE64 string.

@egcash It looks like an error reported by react-native

egcash commented 1 year ago

What's the solution?

I performed everything carefully. But,when I did : curl -X POST 'http://localhost:8000/api/conversation' -H 'accept:text/event-stream' -H 'Content-Type:application/json' -d '{ "model": "https://huggingface.co/spaces/justest/gpt4free", "messages": [ { "role": "user", "content": "hello" } ] }' I got this response : ReactNativeBlobUtil failed to encode response data to BASE64 string.

@egcash It looks like an error reported by react-native

@weaigc What's the solution?