This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from langchain.llms.base import LLM | |
from typing import Optional, List, Mapping, Any | |
import requests | |
from langchain.llms.utils import enforce_stop_tokens | |
class CustomLLM(LLM): | |
def __init__(self, url: str): | |
self.url = url |