bioML_resurrection_project / LLM_middleware.py
Dhruv's picture
WIP: init
c44d252
raw
history blame
278 Bytes
import os
import re
from typing import List, Optional
import openai
from transformers import AutoTokenizer, AutoModelForCausalLM
class LLM_Middleware():
hf_key: str
def __init__(self, openai_key, hf) -> None:
openai.key = openai_key
self.hf_key = hf