protected static class BaiDuAIParser.TextParser extends BaiDuAIParser.Parser
Modifier and Type | Field and Description |
---|---|
protected String |
systemPrompt
系统提示词
|
Modifier | Constructor and Description |
---|---|
protected |
TextParser() |
Modifier and Type | Method and Description |
---|---|
protected List<BaiDuAIParser.Message> |
createMessages(String prompt,
String text)
创建消息
|
AIParseInfo |
parse(okhttp3.OkHttpClient client,
String ak,
String sk,
String prompt,
String text)
解析
|
void |
setModel(String model)
设置模型
|
getAccessToken, parseInfo
protected String systemPrompt
public void setModel(String model)
model
- 模型public AIParseInfo parse(okhttp3.OkHttpClient client, String ak, String sk, String prompt, String text)
client
- http客户端ak
- api密钥sk
- 密钥prompt
- 提示词text
- 文本protected List<BaiDuAIParser.Message> createMessages(String prompt, String text)
prompt
- 提示词text
- 文本Copyright © 2025. All rights reserved.