kotaemon/knowledgehub/llms/base.py
ian_Cin d83c22aa4e [AUR-395, AUR-415] Adopt Example1 Injury pipeline; add .flow() for enabling bottom-up pipeline execution (#32)
* add example1/injury pipeline example
* add dotenv
* update various api
2023-10-02 16:24:56 +07:00

14 lines
303 B
Python

from typing import List
from pydantic import Field
from kotaemon.documents.base import Document
class LLMInterface(Document):
candidates: List[str]
completion_tokens: int = -1
total_tokens: int = -1
prompt_tokens: int = -1
logits: List[List[float]] = Field(default_factory=list)