Skip to content

Commit

Permalink
refactor: Update listAllAssistants return type to Promise<Array<Assis…
Browse files Browse the repository at this point in the history
…tant>>
  • Loading branch information
danny-avila committed Aug 31, 2024
1 parent 5c584dc commit 68f477c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/server/controllers/assistants/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const _listAssistants = async ({ req, res, version, query }) => {
* @param {object} params.res - The response object, used for initializing the client.
* @param {string} params.version - The API version to use.
* @param {Omit<AssistantListParams, 'endpoint'>} params.query - The query parameters to list assistants (e.g., limit, order).
* @returns {Promise<Array<Assistant & AssistantDocument>>} A promise that resolves to the response from the `openai.beta.assistants.list` method call.
* @returns {Promise<Array<Assistant>>} A promise that resolves to the response from the `openai.beta.assistants.list` method call.
*/
const listAllAssistants = async ({ req, res, version, query }) => {
/** @type {{ openai: OpenAIClient }} */
Expand Down

0 comments on commit 68f477c

Please sign in to comment.