model laboratory (#95)

This commit is contained in:
Harrison Chase
2022-11-08 22:17:10 -08:00
committed by GitHub
parent 2ddab88c06
commit db37bd089f
11 changed files with 268 additions and 23 deletions

View File

@@ -1,5 +1,5 @@
"""Fake LLM wrapper for testing purposes."""
from typing import List, Mapping, Optional
from typing import Any, List, Mapping, Optional
from langchain.llms.base import LLM
@@ -19,3 +19,7 @@ class FakeLLM(LLM):
return "foo"
else:
return "bar"
@property
def _identifying_params(self) -> Mapping[str, Any]:
return {}