Spaces:
Runtime error
Runtime error
File size: 428 Bytes
11eb8f3 |
1 2 3 4 5 6 7 8 9 10 11 |
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) |