@@ -68,9 +68,9 @@ const sendTelegramMessage = async (bot: Telegraf, chatId: string, message: strin
68
68
bot . telegram . sendMessage ( chatId , normalize ( message ) , { parse_mode : "MarkdownV2" , ...options } ) ;
69
69
70
70
/**
71
- * Waits for an OpenAI thread to complete.
71
+ * Waits for an AI provider thread to complete.
72
72
*
73
- * @param {OpenAI } openai - The OpenAI client instance
73
+ * @param {OpenAI } openai - The AI provider client instance
74
74
* @param {string } threadId - The ID of the thread to wait for
75
75
* @param {string } runId - The ID of the run to wait for
76
76
* @returns {Promise<import("openai").ThreadRun> } The completed thread run
@@ -275,9 +275,9 @@ export default {
275
275
} ,
276
276
277
277
/**
278
- * Process an email using OpenAI 's chat completion API.
278
+ * Process an email using AI provider 's chat completion API.
279
279
*
280
- * Given an email data, it will call OpenAI 's chat completion API with the email data and the configured system/user prompts.
280
+ * Given an email data, it will call AI provider 's chat completion API with the email data and the configured system/user prompts.
281
281
* The response will be parsed as JSON and returned.
282
282
* If the response is not a transaction email, `false` will be returned.
283
283
* If the response is a transaction email, the transaction details will be returned as an object.
@@ -313,7 +313,7 @@ export default {
313
313
} ,
314
314
315
315
/**
316
- * Store a transaction in OpenAI 's vector store.
316
+ * Store a transaction in AI provider 's vector store.
317
317
* @param {false | { result: string, datetime: string, message: string, amount: number, currency: string, bank_name: string, bank_icon: string } } details - The transaction details
318
318
* @param {Environment } env - The environment variables
319
319
* @returns {Promise<void> }
0 commit comments