tbckr / sgpt

SGPT is a command-line tool that provides a convenient way to interact with OpenAI models, enabling users to run queries, generate shell commands and produce code directly from the terminal.
MIT License
232 stars 24 forks source link

Support Google Cloud Natural Language API #173

Open zorak1103 opened 9 months ago

zorak1103 commented 9 months ago

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

Project

Code of Conduct

Additional context

No response

tbckr commented 9 months ago

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

tbckr commented 8 months ago

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 commented 6 months ago

Related to: #232