Uses of Class
com.composum.ai.backend.base.service.chat.GPTFinishReason
-
Packages that use GPTFinishReason Package Description com.composum.ai.backend.base.service.chat com.composum.ai.backend.base.service.chat.impl.chatmodel com.composum.ai.backend.slingbase -
-
Uses of GPTFinishReason in com.composum.ai.backend.base.service.chat
Methods in com.composum.ai.backend.base.service.chat that return GPTFinishReason Modifier and Type Method Description static GPTFinishReason
GPTFinishReason. fromChatGPT(String chatGptRepresentation)
GPTFinishReason
GPTCompletionCallback.GPTCompletionCollector. getFinishReason()
static GPTFinishReason
GPTFinishReason. valueOf(String name)
Returns the enum constant of this type with the specified name.static GPTFinishReason[]
GPTFinishReason. values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods in com.composum.ai.backend.base.service.chat with parameters of type GPTFinishReason Modifier and Type Method Description void
GPTCompletionCallback.GPTCompletionCallbackWrapper. onFinish(GPTFinishReason finishReason)
void
GPTCompletionCallback.GPTCompletionCollector. onFinish(GPTFinishReason finishReason)
void
GPTCompletionCallback. onFinish(GPTFinishReason finishReason)
This is called when the response is complete to specify the reason (e.g. -
Uses of GPTFinishReason in com.composum.ai.backend.base.service.chat.impl.chatmodel
Methods in com.composum.ai.backend.base.service.chat.impl.chatmodel that return GPTFinishReason Modifier and Type Method Description static GPTFinishReason
ChatCompletionResponse.FinishReason. toGPTFinishReason(ChatCompletionResponse.FinishReason finishReason)
-
Uses of GPTFinishReason in com.composum.ai.backend.slingbase
Methods in com.composum.ai.backend.slingbase with parameters of type GPTFinishReason Modifier and Type Method Description void
EventStream. onFinish(GPTFinishReason finishReason)
Successfull conclusion; puts event 'finished' into the stream with data JSON like this: {"success":true,"data":{"result":{"finishreason":"STOP"}}}
-