Skip to content

Commit e96d0cb

Browse files
committed
change stable diffusion models
1 parent 608a372 commit e96d0cb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/worker/src/worker.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,11 @@ export default {
160160
.on('photo', async (bot: TelegramExecutionContext) => {
161161
switch (bot.update_type) {
162162
case 'message': {
163+
await bot.sendTyping();
163164
const prompt = bot.update.message?.text?.toString() ?? '';
164165
let photo: AiTextToImageOutput;
165166
try {
166-
photo = await env.AI.run('@cf/lykon/dreamshaper-8-lcm', { prompt });
167+
photo = await env.AI.run('@cf/stabilityai/stable-diffusion-xl-base-1.0', { prompt });
167168
} catch (e) {
168169
console.log(e);
169170
await bot.reply(`Error: ${e as string}`);
@@ -184,7 +185,7 @@ export default {
184185
const prompt = bot.update.inline_query?.query.toString().split(' ').slice(1).join(' ') ?? '';
185186
let photo: AiTextToImageOutput;
186187
try {
187-
photo = await env.AI.run('@cf/lykon/dreamshaper-8-lcm', { prompt });
188+
photo = await env.AI.run('@cf/stabilityai/stable-diffusion-xl-base-1.0', { prompt });
188189
} catch (e) {
189190
console.log(e);
190191
await bot.reply(`Error: ${e as string}`);

0 commit comments

Comments
 (0)