(inputMessage: string)
| 96 | * @returns {Promise<string>} - The ID of the created thread. |
| 97 | */ |
| 98 | export 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 |
no test coverage detected