Giter VIP home page Giter VIP logo

Comments (5)

annamalaiarunachalam avatar annamalaiarunachalam commented on July 29, 2024

Hello, I tried with 1.5-pro, I get a different error.
ValueError Traceback (most recent call last).....................................................
...............................
GoogleGenerativeAIError: Error embedding content: content must not be empty
if I use 1.0 I get the above error raised by the original thread. If I change to 1.5, get this error. But I didnt get any error when I used OpenAI's chat model. Why is Google's API's so annoying. You guys keen to gain more adoption, but the experience sucks. Just the other day, Google Architect, almost forced me to move away from openAi models, how can I do that? how to trust these unreliable google models.
even the embedding model is not good. Please reply to the error msg reported above.

from generative-ai-python.

singhniraj08 avatar singhniraj08 commented on July 29, 2024

@annamalaiarunachalam,

System Instructions are introduced in Gemini 1.5 pro and will not work with Gemini 1.0 pro model. I tried running my attached gist with system instructions and it works without any issues. Please try running the gist and share with us the colab gist or code to reproduce the error you are facing on our end. Thank you!

from generative-ai-python.

annamalaiarunachalam avatar annamalaiarunachalam commented on July 29, 2024

from generative-ai-python.

singhniraj08 avatar singhniraj08 commented on July 29, 2024

@annamalaiarunachalam, The error might be an intermittent issue. Requesting you to close this issue, it it's resolved for you. Thank you!

from generative-ai-python.

MarkDaoust avatar MarkDaoust commented on July 29, 2024

The new gemini-1.5-flash model is cheaper and faster than gemini-1.5-pro, flash supports system instructions. Use flash.

from generative-ai-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.