TheOneTrueNiz / Gemini-in-NotebookLM

Use this code to access pipeline to Gemini from inside notebookLM
14 stars 1 forks source link

Where to find the proper API Key and the API URL #1

Open phanxuanquang opened 1 week ago

phanxuanquang commented 1 week ago

Hello,

I have issues with the API endpoint and the API key. Can you please help to guide where to find the proper API key and a sample API URL and where to find them.

Thank you.

TheOneTrueNiz commented 6 days ago

I just used the API from here https://ai.google.dev/gemini-api/docs/api-key . When we coded this for NotebookLM it was originally for Bard and worked great. After the Gemini update it stopped working. So I gave the original code to Gemini and basically said "Fix it." Gemini added the API access and the code worked again. This was several months ago as per the original repo date. I haven't done any updates to the code bc i was under the impression that Gemini is now natively accessible from inside NotebookLM. At the time we wrote the code for this this was not the case.