Open palladius opened 1 week ago
Trying the lazy way, its bigger brothers, both fail:
irb(main):002> GeminiLLM.summarize text: 'ciao'
🐒🐒🐒 Monkeypatching GoogleGemini::neha_authenticate(): Cache HIT! 🐒🐒🐒
config/initializers/riccardo02_monkeypatch_langchain_google_gemini.rb:125:in `complete': undefined method `generate_text' for nil:NilClass (NoMethodError)
response = client.generate_text(**default_params)
^^^^^^^^^^^^^^
from config/initializers/riccardo02_monkeypatch_langchain_google_gemini.rb:97:in `summarize'
from (irb):2:in `<main>'
irb(main):003> VertexLLM.summarize text: 'ciao'
config/initializers/riccardo03_monkeypatch_langchain_google_vertex_ai.rb:151:in `complete': undefined method `generate_text' for nil:NilClass (NoMethodError)
response = client.generate_text(**default_params)
^^^^^^^^^^^^^^
from config/initializers/riccardo03_monkeypatch_langchain_google_vertex_ai.rb:166:in `summarize'
from (irb):3:in `<main>'
irb(main):004>
Note i use this only for a small piece of the demo, could be the right time i REMOVE PalmLLM (=> nil) and use gemini1.5 instead.