MCPcopy Index your code
hub / github.com/coder/coder / makeMsg

Function makeMsg

site/src/api/queries/chats.test.ts:980–986  ·  view source on GitHub ↗
(chatId: string, id: number)

Source from the content-addressed store, hash-verified

978 };
979
980 const makeMsg = (chatId: string, id: number): TypesGen.ChatMessage => ({
981 id,
982 chat_id: chatId,
983 created_at: `2025-01-01T00:00:${String(id).padStart(2, "0")}Z`,
984 role: "user" as const,
985 content: [{ type: "text" as const, text: `msg ${id}` }],
986 });
987
988 const makeQueuedMessage = (
989 chatId: string,

Calls 1

StringFunction · 0.50

Tested by

no test coverage detected