zhu327 / gemini-openai-proxy

A proxy for converting the OpenAI API protocol to the Google Gemini Pro protocol.
MIT License
504 stars 92 forks source link

The return value is not as expected #30

Closed GodD6366 closed 2 months ago

GodD6366 commented 2 months ago
  1. When making a call using curl, I receive an empty object as the return value.

    image
  2. Using the “openai” npm package results in the same issue as with the curl call. npm package openai

  3. However, using other clients (such as OpenCat / ChatX) allows for successful proxying.

    image
image
zhu327 commented 2 months ago

From your description, I can't see what the problem is. You can consider whether there is an interruption in the network. The intermediate node may block and tamper with data

GodD6366 commented 2 months ago

ata

If no other intermediate nodes modify the data, the direct curl call will get an empty object "{}", but you can use other clients to talk normally.

image
zhu327 commented 2 months ago

As you can see in the README.md file I wrote an example with curl, I didn't face your issue

GodD6366 commented 2 months ago

As you can see in the README.md file I wrote an example with curl, I didn't face your issue

Okay, I’ve also checked the Docker logs and haven’t found any errors. I’m not sure how to proceed with the investigation either.