PublicAffairs / openai-gemini

Gemini ➜ OpenAI API proxy. Serverless!
https://my-openai-gemini-demo.vercel.app/
MIT License
380 stars 235 forks source link

部署后,在openai-translator使用出现“400 INVALID_ARGUMENT”错误。 #3

Closed crosspacific closed 8 months ago

crosspacific commented 8 months ago

在cloudflare worker 部署后,在openai-translator 客户端使用出现“400 INVALID_ARGUMENT”。

20240307202937

请问这是什么原因呢?谢谢。

xingwozhonghua126 commented 8 months ago

你知道autogpt怎么用这个吗?openai_key怎么填写

crosspacific commented 8 months ago

你知道autogpt怎么用这个吗?openai_key怎么填写

key 就是gemini的key。

xingwozhonghua126 commented 8 months ago

你知道autogpt怎么用这个吗?openai_key怎么填写

key 就是gemini的key。

我用autogpt,https://my-openai-gemini-demo.vercel.app/v1测试输入自己的key,不行,是必须要自己部署吗?我还不会部署。看你有打开了,就问问你

crosspacific commented 8 months ago

我用autogpt,[https://my-openai-gemini-demo.vercel.app/v1测试输入自己的key,不行,是必须要自己部署吗?我还不会部署

key就是是Gemini的key, 完整的网址是https://my-openai-gemini-demo.vercel.app/v1/chat/completions 具体要看你软件的设置。 可能有些软件的支持也不太好。我在openai-translator 客户端使用,就会出现错误。

johnd0e commented 8 months ago

@crosspacific

The reason of error is explained in error message. It appears, that "OpenAI-Translator" uses some smart prompt, and the last message is on behalf of the model. Unfortunately Gemini API does not support this.

BTW, I see that OpenAI-Translator should support Gemini natively, check this.

crosspacific commented 8 months ago

@crosspacific

The reason of error is explained in error message. It appears, that "OpenAI-Translator" uses some smart prompt, and the last message is on behalf of the model. Unfortunately Gemini API does not support this.

BTW, I see that OpenAI-Translator should support Gemini natively, check this.

Thanks. This proxy works in OpenAI-Translator (v0.3.30), but not in the latest version (v0.3.33). Maybe the software has modified the prompt.

ghost commented 8 months ago

Hello, your other repository cannot be opened. I forgot to fork. I think this repository is very useful. Will you upload it again? Thank you.

johnd0e commented 8 months ago

@Nicolaides648 If you are interested in openai-github-copilot then try on gitea.com