Gemini API is here! Let's try it! | Basic Usage + Function Calling (Python SDK)
Vložit
- čas přidán 27. 07. 2024
- In today's video I check out Google's Gemini API for the first time.
GitHub: github.com/unconv/gemini-testing
Support: buymeacoffee.com/unconv
Consultations: www.buymeacoffee.com/unconv/e...
Memberships: www.buymeacoffee.com/unconv/m...
00:00 Intro & Get API Key
01:02 Installing Python SDK
01:22 Listing available models
03:07 Making a completion
04:31 Sending harmful content
07:37 Streaming responses
09:08 Gemini Pro Vision: Images to Text
12:20 Creating chats (simple way)
15:33 Creating chats (hard way)
19:53 Setting max_tokens and temperature etc.
20:13 Migrate Function Calling AI Agent from OpenAI to Gemini
39:00 Gemini 0 - ChatGPT 1
41:52 Outro - Věda a technologie
Thank you. It was very helpful
An intresting thing I found was that this is slightly different from Gemini Pro. If you ask it's name, it will not give any name. If you ask "are you powered by Gemini", it won't say it's powered by Gemini. I did manage the LLM to tell it's name once, to which it replied "Serenity"
man, thanks. THANK YOU SOO SOO MUCHHHHHHH!!!!!!!
Thank you.
Thanks I started following your great tutorials… I would like to do many this… mainly chat with a book…. Convert pdf to text file with ocr (text is images in pdf) … detect anomalies in large text file eg. foreign words (to the language) … have double language chat e.g. German and Spanish in same chat …
I am getting a 500 InternalServerException. Network Error while trying to run genai.. Is someone else too ?
When I used Gemini, it just called all the functions I listed in the functions file. It's really in need of improvement.
when i try this i get some error about authentication scope can you help me
8k tokens output and not ready yet for businesses. Google did though provides regional based access albeit no european based yet.
Overall its currently faster than cgpt although the contents somewhat need to be adjusted as required
Could you make a video showing us how to replace OpenAI with Gemini in AutoGPT? 🙏
Bro How much Python Knowledge Required I am beginner at Python
I made a similar video as this! After playing with this for about 24 hours, I'm finding Gemini is very buggy (chat triggering exceptions) and is suffering from a lot of hallucinations. It's been giving me links that lead to 404 pages. One example, I asked it to explain binary to me where it started off ok but then proceeded to calculate 1011 (11 in decimal) and added it backwards (left to right instead of right to left) and got 13. SMH. I'm sure they will work it out but this is not ready for general use yet. Anyone else having experiences like this?
I am getting NetworkError. InternalServerException while trying to call any method from genai
The model we use in the API is not the same on Bard. Bard is more verbose while on the API it is 'direct'. Like when we ask "what is the 3rd planet of the sun" Bard gives a more verbose answer, while the API just gives "Earth". Maybe a system prompt can make it more chat friendly.
Yeah. And when I said "hi" to it, it just executed all the functions I gave it sequentially. It also refuses to write code for some reason for me.
should start making tutorials, i just learned a lot from observing you debug code.
When I click get an API key the site doesn't load or it says I'm not allowed to access it or something?
same here
Seems that it's country restricted. Basically Europe is excluded :(
You could try using a VPN
Thanks for the video. It would help if you thoroughly read the Documentation. 😂
i need to convert this using GEMINI API
Bro why not use the debugger ? Iteration a lot faster because you keep all the state!
Thanks for the tip. I'll try it out!
Then why can no one, other than youtubers seem to be able to get onto Gemini?
It seems to be country restricted (basically excluding Europe)
@@unconv I'm not able to create the API keys indeed. where do you get the info that it's not available in EU?
Here: ai.google.dev/available_regions
Is the API free ?
Yes, for 60 queries per minute (but Google uses your data to train the model)
What is the right of use, can I use the API in free products with in-game purchase?@@unconv