Package dev.langchain4j.model.qianfan
Class QianfanStreamingLanguageModel
java.lang.Object
dev.langchain4j.model.qianfan.QianfanStreamingLanguageModel
- All Implemented Interfaces:
StreamingLanguageModel
see details here: https://cloud.baidu.com/doc/WENXINWORKSHOP/s/Nlks5zkzu
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
void
generate
(String prompt, StreamingResponseHandler<String> handler) Generates a response from the model based on a prompt.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.langchain4j.model.language.StreamingLanguageModel
generate
-
Constructor Details
-
QianfanStreamingLanguageModel
-
-
Method Details
-
generate
Description copied from interface:StreamingLanguageModel
Generates a response from the model based on a prompt.- Specified by:
generate
in interfaceStreamingLanguageModel
- Parameters:
prompt
- The prompt.handler
- The handler for streaming the response.
-
builder
-