fix(omp): avoid unsupported calculateCost import
Fix OMP installation by removing the unsupported calculateCost runtime import from pi-ai.
This commit is contained in:
@@ -50,11 +50,19 @@ export interface AssistantMessageLike {
|
||||
timestamp: number
|
||||
}
|
||||
|
||||
export interface ModelCost {
|
||||
input: number
|
||||
output: number
|
||||
cacheRead: number
|
||||
cacheWrite: number
|
||||
}
|
||||
|
||||
export interface ModelLike {
|
||||
id: string
|
||||
api: unknown
|
||||
provider: string
|
||||
maxTokens: number
|
||||
cost: ModelCost
|
||||
}
|
||||
|
||||
export interface MessageLike {
|
||||
|
||||
Reference in New Issue
Block a user