Add fastapi deployment
Signed-off-by: András Schmelczer <andras@schmelczer.dev>
This commit is contained in:
parent
be567897d9
commit
57cccac722
1 changed files with 83 additions and 13 deletions
14
good_ai/src/good_ai/good_ai/views/trace.py
Normal file
14
good_ai/src/good_ai/good_ai/views/trace.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
from typing import Any, List
|
||||
|
||||
from pydantic import BaseModel
|
||||
|
||||
from .model import Model
|
||||
|
||||
|
||||
class Trace(BaseModel):
|
||||
created: str
|
||||
execution_time_ms: float
|
||||
input: Any
|
||||
models: List[Model]
|
||||
output: Any
|
||||
evaluation: Any = None
|
||||
Loading…
Reference in a new issue