Skip to content

Commit 2659687

Browse files
committed
fix incorrect enum in FinishReason
1 parent 738f5dd commit 2659687

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/kotlin/com/cjcrafter/openai/chat/FinishReason.kt renamed to src/main/kotlin/com/cjcrafter/openai/FinishReason.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.cjcrafter.openai.chat
1+
package com.cjcrafter.openai
22

33
/**
44
* [FinishReason] wraps the possible reasons that a generation model may stop
@@ -23,9 +23,9 @@ enum class FinishReason {
2323
LENGTH,
2424

2525
/**
26-
* [TEMPERATURE] is a rare occurrence, and only happens when the
27-
* [ChatRequest.temperature] is low enough that it is impossible for the
28-
* model to continue generating text.
26+
* [CONTENT_FILTER] occurs due to a flag from OpenAI's content filters.
27+
* This occurrence is rare, and usually only happens when you blatantly
28+
* misuse/violate OpenAI's terms.
2929
*/
30-
TEMPERATURE
30+
CONTENT_FILTER
3131
}

0 commit comments

Comments
 (0)