Skip to content

Commit

Permalink
0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
haouarihk authored Apr 16, 2024
1 parent 1bc185f commit 437ada7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"packageId": "dalle",
"name": "OpenAI Dalle Package",
"version": "0.0.9",
"version": "0.1.0",
"minTextGeneratorVersion": "0.7.0",
"description": "The package contains some interessting Dalle-2/Dalle-3 prompt templates",
"author": "Noureddine Haouari",
Expand Down
2 changes: 1 addition & 1 deletion prompts/getPhoto.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ tags:
- photo
- dalle-3
version: 0.0.1
sanatization_response: "// catch error\rif (res.status >= 300) {\r const err = data?.error?.message || JSON.stringify(data);\r throw err;\r}\r\r// get choices\rconst choices = data.data.map(c=> ({ type: \"image_url\", image_url: c.url}));\r\r// the return object should be in the format of \r// { content: string }[] \r// if there's only one response, put it in the array of choices.\rreturn choices;"
sanatization_response: "\r// catch error \rif (res.status >= 300) { \r const err = data?.error?.message || JSON.stringify(data); \r throw err; \r} \r\r// get choices\rtry{\rconst choices = data.data.map(c=> ({ type: \"image_url\", image_url: c.url})); \r // the return object should be in the format of // { content: string }[] \r // if there's only one response, put it in the array of choices. return choices;\r} catch{\r const err = data?.error?.message || JSON.stringify(data); \r throw err;\r}"
provider: custom
endpoint: https://api.openai.com/v1/images/generations
body: '{n: 1, size: "1024x1024", prompt: "{{escp prompt}}", model: "dall-e-3"}'
Expand Down
2 changes: 1 addition & 1 deletion prompts/getPhoto2.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ tags:
- photo
- dalle-2
version: 0.0.1
sanatization_response: "// catch error\rif (res.status >= 300) {\r const err = data?.error?.message || JSON.stringify(data);\r throw err;\r}\r\r// get choices\rconst choices = data.data.map(c=> ({ type: \"image_url\", image_url: c.url}));\r\r// the return object should be in the format of \r// { content: string }[] \r// if there's only one response, put it in the array of choices.\rreturn choices;"
sanatization_response: "\r// catch error \rif (res.status >= 300) { \r const err = data?.error?.message || JSON.stringify(data); \r throw err; \r} \r\r// get choices\rtry{\rconst choices = data.data.map(c=> ({ type: \"image_url\", image_url: c.url})); \r // the return object should be in the format of // { content: string }[] \r // if there's only one response, put it in the array of choices. return choices;\r} catch{\r const err = data?.error?.message || JSON.stringify(data); \r throw err;\r}"
provider: custom
endpoint: https://api.openai.com/v1/images/generations
body: '{n: 1, size: "1024x1024", prompt: "{{escp prompt}}", model: "dall-e-2"}'
Expand Down
2 changes: 1 addition & 1 deletion prompts/getPhotos.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ tags:
- photo
- dalle-2
version: 0.0.1
sanatization_response: "// catch error\rif (res.status >= 300) {\r const err = data?.error?.message || JSON.stringify(data);\r throw err;\r}\r\r// get choices\rconst choices = data.data.map(c=> ({ type: \"image_url\", image_url: c.url}));\r\r// the return object should be in the format of \r// { content: string }[] \r// if there's only one response, put it in the array of choices.\rreturn choices;"
sanatization_response: "\r// catch error \rif (res.status >= 300) { \r const err = data?.error?.message || JSON.stringify(data); \r throw err; \r} \r\r// get choices\rtry{\rconst choices = data.data.map(c=> ({ type: \"image_url\", image_url: c.url})); \r // the return object should be in the format of // { content: string }[] \r // if there's only one response, put it in the array of choices. return choices;\r} catch{\r const err = data?.error?.message || JSON.stringify(data); \r throw err;\r}"
provider: custom
endpoint: https://api.openai.com/v1/images/generations
body: '{n: 4, size: "1024x1024", prompt: "{{escp prompt}}", model: "dall-e-2"}'
Expand Down

0 comments on commit 437ada7

Please sign in to comment.