MCPcopy Index your code
hub / github.com/admineral/OpenAI-Assistant-API-Chat / createChatThread

Function createChatThread

app/modules/assistantModules.ts:98–103  ·  view source on GitHub ↗
(inputMessage: string)

Source from the content-addressed store, hash-verified

96* @returns {Promise<string>} - The ID of the created thread.
97*/
98export const createChatThread = async (inputMessage: string): Promise<string> => {
99 console.log('Creating chat thread...');
100 const threadData: ThreadDataResponse = await createThread(inputMessage);
101 console.log('Chat thread created successfully. Thread ID:', threadData.threadId);
102 return threadData.threadId;
103};
104
105
106

Callers 2

startAssistantMethod · 0.90
startAssistantWithIdMethod · 0.90

Calls 1

createThreadFunction · 0.90

Tested by

no test coverage detected