Harrison/cohere experimental (#638)

Co-authored-by: inyourhead <44607279+xettrisomeman@users.noreply.github.com>
This commit is contained in:
Harrison Chase
2023-01-17 22:28:55 -08:00
committed by GitHub
parent 5c97f70bf1
commit 4d4cff0530
2 changed files with 18 additions and 1 deletions

View File

@@ -13,6 +13,13 @@ def test_ai21_call() -> None:
assert isinstance(output, str)
def test_ai21_call_experimental() -> None:
"""Test valid call to ai21 with an experimental model."""
llm = AI21(maxTokens=10, model="j1-grande-instruct")
output = llm("Say foo:")
assert isinstance(output, str)
def test_saving_loading_llm(tmp_path: Path) -> None:
"""Test saving/loading an AI21 LLM."""
llm = AI21(maxTokens=10)