Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] API Version Service Provider Google #4031

Closed
H0llyW00dzZ opened this issue Feb 11, 2024 · 9 comments · Fixed by #4412
Closed

[Bug] API Version Service Provider Google #4031

H0llyW00dzZ opened this issue Feb 11, 2024 · 9 comments · Fixed by #4412

Comments

@H0llyW00dzZ
Copy link
Contributor

H0llyW00dzZ commented Feb 11, 2024

Describe the bug
this one

image

it doesn't work when use v1beta

@H0llyW00dzZ
Copy link
Contributor Author

Docs https://ai.google.dev/docs/api_versions

image

@RubuJam
Copy link
Contributor

RubuJam commented Mar 3, 2024

However, the network request indicates that all calls are using the v1beta version, instead of the API version you provided.

For instance, in the image below, I used the v1beta and v1 versions to hold conversations, respectively. However, all web pages used the v1beta version to conduct conversations.
bug

@H0llyW00dzZ
Copy link
Contributor Author

However, the network request indicates that all calls are using the v1beta version, instead of the API version you provided.

For instance, in the image below, I used the v1beta and v1 versions to hold conversations, respectively. However, all web pages used the v1beta version to conduct conversations. bug

it's because of this

export const Google = {
  ExampleEndpoint: "https://generativelanguage.googleapis.com/",
  ChatPath: "v1beta/models/gemini-pro:generateContent",
  VisionChatPath: "v1beta/models/gemini-pro-vision:generateContent",

  // /api/openai/v1/chat/completions
};

Also This repository hasn't been fixed for a long time and is essentially unmaintained, as @fred-bf is the only one managing it.

@H0llyW00dzZ
Copy link
Contributor Author

Also,

Note

The Google Service Provider is still unstable unlike OpenAI. This instability is not due to Google itself. You can see more details here.

@RubuJam
Copy link
Contributor

RubuJam commented Mar 3, 2024

However, the network request indicates that all calls are using the v1beta version, instead of the API version you provided.

For instance, in the image below, I used the v1beta and v1 versions to hold conversations, respectively. However, all web pages used the v1beta version to conduct conversations. bug

it's because of this

export const Google = {

  ExampleEndpoint: "https://generativelanguage.googleapis.com/",

  ChatPath: "v1beta/models/gemini-pro:generateContent",

  VisionChatPath: "v1beta/models/gemini-pro-vision:generateContent",



  // /api/openai/v1/chat/completions

};

Also This repository hasn't been fixed for a long time and is essentially unmaintained, as @fred-bf is the only one managing it.

So in pull request #4192, I can only simply modify the code to solve the problem I encountered (or cover up the problem). After all, refactoring this part of the code is a bit too difficult for me now😢

@H0llyW00dzZ
Copy link
Contributor Author

However, the network request indicates that all calls are using the v1beta version, instead of the API version you provided.

For instance, in the image below, I used the v1beta and v1 versions to hold conversations, respectively. However, all web pages used the v1beta version to conduct conversations. bug

it's because of this

export const Google = {

  ExampleEndpoint: "https://generativelanguage.googleapis.com/",

  ChatPath: "v1beta/models/gemini-pro:generateContent",

  VisionChatPath: "v1beta/models/gemini-pro-vision:generateContent",



  // /api/openai/v1/chat/completions

};

Also This repository hasn't been fixed for a long time and is essentially unmaintained, as @fred-bf is the only one managing it.

So in pull request #4192, I can only simply modify the code to solve the problem I encountered (or cover up the problem). After all, refactoring this part of the code is a bit too difficult for me now😢

It's only refactoring support v1 and v1beta instead of only v1beta

@RubuJam
Copy link
Contributor

RubuJam commented Mar 3, 2024

It's only refactoring support v1 and v1beta instead of only v1beta

I'm preparing for a test recently. After my test is over, if no one has solved it, I want to give it a try.

@H0llyW00dzZ
Copy link
Contributor Author

It's only refactoring support v1 and v1beta instead of only v1beta

I'm preparing for a test recently. After my test is over, if no one has solved it, I want to give it a try.

nice

@H0llyW00dzZ
Copy link
Contributor Author

@Rubuark it's better to trying

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants