Package dev.langchain4j.model.qianfan
Class InternalQianfanHelper
java.lang.Object
dev.langchain4j.model.qianfan.InternalQianfanHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AiMessage
aiMessageFrom
(ChatCompletionResponse response) static FinishReason
finishReasonFrom
(String finishReason) toFunctions
(Collection<ToolSpecification> toolSpecifications) toOpenAiMessages
(List<ChatMessage> messages) static Message
toQianfanMessage
(ChatMessage message)
-
Constructor Details
-
InternalQianfanHelper
public InternalQianfanHelper()
-
-
Method Details
-
toFunctions
-
toQianfanMessage
-
finishReasonFrom
-
aiMessageFrom
-
toOpenAiMessages
-