mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
fix(channels): align rebase with channel API
This commit is contained in:
@@ -232,7 +232,7 @@ function writeConsumer(
|
||||
);
|
||||
writeFileSync(
|
||||
join(consumerDir, "smoke.tsx"),
|
||||
`import { Button, createBot, Message } from "@copilotkit/channels";
|
||||
`import { Button, createChannel, Message } from "@copilotkit/channels";
|
||||
import { slack } from "@copilotkit/channels/slack";
|
||||
import { teams } from "@copilotkit/channels/teams";
|
||||
import { intelligenceAdapter } from "@copilotkit/channels/intelligence";
|
||||
@@ -241,7 +241,7 @@ import { telegram } from "@copilotkit/channels/telegram";
|
||||
import { whatsapp } from "@copilotkit/channels/whatsapp";
|
||||
|
||||
const view = <Message><Button>OK</Button></Message>;
|
||||
void [createBot, slack, teams, intelligenceAdapter, discord, telegram, whatsapp, view];
|
||||
void [createChannel, slack, teams, intelligenceAdapter, discord, telegram, whatsapp, view];
|
||||
`,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user