Live data from Hacker News

Google Gemini Pro API Available Through AI Studio

ai.google.dev

41–50 of 118 posts

Re: Google Gemini Pro API Available Through AI Studio

#41
post #16

Typical Google UX. Get API key, takes me to makersuite, where I get a create API key button that errors. Then when I reload the page, I get a straight forbidden page. HP said it best, you have to isolate the team from the bigger company to allow them to work as an effective startup. How can solo-preneurs provide better UX & onboarding while doing 16 other jobs than Google can with multi-billion dollar budgets?

Similar thing just happened to me.

Click on link > Get API Key > "We are sorry, but you do not have access to Early Access Apps"

Since I'm the admin, I checked and confirmed that I do have access. It's enabled for both my account and the entire organization.

Whatever.

Re: Google Gemini Pro API Available Through AI Studio

#42
post #35

Earlier quoted context omitted.

Since the Maker Suite doesn't have the same prompting as something like Bard or ChatGPT, I gave Gemini Pro a bit more context: > Consider the following user chat. Reason out loud as needed to provide a reasonable response. User message: "Julia has three brothers, each of them has two sisters. How many sisters does Julia have?" Gemini Pro: > Julia's brothers have nothing to do with how many sisters she has. Julia's si…

Isn't 6 still incorrect? Or am I dumb?

This made me laugh. It's very wrong. Unless I'm dumb, the answer we're looking for should be 1.

Sounds like the confidence of Gemini worked on you, though.

Re: Google Gemini Pro API Available Through AI Studio

#43
post #35

Earlier quoted context omitted.

Since the Maker Suite doesn't have the same prompting as something like Bard or ChatGPT, I gave Gemini Pro a bit more context: > Consider the following user chat. Reason out loud as needed to provide a reasonable response. User message: "Julia has three brothers, each of them has two sisters. How many sisters does Julia have?" Gemini Pro: > Julia's brothers have nothing to do with how many sisters she has. Julia's si…

Isn't 6 still incorrect? Or am I dumb?

The sum is incorrect and the statement of "Julia's sisters are also her brothers' sisters, so the number of sisters Julia has is the same as the number of sisters her brothers have" is also incorrect. The brothers each have one more sister than Julia, since she is one of the sisters so she only has one sister. It's just reworded but still wrong.

Re: Google Gemini Pro API Available Through AI Studio

#44
why on earth did they design the Node.js and Web APIs to be slightly different and incompatible? (edit: this might just be a bug/oversight on the landing page?)

Node.js:

   const model = genAI.getGenerativeModel({ model: "gemini-pro-vision"});

   const result = model.generateContent({ contents: [{parts: [
      {text: "What’s in this photo?"},
      {inlineData: {data: imgBase64, mimeType: 'image/png'}}
    ] }] })
Web:

    const model = genAI.getGenerativeModel({ model: "gemini-pro-vision"});

    const result = await model.generateContent([
      "What’s in this photo?",
      {inlineData: {data: imgDataInBase64, mimeType: 'image/png'}}
    ]);

Re: Google Gemini Pro API Available Through AI Studio

#45
post #35

Earlier quoted context omitted.

Since the Maker Suite doesn't have the same prompting as something like Bard or ChatGPT, I gave Gemini Pro a bit more context: > Consider the following user chat. Reason out loud as needed to provide a reasonable response. User message: "Julia has three brothers, each of them has two sisters. How many sisters does Julia have?" Gemini Pro: > Julia's brothers have nothing to do with how many sisters she has. Julia's si…

Isn't 6 still incorrect? Or am I dumb?

Yes, making it reason made it even more wrong

Re: Google Gemini Pro API Available Through AI Studio

#46
post #35

Earlier quoted context omitted.

Since the Maker Suite doesn't have the same prompting as something like Bard or ChatGPT, I gave Gemini Pro a bit more context: > Consider the following user chat. Reason out loud as needed to provide a reasonable response. User message: "Julia has three brothers, each of them has two sisters. How many sisters does Julia have?" Gemini Pro: > Julia's brothers have nothing to do with how many sisters she has. Julia's si…

Isn't 6 still incorrect? Or am I dumb?

[deleted]

Re: Google Gemini Pro API Available Through AI Studio

#47
post #35

Earlier quoted context omitted.

Since the Maker Suite doesn't have the same prompting as something like Bard or ChatGPT, I gave Gemini Pro a bit more context: > Consider the following user chat. Reason out loud as needed to provide a reasonable response. User message: "Julia has three brothers, each of them has two sisters. How many sisters does Julia have?" Gemini Pro: > Julia's brothers have nothing to do with how many sisters she has. Julia's si…

Isn't 6 still incorrect? Or am I dumb?

You're not dumb. But it's an ambiguous question as written. Presumably, we are to assume that all siblings involved are still alive, that all all full siblings (ie no half- or step-siblings), that everyone is cisgender, and that Julia is female. In which case, Julia would have one sister. Each of her three brothers would have two sisters, one of whom was Julia herself.

Re: Google Gemini Pro API Available Through AI Studio

#50
post #32
post #12

I can only access https://makersuite.google.com/ when using a VPN to the US. Also, it spams popups that get blocked by Firefox. Some basic prompts, which are answered correctly most of the time by ChatGPT4: There are 31 books in my house. I read 2 books over the weekend. How many books are still in my house? > 29 books Julia has three brothers, each of them has two sisters. How many sisters does Julia have? > Three I…

Mistral 7b gets the first two wrong, but gets the third one right: "The orange is still in the living room. When you moved the plate, you didn't move the orange. It remains in its original location until you pick it up and move it to a different place"

mistralai/Mixtral-8x7B-Instruct-v0.1 responses - which seems much better:

>>There are 31 books in my house. I read 2 books over the weekend. How many books are still in my house?

You still have 31 books in your house. The number of books doesn't change because you finished reading two of them; they're just no longer unread.

>>Julia has three brothers, each of them has two sisters. How many sisters does Julia have?

Julia has one sister.

Here's the logic behind this:

1. We know that Julia has three brothers. 2. Then we are told that each of her brothers has two sisters. 3. Since all four children (Julia and her brothers) share the same parents, they also share the same siblings. 4. Therefore, if each of Julia's brothers has two sisters, then there must be only one other sister besides Julia herself.

>> If you place an orange below a plate in the living room, and then move the plate to the kitchen, where is the orange now?

The orange is still in the living room, as moving the plate does not affect the location of the orange.

Post reply on HN