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 GPTFinishReasonGPTFinishReason. fromChatGPT(String chatGptRepresentation)GPTFinishReasonGPTCompletionCallback.GPTCompletionCollector. getFinishReason()static GPTFinishReasonGPTFinishReason. 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 voidGPTCompletionCallback.GPTCompletionCallbackWrapper. onFinish(GPTFinishReason finishReason)voidGPTCompletionCallback.GPTCompletionCollector. onFinish(GPTFinishReason finishReason)voidGPTCompletionCallback. 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 GPTFinishReasonChatCompletionResponse.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 voidEventStream. onFinish(GPTFinishReason finishReason)Successfull conclusion; puts event 'finished' into the stream with data JSON like this: {"success":true,"data":{"result":{"finishreason":"STOP"}}}
-