kagisearch / pyllms

Minimal Python library to connect to LLMs (OpenAI, Anthropic, AI21, Cohere, Aleph Alpha, HuggingfaceHub, Google PaLM2, with a built-in model performance benchmark.

Home Page:https://kagi.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[feature request] support Google's text generation model "text-bison"

laksh-bhat opened this issue · comments

>>> import llms
>>> model = llms.init(model='text-bison')
Found text-bison in GoogleProvider
>>> result = model.complete("what is 5+5")
>>> result.text
'10'