hellocomputer/test/test_prompts.py
Guillem Borrell 9d08a189b1
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Split models and prompts
2024-07-25 23:42:19 +02:00

10 lines
300 B
Python

import pytest
from hellocomputer.prompts import Prompts
from langchain.prompts import PromptTemplate
@pytest.mark.asyncio
async def test_get_general_prompt():
general: PromptTemplate = await Prompts.general()
assert general.format(query="whatever").startswith("You're a helpful assistant")