Skip to content

Commit 77d7d74

Browse files
committed
fixes from rebase
1 parent e9f273a commit 77d7d74

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

src/codegate/db/connection.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import sqlite3
55
import uuid
66
from pathlib import Path
7-
from typing import Dict, List, Optional, Type
7+
from typing import List, Optional, Type
88

99
import numpy as np
1010
import sqlite_vec_sl_tmp
@@ -28,7 +28,6 @@
2828
GetMessagesRow,
2929
GetWorkspaceByNameConditions,
3030
Instance,
31-
IntermediatePromptWithOutputUsageAlerts,
3231
MuxRule,
3332
Output,
3433
Persona,

src/codegate/db/models.py

+16
Original file line numberDiff line numberDiff line change
@@ -337,3 +337,19 @@ class PersonaDistance(Persona):
337337
"""
338338

339339
distance: float
340+
341+
342+
class GetMessagesRow(BaseModel):
343+
id: Any
344+
timestamp: Any
345+
provider: Optional[Any]
346+
request: Any
347+
type: Any
348+
output_id: Optional[Any]
349+
output: Optional[Any]
350+
output_timestamp: Optional[Any]
351+
input_tokens: Optional[int]
352+
output_tokens: Optional[int]
353+
input_cost: Optional[float]
354+
output_cost: Optional[float]
355+
alerts: List[Alert] = []

0 commit comments

Comments
 (0)