-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmodels.go
228 lines (222 loc) · 6.43 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
// Code generated by groq-modeler DO NOT EDIT.
//
// Created at: 2024-12-17 10:47:56
//
// groq-modeler Version 1.1.2
package groq
type (
// Model is a ai model accessible through the groq api.
Model string
// ChatModel is the type for chat models present on the groq api.
ChatModel Model
// ModerationModel is the type for moderation models present on the groq api.
ModerationModel Model
// AudioModel is the type for audio models present on the groq api.
AudioModel Model
)
var (
// ModelGemma29BIt is an AI text chat model.
//
// It is created/provided by Google.
//
// It has 8192 context window.
//
// It can be used with the following client methods:
// - ChatCompletion
// - ChatCompletionStream
// - ChatCompletionJSON
ModelGemma29BIt ChatModel = "gemma2-9b-it"
// ModelGemma7BIt is an AI text chat model.
//
// It is created/provided by Google.
//
// It has 8192 context window.
//
// It can be used with the following client methods:
// - ChatCompletion
// - ChatCompletionStream
// - ChatCompletionJSON
ModelGemma7BIt ChatModel = "gemma-7b-it"
// ModelLlama3170BVersatile is an AI text chat model.
//
// It is created/provided by Meta.
//
// It has 32768 context window.
//
// It can be used with the following client methods:
// - ChatCompletion
// - ChatCompletionStream
// - ChatCompletionJSON
ModelLlama3170BVersatile ChatModel = "llama-3.1-70b-versatile"
// ModelLlama318BInstant is an AI text chat model.
//
// It is created/provided by Meta.
//
// It has 131072 context window.
//
// It can be used with the following client methods:
// - ChatCompletion
// - ChatCompletionStream
// - ChatCompletionJSON
ModelLlama318BInstant ChatModel = "llama-3.1-8b-instant"
// ModelLlama3211BVisionPreview is an AI text chat model.
//
// It is created/provided by Meta.
//
// It has 8192 context window.
//
// It can be used with the following client methods:
// - ChatCompletion
// - ChatCompletionStream
// - ChatCompletionJSON
ModelLlama3211BVisionPreview ChatModel = "llama-3.2-11b-vision-preview"
// ModelLlama321BPreview is an AI text chat model.
//
// It is created/provided by Meta.
//
// It has 8192 context window.
//
// It can be used with the following client methods:
// - ChatCompletion
// - ChatCompletionStream
// - ChatCompletionJSON
ModelLlama321BPreview ChatModel = "llama-3.2-1b-preview"
// ModelLlama323BPreview is an AI text chat model.
//
// It is created/provided by Meta.
//
// It has 8192 context window.
//
// It can be used with the following client methods:
// - ChatCompletion
// - ChatCompletionStream
// - ChatCompletionJSON
ModelLlama323BPreview ChatModel = "llama-3.2-3b-preview"
// ModelLlama3290BVisionPreview is an AI text chat model.
//
// It is created/provided by Meta.
//
// It has 8192 context window.
//
// It can be used with the following client methods:
// - ChatCompletion
// - ChatCompletionStream
// - ChatCompletionJSON
ModelLlama3290BVisionPreview ChatModel = "llama-3.2-90b-vision-preview"
// ModelLlama3370BSpecdec is an AI text chat model.
//
// It is created/provided by Meta.
//
// It has 8192 context window.
//
// It can be used with the following client methods:
// - ChatCompletion
// - ChatCompletionStream
// - ChatCompletionJSON
ModelLlama3370BSpecdec ChatModel = "llama-3.3-70b-specdec"
// ModelLlama3370BVersatile is an AI text chat model.
//
// It is created/provided by Meta.
//
// It has 32768 context window.
//
// It can be used with the following client methods:
// - ChatCompletion
// - ChatCompletionStream
// - ChatCompletionJSON
ModelLlama3370BVersatile ChatModel = "llama-3.3-70b-versatile"
// ModelLlama370B8192 is an AI text chat model.
//
// It is created/provided by Meta.
//
// It has 8192 context window.
//
// It can be used with the following client methods:
// - ChatCompletion
// - ChatCompletionStream
// - ChatCompletionJSON
ModelLlama370B8192 ChatModel = "llama3-70b-8192"
// ModelLlama38B8192 is an AI text chat model.
//
// It is created/provided by Meta.
//
// It has 8192 context window.
//
// It can be used with the following client methods:
// - ChatCompletion
// - ChatCompletionStream
// - ChatCompletionJSON
ModelLlama38B8192 ChatModel = "llama3-8b-8192"
// ModelLlama3Groq70B8192ToolUsePreview is an AI text chat model.
//
// It is created/provided by Groq.
//
// It has 8192 context window.
//
// It can be used with the following client methods:
// - ChatCompletion
// - ChatCompletionStream
// - ChatCompletionJSON
ModelLlama3Groq70B8192ToolUsePreview ChatModel = "llama3-groq-70b-8192-tool-use-preview"
// ModelLlama3Groq8B8192ToolUsePreview is an AI text chat model.
//
// It is created/provided by Groq.
//
// It has 8192 context window.
//
// It can be used with the following client methods:
// - ChatCompletion
// - ChatCompletionStream
// - ChatCompletionJSON
ModelLlama3Groq8B8192ToolUsePreview ChatModel = "llama3-groq-8b-8192-tool-use-preview"
// ModelMixtral8X7B32768 is an AI text chat model.
//
// It is created/provided by Mistral AI.
//
// It has 32768 context window.
//
// It can be used with the following client methods:
// - ChatCompletion
// - ChatCompletionStream
// - ChatCompletionJSON
ModelMixtral8X7B32768 ChatModel = "mixtral-8x7b-32768"
// ModelDistilWhisperLargeV3En is an AI audio transcription model.
//
// It is created/provided by Hugging Face.
//
// It has 448 context window.
//
// It can be used with the following client methods:
// - CreateTranscription
// - CreateTranslation
ModelDistilWhisperLargeV3En AudioModel = "distil-whisper-large-v3-en"
// ModelWhisperLargeV3 is an AI audio transcription model.
//
// It is created/provided by OpenAI.
//
// It has 448 context window.
//
// It can be used with the following client methods:
// - CreateTranscription
// - CreateTranslation
ModelWhisperLargeV3 AudioModel = "whisper-large-v3"
// ModelWhisperLargeV3Turbo is an AI audio transcription model.
//
// It is created/provided by OpenAI.
//
// It has 448 context window.
//
// It can be used with the following client methods:
// - CreateTranscription
// - CreateTranslation
ModelWhisperLargeV3Turbo AudioModel = "whisper-large-v3-turbo"
// ModelLlamaGuard38B is an AI moderation model.
//
// It is created/provided by Meta.
//
// It has 8192 context window.
//
// It can be used with the following client methods:
// - Moderate
ModelLlamaGuard38B ModerationModel = "llama-guard-3-8b"
)