-
Notifications
You must be signed in to change notification settings - Fork 0
/
models.go
94 lines (87 loc) · 2.61 KB
/
models.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
package aicost
// OpenAI is a list of OpenAI models with cost
// last updated: 2024-06-23
var OpenAI = []Model{
{
Provider: "openai",
Model: "gpt-4o",
Releases: []string{"2024-05-13", "*"},
CostInput: NewMoneyFromFloat(CurrencyUSD, 0.00050/1000),
CostOutput: NewMoneyFromFloat(CurrencyUSD, 0.00150/1000),
},
{
Provider: "openai",
Model: "gpt-4-turbo",
Releases: []string{"2024-04-09", "instruct", "*"},
CostInput: NewMoneyFromFloat(CurrencyUSD, 0.01000/1000),
CostOutput: NewMoneyFromFloat(CurrencyUSD, 0.03000/1000),
},
{
Provider: "openai",
Model: "gpt-4",
CostInput: NewMoneyFromFloat(CurrencyUSD, 0.03000/1000),
CostOutput: NewMoneyFromFloat(CurrencyUSD, 0.06000/1000),
},
{
Provider: "openai",
Model: "gpt-4-32k",
CostInput: NewMoneyFromFloat(CurrencyUSD, 0.06000/1000),
CostOutput: NewMoneyFromFloat(CurrencyUSD, 0.12000/1000),
},
{
Provider: "openai",
Model: "gpt-4",
Releases: []string{"0125", "0125-preview", "1106-preview", "vision-preview"},
CostInput: NewMoneyFromFloat(CurrencyUSD, 0.01000/1000),
CostOutput: NewMoneyFromFloat(CurrencyUSD, 0.03000/1000),
},
{
Provider: "openai",
Model: "gpt-3.5-turbo",
CostInput: NewMoneyFromFloat(CurrencyUSD, 0.00050/1000),
CostOutput: NewMoneyFromFloat(CurrencyUSD, 0.00150/1000),
},
{
Provider: "openai",
Model: "gpt-3.5-turbo",
Releases: []string{"0125"},
CostInput: NewMoneyFromFloat(CurrencyUSD, 0.00050/1000),
CostOutput: NewMoneyFromFloat(CurrencyUSD, 0.00150/1000),
},
{
Provider: "openai",
Model: "gpt-3.5-turbo-instruct",
CostInput: NewMoneyFromFloat(CurrencyUSD, 0.00150/1000),
CostOutput: NewMoneyFromFloat(CurrencyUSD, 0.00200/1000),
},
{
Provider: "openai",
Model: "gpt-3.5-turbo",
Releases: []string{"1106"},
CostInput: NewMoneyFromFloat(CurrencyUSD, 0.00100/1000),
CostOutput: NewMoneyFromFloat(CurrencyUSD, 0.00200/1000),
},
{
Provider: "openai",
Model: "gpt-3.5-turbo",
Releases: []string{"0613"},
CostInput: NewMoneyFromFloat(CurrencyUSD, 0.00150/1000),
CostOutput: NewMoneyFromFloat(CurrencyUSD, 0.00200/1000),
},
{
Provider: "openai",
Model: "gpt-3.5-turbo",
Releases: []string{"16k-0613"},
CostInput: NewMoneyFromFloat(CurrencyUSD, 0.00300/1000),
CostOutput: NewMoneyFromFloat(CurrencyUSD, 0.00400/1000),
},
{
Provider: "openai",
Model: "gpt-3.5-turbo",
Releases: []string{"0301"},
CostInput: NewMoneyFromFloat(CurrencyUSD, 0.00150/1000),
CostOutput: NewMoneyFromFloat(CurrencyUSD, 0.00200/1000),
},
}
// Models is a list of available models with cost
var Models = OpenAI