sgpt icon indicating copy to clipboard operation
sgpt copied to clipboard

Support Google Cloud Natural Language API

Open zorak1103 opened this issue 1 year ago • 3 comments

Is your feature request related to a problem? Please describe.

With Google Cloud Natural Language API and Bard, Google offers similar functions to OpenAI with ChatGPT.

Describe the solution you'd like

The connection is made via a REST API, which enables developers to use Bard in their applications. Requests are sent as HTTP POST requests with a JSON body. Integration in sgpt should therefore be possible and very similar to ChatGPT.

Describe alternatives you've considered

n/a

Search

  • [X] I did search for other open and closed issues before opening this

Project

  • [X] I have verified that I am using the Go implementation of SGPT (this project) and that it is not another project

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

Additional context

No response

zorak1103 avatar Nov 15 '23 08:11 zorak1103

Also support Google Gemini MMLU: https://deepmind.google/technologies/gemini/

tbckr avatar Dec 06 '23 16:12 tbckr

To use Gemini/Pro go to https://makersuite.google.com/ and create an api key.

Right now, not all countries are supported: https://ai.google.dev/tutorials/ai-studio_faqs#understand-403-errors

Go library: https://github.com/google/generative-ai-go

Go example: https://ai.google.dev/tutorials/go_quickstart

tbckr avatar Dec 16 '23 19:12 tbckr

Related to: #232

tbckr avatar Feb 25 '24 08:02 tbckr