JohnSmith9982's picture
Upload 57 files
11eb8f3
raw
history blame
No virus
428 Bytes
from .base_model import BaseLLMModel, CallbackToIterator, ChuanhuCallbackHandler
from langchain.chat_models import ChatGooglePalm
import os
class PaLM_Client(BaseLLMModel):
def __init__(self, model_name, user="") -> None:
super().__init__(model_name, user)
self.llm = ChatGooglePalm(google_api_key=os.environ["GOOGLE_PALM_API_KEY"])
def get_answer_at_once(self):
self.llm.generate(self.history)