Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0cfa9bc

Browse files
Fix confusing comments, and set deprecation level to error
1 parent c3d8955 commit 0cfa9bc

File tree

1 file changed

+11
-4
lines changed
  • src/main/kotlin/com/cjcrafter/openai

1 file changed

+11
-4
lines changed

‎src/main/kotlin/com/cjcrafter/openai/Models.kt

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ object Models {
2626
*/
2727
object Chat {
2828

29+
/////////////////////////////////////////////////////
30+
// GPT 4.0 //
31+
/////////////////////////////////////////////////////
32+
2933
/**
3034
* `gpt-4` Turbo. Has a context window of 128,000 tokens with training
3135
* data up to April 2023. This model has improved instruction following,
@@ -166,6 +170,10 @@ object Models {
166170
*/
167171
object Completion {
168172

173+
/////////////////////////////////////////////////////
174+
// GPT 3.5 //
175+
/////////////////////////////////////////////////////
176+
169177
/**
170178
* Similar to `text-davinci-003` but compatible with the legacy
171179
* completions endpoint.
@@ -181,7 +189,7 @@ object Models {
181189
@Deprecated(
182190
message = "This model will be removed on January 4th 2024",
183191
replaceWith = ReplaceWith("GPT_3_5_TURBO_INSTRUCT"),
184-
level = DeprecationLevel.WARNING,
192+
level = DeprecationLevel.ERROR,
185193
)
186194
const val TEXT_DAVINCI_003 = "text-davinci-003"
187195

@@ -194,7 +202,7 @@ object Models {
194202
@Deprecated(
195203
message = "This model will be removed on January 4th 2024",
196204
replaceWith = ReplaceWith("GPT_3_5_TURBO_INSTRUCT"),
197-
level = DeprecationLevel.WARNING,
205+
level = DeprecationLevel.ERROR,
198206
)
199207
const val TEXT_DAVINCI_002 = "text-davinci-002"
200208

@@ -206,13 +214,12 @@ object Models {
206214
@Deprecated(
207215
message = "This model will be removed on January 4th 2024",
208216
replaceWith = ReplaceWith("GPT_3_5_TURBO_INSTRUCT"),
209-
level = DeprecationLevel.WARNING,
217+
level = DeprecationLevel.ERROR,
210218
)
211219
const val CODE_DAVINCI_002 = "code-davinci-002"
212220

213221
/////////////////////////////////////////////////////
214222
// GPT 3.0 //
215-
// Technically, the models above are part of 3.5 //
216223
/////////////////////////////////////////////////////
217224

218225
/**

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /