Skip to content

Commit

Permalink
v2.20.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Dooy committed Sep 4, 2024
1 parent dc00e09 commit 78b3d68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/api/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ export const subGPT= async (data:any, chat:Chat.Chat )=>{
export const isDallImageModel =(model:string|undefined)=>{
if(!model) return false;
if( model.indexOf('flux')>-1 ) return true;
if( model.indexOf('ideogram')>-1 ) return true;
return ['dall-e-2' ,'dall-e-3','ideogram' ].indexOf(model)>-1

}
Expand Down
2 changes: 1 addition & 1 deletion src/views/mj/aiIdeoInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const createImg= async ()=>{
let data:any ={
image_request:f.value,
file:fsFile.value,
model:'ideogram',
model:'ideogram_'+f.value.model.toLocaleLowerCase(),
prompt: f.value.prompt,
// fileBase64:st.value.image_url
}
Expand Down

0 comments on commit 78b3d68

Please sign in to comment.