fix: playground view code

This commit is contained in:
jialin
2024-11-29 15:26:39 +08:00
parent 435161854c
commit cd1d3005e9
15 changed files with 243 additions and 88 deletions
+15
View File
@@ -119,6 +119,21 @@ export const OpenAIViewCode = {
api: 'images/generations',
clientType: 'images.generate',
logcommand: 'data[0].b64_json'
},
imageAdvanced: {
api: '/v1/images/generations',
clientType: 'images.generate',
logcommand: {
python: 'json().data[0].b64_json',
node: 'data[0].b64_json'
}
},
rerank: {
api: '/v1/rerank',
logcommand: {
python: 'json()',
node: 'data'
}
}
};
+39
View File
@@ -0,0 +1,39 @@
export default [
{
dataUrl:
'https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png',
height: 'auto',
width: 'auto',
uid: 0,
span: 12,
loading: false,
progress: 60
},
{
dataUrl:
'https://gw.alipayobjects.com/zos/antfincdn/LlvErxo8H9/photo-1503185912284-5271ff81b9a8.webp',
height: 'auto',
width: 'auto',
uid: 1,
span: 12,
progress: 15
},
{
dataUrl:
'https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png',
height: 'auto',
width: 'auto',
uid: 3,
span: 12,
progress: 10
},
{
dataUrl:
'https://gw.alipayobjects.com/zos/antfincdn/LlvErxo8H9/photo-1503185912284-5271ff81b9a8.webp',
height: 'auto',
width: 'auto',
uid: 4,
span: 12,
progress: 15
}
];