generate_text
Generate text using AI models like OpenAI or Mistral by providing a prompt, customizing behavior with system instructions, and enabling optional JSON responses or privacy settings.
Instructions
使用Pollinations.ai生成文本
Input Schema
Name | Required | Description | Default |
---|---|---|---|
json | No | 是否返回JSON格式的响应 | |
model | No | 要使用的模型(如openai、mistral等) | openai |
private | No | 设置为true可使响应私有 | |
prompt | Yes | 文本提示词 | |
seed | No | 随机种子值(用于生成一致的结果) | |
system | No | 系统提示词(设置AI行为) |
Input Schema (JSON Schema)
{
"properties": {
"json": {
"default": false,
"description": "是否返回JSON格式的响应",
"type": "boolean"
},
"model": {
"default": "openai",
"description": "要使用的模型(如openai、mistral等)",
"type": "string"
},
"private": {
"default": false,
"description": "设置为true可使响应私有",
"type": "boolean"
},
"prompt": {
"description": "文本提示词",
"type": "string"
},
"seed": {
"description": "随机种子值(用于生成一致的结果)",
"type": "number"
},
"system": {
"description": "系统提示词(设置AI行为)",
"type": "string"
}
},
"required": [
"prompt"
],
"type": "object"
}