-
-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NotImplementedError: Langchain::LLM::GoogleGemini does not support generating embeddings (NotImplementedError) #752
Comments
@palladius Hmm... what is the Ruby code you're running? See below: irb(main):003> llm = Langchain::LLM::GoogleGemini.new(api_key: ENV["GOOGLE_GEMINI_API_KEY"])
irb(main):004> llm.embed text: "Hello world"
=>
#<Langchain::LLM::GoogleGeminiResponse:0x000000010a8d4108
@model="text-embedding-004",
@raw_response=
{"embedding"=>
{"values"=>
[0.013168523,
-0.008711934,
-0.046782676,
... |
I'm running ruby
Another small thing: whenever I render @llm I get the api_key in output which makes it very EASY to publish the key on github by mistake. Is there a way t mark an attribute as private/password and make api_key such? Or do I have to rewrite the inspect function? |
trying again with
Same issue. |
even cleaning up all my gems and bundler with latest ruby i get the same:
I'll now try in a different computer. |
This bug was fixed with #754. |
API call should be:
The text was updated successfully, but these errors were encountered: