Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Google Official API #262

Open
dsdanielpark opened this issue Jan 13, 2024 · 0 comments
Open

Google Official API #262

dsdanielpark opened this issue Jan 13, 2024 · 0 comments
Labels

Comments

@dsdanielpark
Copy link
Owner

dsdanielpark commented Jan 13, 2024

This Bard API Package is unofficial Python package.

As you may know, this repository was provided for testing certain functionalities due to the delayed release of Google Bard's official API (which has not been released yet). In the early stages, the cookie values were static, allowing for stable usage. However, it has become unstable recently due to frequent changes in cookie values within 15-20 minutes or even faster.

Furthermore, since Bard Advanced API is expected to be publicly available in 2024, this repository will become a public archive upon the official API's release. The Bard website is currently presenting responses randomly from a range of diverse AI models, such as PaLM2 and Gemini. You can test the functionalities through the web UI on the Bard website.

I hope that this package has been of some help to other developers and that it has contributed to open-source projects, even if only slightly. I sincerely thank all the contributors and community participants. I wish you all the best and hope that the new year brings only good things.

To ensure stable usage, we strongly recommend replacing your code with Google's official API, which we introduce as follows.






Google API Console


Google PaLM API

You can explore information about various generative AI models by Google. Although the palm2 API seems to be under preparation, you can check out demos related to palm2 on the demo page.

PaLM API

Try demo at https://makersuite.google.com/app/prompts/new_text.

who are you?
>> I am powered by PaLM 2, which stands for Pathways Language Model 2, a large language model from Google AI.

Google Generative AI

Quick Start

$ pip install -q google-generativeai
import pprint
import google.generativeai as palm

palm.configure(api_key='YOUR_API_KEY')

models = [m for m in palm.list_models() if 'generateText' in m.supported_generation_methods]
model = models[0].name
print(model)

prompt = "Who are you?"

completion = palm.generate_text(
    model=model,
    prompt=prompt,
    temperature=0,
    # The maximum length of the response
    max_output_tokens=800,
)
print(completion.result)

Google PaLM 2



Google Gemini

Google AI Studio

Google AI Studio creates a new Google Cloud project for each new API key. You also can create an API key in an existing Google Cloud project. All projects are subject to the Google Cloud Platform Terms of Service.




Google Bard



Google Generative AI Github

@dsdanielpark dsdanielpark changed the title NOTICE: Google Official API [NOTICE] Google Official API Jan 13, 2024
@dsdanielpark dsdanielpark changed the title [NOTICE] Google Official API [Notice] Google Official API Jan 13, 2024
@dsdanielpark dsdanielpark changed the title [Notice] Google Official API Google Official API Jan 13, 2024
dsdanielpark added a commit that referenced this issue Jan 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant