Skip to content

Commit

Permalink
add flux-1 to choices and use it as default
Browse files Browse the repository at this point in the history
  • Loading branch information
artifishvr committed Nov 14, 2024
1 parent 0d075c4 commit 82a9b77
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/commands/imagine.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ export default {
.setName("model")
.setDescription("Enter a description of what you're generating.")
.setChoices([
{
name: "black-forest-labs/flux-1-schnell",
value: "@cf/black-forest-labs/flux-1-schnell",
},
{
name: "lykon/dreamshaper-8-lcm",
value: "@cf/lykon/dreamshaper-8-lcm",
Expand Down
4 changes: 2 additions & 2 deletions src/util/models/interactions.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export class InteractionResponse {
const callToModel = await this.workersAI
.callModel(
{
model: "@cf/lykon/dreamshaper-8-lcm",
model: "@cf/black-forest-labs/flux-1-schnell",
input: {
prompt: data,
},
Expand Down Expand Up @@ -376,7 +376,7 @@ export class InteractionMessageEvent {
content: this.response.formatAssistantMessage(`\n${genData.trim()}`, "imagine"),
contextId: this.message?.id,
respondingTo: this.message?.id,
model: "@cf/lykon/dreamshaper-8-lcm",
model: "@cf/black-forest-labs/flux-1-schnell",
},
true,
)
Expand Down

0 comments on commit 82a9b77

Please sign in to comment.