- All Implemented Interfaces:
LanguageModel
see details here: https://cloud.baidu.com/doc/WENXINWORKSHOP/s/Nlks5zkzu
-
Nested Class Summary
Nested Classes
-
Constructor Summary
Constructors
QianfanLanguageModel(String baseUrl,
String apiKey,
String secretKey,
Double temperature,
Integer maxRetries,
Integer topK,
Double topP,
String modelName,
String endpoint,
Double penaltyScore,
Boolean logRequests,
Boolean logResponses,
Proxy proxy)
-
Method Summary
Generate a response to the given prompt.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
QianfanLanguageModel
public QianfanLanguageModel(String baseUrl,
String apiKey,
String secretKey,
Double temperature,
Integer maxRetries,
Integer topK,
Double topP,
String modelName,
String endpoint,
Double penaltyScore,
Boolean logRequests,
Boolean logResponses,
Proxy proxy)
-
Method Details
-
generate
Generate a response to the given prompt.
- Specified by:
generate
in interface LanguageModel
- Parameters:
prompt
- the prompt.
- Returns:
- the response.
-