Skip to content

Commit

Permalink
fix: 更新 Pollinations 插件的响应头为 application/json
Browse files Browse the repository at this point in the history
  • Loading branch information
TBXark committed Nov 28, 2024
1 parent b014bf2 commit 235754d
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions plugins/pollinations.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
{
"url": "https://image.pollinations.ai/prompt/{{DATA}}",
"method": "GET",
"headers": {
"accept": "application/dns-json"
},
"input": {
"type": "text",
"required": true
},
"query": {
"width": "{{ENV.POLLINATIONS_IMAGE_WIDTH}}",
"height": "{{ENV.POLLINATIONS_IMAGE_HEIGHT}}",
"model": "{{ENV.POLLINATIONS_MODEL}}",
"nologo": "{{ENV.POLLINATIONS_NOLOGO}}",
"private": "{{ENV.POLLINATIONS_PRIVATE}}",
"enhance": "{{ENV.POLLINATIONS_ENHANCE}}"
},
"response": {
"content": {
"input_type": "blob",
"output_type": "image"
"url": "https://image.pollinations.ai/prompt/{{DATA}}",
"method": "GET",
"headers": {
"accept": "application/json"
},
"error": {
"input_type": "text",
"output_type": "text",
"output": "Error: {{.}}"
"input": {
"type": "text",
"required": true
},
"query": {
"width": "{{ENV.POLLINATIONS_IMAGE_WIDTH}}",
"height": "{{ENV.POLLINATIONS_IMAGE_HEIGHT}}",
"model": "{{ENV.POLLINATIONS_MODEL}}",
"nologo": "{{ENV.POLLINATIONS_NOLOGO}}",
"private": "{{ENV.POLLINATIONS_PRIVATE}}",
"enhance": "{{ENV.POLLINATIONS_ENHANCE}}"
},
"response": {
"content": {
"input_type": "blob",
"output_type": "image"
},
"error": {
"input_type": "text",
"output_type": "text",
"output": "Error: {{.}}"
}
}
}
}

0 comments on commit 235754d

Please sign in to comment.