Skip to content

Commit 34ffdb3

Browse files
committed
removed duplicate type
1 parent 5f6e7ce commit 34ffdb3

File tree

4 files changed

+15
-20
lines changed

4 files changed

+15
-20
lines changed

apps/sim/providers/models.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,7 @@ import {
2323
VllmIcon,
2424
xAIIcon,
2525
} from '@/components/icons'
26-
27-
export interface ModelPricing {
28-
input: number // Per 1M tokens
29-
cachedInput?: number // Per 1M tokens (if supported)
30-
output: number // Per 1M tokens
31-
updatedAt: string
32-
}
26+
import type { ModelPricing } from '@/providers/types'
3327

3428
export interface ModelCapabilities {
3529
temperature?: {

apps/sim/providers/types.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ export type ProviderId =
1919
* Model pricing information per million tokens
2020
*/
2121
export interface ModelPricing {
22-
input: number
23-
cachedInput?: number
24-
output: number
25-
updatedAt: string
22+
input: number // Per 1M tokens
23+
cachedInput?: number // Per 1M tokens (if supported)
24+
output: number // Per 1M tokens
25+
updatedAt: string // Last updated date
2626
}
2727

2828
export type ModelPricingMap = Record<string, ModelPricing>

bun.lock

Lines changed: 9 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"drizzle-kit": "^0.31.4",
6767
"husky": "9.1.7",
6868
"lint-staged": "16.0.0",
69-
"turbo": "2.7.0"
69+
"turbo": "2.7.1"
7070
},
7171
"lint-staged": {
7272
"*.{js,jsx,ts,tsx,json,css,scss}": [

0 commit comments

Comments
 (0)