Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions packages/api-client/src/services/messaging.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,10 @@ export class MessagingService extends BaseApiClient {
/**
* Generate channel title
*/
async generateChannelTitle(channelId: UUID): Promise<{ title: string }> {
async generateChannelTitle(channelId: UUID, agentId: UUID): Promise<{ title: string }> {
return this.post<{ title: string }>(
`/api/messaging/central-channels/${channelId}/generate-title`
`/api/messaging/central-channels/${channelId}/generate-title`,
{ agentId }
);
}

Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/components/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ export default function Chat({
}

const elizaClient = createElizaClient();
const data = await elizaClient.messaging.generateChannelTitle(finalChannelIdForHooks);
const data = await elizaClient.messaging.generateChannelTitle(finalChannelIdForHooks, contextId);

const title = data?.title;
const participants = await elizaClient.messaging.getChannelParticipants(
Expand Down
Loading