quivr/backend/core/tests/test_config.py
AmineDiro 9d3e9edfd2
feat: quivr api use quivr core (#2868)
# Description

- `quivr-api` uses `quivr-core` for generating   
- separate `rag_service` 
- removed the package quivr_core from api.
2024-07-15 10:10:03 -07:00

27 lines
618 B
Python

from quivr_core.config import LLMEndpointConfig, RAGConfig
def test_default_llm_config():
config = LLMEndpointConfig()
assert (
config.model_dump()
== LLMEndpointConfig(
model="gpt-3.5-turbo-0125",
llm_base_url=None,
llm_api_key=None,
max_input=2000,
max_tokens=2000,
temperature=0.7,
streaming=True,
).model_dump()
)
def test_default_ragconfig():
config = RAGConfig()
assert config.max_files == 20
assert config.prompt is None
assert config.llm_config == LLMEndpointConfig()