diff --git a/src/api/schema.d.ts b/src/api/schema.d.ts index c8ad3ff..791cc17 100644 --- a/src/api/schema.d.ts +++ b/src/api/schema.d.ts @@ -5,6 +5,241 @@ export interface paths { + "/v2/text/generation/{id}/feedback": { + /** + * @deprecated + * @description Use `/requests/:id/feedback` + */ + get: { + parameters: { + query: { + version: "2023-11-22"; + }; + path: { + id: string; + }; + }; + responses: { + /** @description Default Response */ + 200: { + content: { + "application/json": { + result: { + id: number; + /** Format: date-time */ + created_at: string; + /** Format: date-time */ + updated_at: string; + comment?: string | null; + categories: string[]; + api_request: string; + /** @enum {string|null} */ + vote?: "up" | "down" | null; + }; + }; + }; + }; + /** @description Server could not understand the request due to invalid syntax. In most cases relates with the schema validation. */ + 400: { + content: { + "application/json": components["schemas"]["BadRequestResponse"]; + }; + }; + /** @description Unauthorized route access. */ + 401: { + content: { + "application/json": components["schemas"]["UnauthorizedResponse"]; + }; + }; + /** @description The server can not find requested resource. */ + 404: { + content: { + "application/json": components["schemas"]["NotFoundResponse"]; + }; + }; + /** @description The user has sent too many requests in a given amount of time ("rate limiting").. */ + 429: { + content: { + "application/json": components["schemas"]["TooManyRequestsResponse"]; + }; + }; + /** @description The server encountered an unexpected condition that prevented it from fulfilling the request. */ + 500: { + content: { + "application/json": components["schemas"]["InternalServerErrorResponse"]; + }; + }; + /** @description The remote server is not ready to handle the request. */ + 503: { + content: { + "application/json": components["schemas"]["UnavailableResponse"]; + }; + }; + }; + }; + /** + * @deprecated + * @description Use `/requests/:id/feedback` + */ + put: { + parameters: { + query: { + version: "2024-02-20"; + }; + path: { + id: string; + }; + }; + requestBody?: { + content: { + "application/json": { + comment?: string; + categories?: ("inaccurate" | "not_relevant" | "offensive_harmful" | "knowledge_gap" | "other_content" | "too_long" | "too_short" | "wrong_tone" | "wrong_format" | "other_style" | "correct_content" | "correct_style")[]; + /** @enum {string} */ + vote?: "up" | "down"; + }; + }; + }; + responses: { + /** @description Default Response */ + 200: { + content: { + "application/json": { + result: { + id: number; + /** Format: date-time */ + created_at: string; + /** Format: date-time */ + updated_at: string; + comment?: string | null; + categories: string[]; + api_request: string; + /** @enum {string|null} */ + vote?: "up" | "down" | null; + }; + }; + }; + }; + /** @description Server could not understand the request due to invalid syntax. In most cases relates with the schema validation. */ + 400: { + content: { + "application/json": components["schemas"]["BadRequestResponse"]; + }; + }; + /** @description Unauthorized route access. */ + 401: { + content: { + "application/json": components["schemas"]["UnauthorizedResponse"]; + }; + }; + /** @description The server can not find requested resource. */ + 404: { + content: { + "application/json": components["schemas"]["NotFoundResponse"]; + }; + }; + /** @description The user has sent too many requests in a given amount of time ("rate limiting").. */ + 429: { + content: { + "application/json": components["schemas"]["TooManyRequestsResponse"]; + }; + }; + /** @description The server encountered an unexpected condition that prevented it from fulfilling the request. */ + 500: { + content: { + "application/json": components["schemas"]["InternalServerErrorResponse"]; + }; + }; + /** @description The remote server is not ready to handle the request. */ + 503: { + content: { + "application/json": components["schemas"]["UnavailableResponse"]; + }; + }; + }; + }; + /** + * @deprecated + * @description Use `/requests/:id/feedback` + */ + post: { + parameters: { + query: { + version: "2024-02-20"; + }; + path: { + id: string; + }; + }; + requestBody?: { + content: { + "application/json": { + comment?: string; + categories?: ("inaccurate" | "not_relevant" | "offensive_harmful" | "knowledge_gap" | "other_content" | "too_long" | "too_short" | "wrong_tone" | "wrong_format" | "other_style" | "correct_content" | "correct_style")[]; + /** @enum {string} */ + vote?: "up" | "down"; + }; + }; + }; + responses: { + /** @description Default Response */ + 200: { + content: { + "application/json": { + result: { + id: number; + /** Format: date-time */ + created_at: string; + /** Format: date-time */ + updated_at: string; + comment?: string | null; + categories: string[]; + api_request: string; + /** @enum {string|null} */ + vote?: "up" | "down" | null; + }; + }; + }; + }; + /** @description Server could not understand the request due to invalid syntax. In most cases relates with the schema validation. */ + 400: { + content: { + "application/json": components["schemas"]["BadRequestResponse"]; + }; + }; + /** @description Unauthorized route access. */ + 401: { + content: { + "application/json": components["schemas"]["UnauthorizedResponse"]; + }; + }; + /** @description The server can not find requested resource. */ + 404: { + content: { + "application/json": components["schemas"]["NotFoundResponse"]; + }; + }; + /** @description The user has sent too many requests in a given amount of time ("rate limiting").. */ + 429: { + content: { + "application/json": components["schemas"]["TooManyRequestsResponse"]; + }; + }; + /** @description The server encountered an unexpected condition that prevented it from fulfilling the request. */ + 500: { + content: { + "application/json": components["schemas"]["InternalServerErrorResponse"]; + }; + }; + /** @description The remote server is not ready to handle the request. */ + 503: { + content: { + "application/json": components["schemas"]["UnavailableResponse"]; + }; + }; + }; + }; + }; "/v2/tuning_types": { get: { parameters: { @@ -374,7 +609,6 @@ export interface paths { * @description The parameter for repetition penalty. 1.00 means no penalty. */ repetition_penalty?: number | null; - additionalProperties?: never; include_stop_sequence?: boolean; /** * Truncate input tokens @@ -695,7 +929,6 @@ export interface paths { * @description The parameter for repetition penalty. 1.00 means no penalty. */ repetition_penalty?: number | null; - additionalProperties?: never; include_stop_sequence?: boolean; /** * Truncate input tokens @@ -1390,6 +1623,8 @@ export interface paths { }) | null; /** Format: date-time */ created_at: string; + /** Format: date-time */ + updated_at?: string; /** @enum {string} */ type: "private" | "public" | "community" | "example"; public?: boolean; @@ -1397,6 +1632,12 @@ export interface paths { metadata?: { [key: string]: unknown; }; + tags?: ({ + id: string; + name: string; + /** @enum {string} */ + type: "language" | "industry" | "model_type"; + })[]; author?: { id?: number; first_name?: string; @@ -1413,6 +1654,8 @@ export interface paths { content: string; file_ids?: string[]; })[]) | null; + folder_id?: string | null; + usage_count: number; }; }; }; @@ -1527,6 +1770,9 @@ export interface paths { }; model_id: string; task_id?: string; + folder_id?: string | null; + industry_id?: string; + language_id?: string; /** @enum {string} */ type?: "private" | "public" | "community"; input?: string; @@ -1604,6 +1850,8 @@ export interface paths { }) | null; /** Format: date-time */ created_at: string; + /** Format: date-time */ + updated_at?: string; /** @enum {string} */ type: "private" | "public" | "community" | "example"; public?: boolean; @@ -1611,6 +1859,12 @@ export interface paths { metadata?: { [key: string]: unknown; }; + tags?: ({ + id: string; + name: string; + /** @enum {string} */ + type: "language" | "industry" | "model_type"; + })[]; author?: { id?: number; first_name?: string; @@ -1627,6 +1881,8 @@ export interface paths { content: string; file_ids?: string[]; })[]) | null; + folder_id?: string | null; + usage_count: number; }; }; }; @@ -1735,6 +1991,8 @@ export interface paths { "application/json": { /** @enum {string} */ type?: "private" | "public" | "community"; + folder_id?: string | null; + name?: string; }; }; }; @@ -1803,6 +2061,8 @@ export interface paths { }) | null; /** Format: date-time */ created_at: string; + /** Format: date-time */ + updated_at?: string; /** @enum {string} */ type: "private" | "public" | "community" | "example"; public?: boolean; @@ -1810,6 +2070,12 @@ export interface paths { metadata?: { [key: string]: unknown; }; + tags?: ({ + id: string; + name: string; + /** @enum {string} */ + type: "language" | "industry" | "model_type"; + })[]; author?: { id?: number; first_name?: string; @@ -1826,6 +2092,8 @@ export interface paths { content: string; file_ids?: string[]; })[]) | null; + folder_id?: string | null; + usage_count: number; }; }; }; @@ -1875,10 +2143,21 @@ export interface paths { query: { limit?: number; offset?: number; + sort_by?: "type" | "model_task" | "updated_at" | "created_at" | "name" | "id" | "model" | "usage_count"; + direction?: "asc" | "desc"; search?: string; task_id?: string | string[]; model_id?: string | string[]; source?: ("user" | "example" | "community") | (("user" | "example" | "community")[]); + model_family_id?: number; + industry_id?: string | string[]; + prompt_language_id?: string | string[]; + model_type_id?: string | string[]; + avg_time_min?: number; + avg_time_max?: number; + context_window_min?: number; + context_window_max?: number; + folder_id?: string | null; version: "2024-01-10"; }; }; @@ -1947,6 +2226,8 @@ export interface paths { }) | null; /** Format: date-time */ created_at: string; + /** Format: date-time */ + updated_at?: string; /** @enum {string} */ type: "private" | "public" | "community" | "example"; public?: boolean; @@ -1954,6 +2235,12 @@ export interface paths { metadata?: { [key: string]: unknown; }; + tags?: ({ + id: string; + name: string; + /** @enum {string} */ + type: "language" | "industry" | "model_type"; + })[]; author?: { id?: number; first_name?: string; @@ -1970,6 +2257,8 @@ export interface paths { content: string; file_ids?: string[]; })[]) | null; + folder_id?: string | null; + usage_count: number; })[]; total_count: number; }; @@ -2076,6 +2365,9 @@ export interface paths { }; model_id: string; task_id?: string; + folder_id?: string | null; + industry_id?: string; + language_id?: string; /** @enum {string} */ type?: "private" | "public" | "community"; input?: string; @@ -2153,6 +2445,8 @@ export interface paths { }) | null; /** Format: date-time */ created_at: string; + /** Format: date-time */ + updated_at?: string; /** @enum {string} */ type: "private" | "public" | "community" | "example"; public?: boolean; @@ -2160,6 +2454,12 @@ export interface paths { metadata?: { [key: string]: unknown; }; + tags?: ({ + id: string; + name: string; + /** @enum {string} */ + type: "language" | "industry" | "model_type"; + })[]; author?: { id?: number; first_name?: string; @@ -2176,6 +2476,8 @@ export interface paths { content: string; file_ids?: string[]; })[]) | null; + folder_id?: string | null; + usage_count: number; }; }; }; @@ -2219,22 +2521,29 @@ export interface paths { }; }; }; - "/v2/tunes/{id}/content/{type}": { + "/v2/folders/{id}": { get: { parameters: { query: { - version: "2023-12-15"; + version: "2023-11-22"; }; path: { id: string; - type: "vectors" | "logs" | "export"; }; }; responses: { /** @description Default Response */ 200: { content: { - "application/octet-stream": Blob; + "application/json": { + result: { + id: string; + name: string; + /** Format: date-time */ + created_at: string; + prompt_ids?: string[]; + }; + }; }; }; /** @description Server could not understand the request due to invalid syntax. In most cases relates with the schema validation. */ @@ -2275,18 +2584,265 @@ export interface paths { }; }; }; - }; - "/v2/files/{id}": { - get: { + put: { parameters: { query: { - version: "2023-12-15"; + version: "2023-11-22"; }; path: { id: string; }; }; - responses: { + requestBody: { + content: { + "application/json": { + name: string; + }; + }; + }; + responses: { + /** @description Default Response */ + 200: { + content: { + "application/json": { + result: { + id: string; + name: string; + /** Format: date-time */ + created_at: string; + prompt_ids?: string[]; + }; + }; + }; + }; + /** @description Server could not understand the request due to invalid syntax. In most cases relates with the schema validation. */ + 400: { + content: { + "application/json": components["schemas"]["BadRequestResponse"]; + }; + }; + /** @description Unauthorized route access. */ + 401: { + content: { + "application/json": components["schemas"]["UnauthorizedResponse"]; + }; + }; + /** @description The server can not find requested resource. */ + 404: { + content: { + "application/json": components["schemas"]["NotFoundResponse"]; + }; + }; + /** @description The user has sent too many requests in a given amount of time ("rate limiting").. */ + 429: { + content: { + "application/json": components["schemas"]["TooManyRequestsResponse"]; + }; + }; + /** @description The server encountered an unexpected condition that prevented it from fulfilling the request. */ + 500: { + content: { + "application/json": components["schemas"]["InternalServerErrorResponse"]; + }; + }; + /** @description The remote server is not ready to handle the request. */ + 503: { + content: { + "application/json": components["schemas"]["UnavailableResponse"]; + }; + }; + }; + }; + delete: { + parameters: { + query: { + version: "2023-11-22"; + }; + path: { + id: string; + }; + }; + responses: { + /** @description Success */ + 204: { + content: never; + }; + /** @description Server could not understand the request due to invalid syntax. In most cases relates with the schema validation. */ + 400: { + content: { + "application/json": components["schemas"]["BadRequestResponse"]; + }; + }; + /** @description Unauthorized route access. */ + 401: { + content: { + "application/json": components["schemas"]["UnauthorizedResponse"]; + }; + }; + /** @description The server can not find requested resource. */ + 404: { + content: { + "application/json": components["schemas"]["NotFoundResponse"]; + }; + }; + /** @description The user has sent too many requests in a given amount of time ("rate limiting").. */ + 429: { + content: { + "application/json": components["schemas"]["TooManyRequestsResponse"]; + }; + }; + /** @description The server encountered an unexpected condition that prevented it from fulfilling the request. */ + 500: { + content: { + "application/json": components["schemas"]["InternalServerErrorResponse"]; + }; + }; + /** @description The remote server is not ready to handle the request. */ + 503: { + content: { + "application/json": components["schemas"]["UnavailableResponse"]; + }; + }; + }; + }; + patch: { + parameters: { + query: { + version: "2024-01-10"; + }; + path: { + id: string; + }; + }; + requestBody?: { + content: { + "application/json": { + position?: number; + }; + }; + }; + responses: { + /** @description Default Response */ + 200: { + content: { + "application/json": { + result: { + id: string; + name: string; + /** Format: date-time */ + created_at: string; + prompt_ids?: string[]; + }; + }; + }; + }; + /** @description Server could not understand the request due to invalid syntax. In most cases relates with the schema validation. */ + 400: { + content: { + "application/json": components["schemas"]["BadRequestResponse"]; + }; + }; + /** @description Unauthorized route access. */ + 401: { + content: { + "application/json": components["schemas"]["UnauthorizedResponse"]; + }; + }; + /** @description The server can not find requested resource. */ + 404: { + content: { + "application/json": components["schemas"]["NotFoundResponse"]; + }; + }; + /** @description The user has sent too many requests in a given amount of time ("rate limiting").. */ + 429: { + content: { + "application/json": components["schemas"]["TooManyRequestsResponse"]; + }; + }; + /** @description The server encountered an unexpected condition that prevented it from fulfilling the request. */ + 500: { + content: { + "application/json": components["schemas"]["InternalServerErrorResponse"]; + }; + }; + /** @description The remote server is not ready to handle the request. */ + 503: { + content: { + "application/json": components["schemas"]["UnavailableResponse"]; + }; + }; + }; + }; + }; + "/v2/tunes/{id}/content/{type}": { + get: { + parameters: { + query: { + version: "2023-12-15"; + }; + path: { + id: string; + type: "vectors" | "logs" | "export"; + }; + }; + responses: { + /** @description Default Response */ + 200: { + content: { + "application/octet-stream": Blob; + }; + }; + /** @description Server could not understand the request due to invalid syntax. In most cases relates with the schema validation. */ + 400: { + content: { + "application/json": components["schemas"]["BadRequestResponse"]; + }; + }; + /** @description Unauthorized route access. */ + 401: { + content: { + "application/json": components["schemas"]["UnauthorizedResponse"]; + }; + }; + /** @description The server can not find requested resource. */ + 404: { + content: { + "application/json": components["schemas"]["NotFoundResponse"]; + }; + }; + /** @description The user has sent too many requests in a given amount of time ("rate limiting").. */ + 429: { + content: { + "application/json": components["schemas"]["TooManyRequestsResponse"]; + }; + }; + /** @description The server encountered an unexpected condition that prevented it from fulfilling the request. */ + 500: { + content: { + "application/json": components["schemas"]["InternalServerErrorResponse"]; + }; + }; + /** @description The remote server is not ready to handle the request. */ + 503: { + content: { + "application/json": components["schemas"]["UnavailableResponse"]; + }; + }; + }; + }; + }; + "/v2/files/{id}": { + get: { + parameters: { + query: { + version: "2023-12-15"; + }; + path: { + id: string; + }; + }; + responses: { /** @description Default Response */ 200: { content: { @@ -3486,8 +4042,7 @@ export interface paths { training_file_ids: string[]; validation_file_ids?: string[] | null; evaluation_file_ids?: string[] | null; - /** @enum {string} */ - tuning_type: "prompt_tuning" | "multitask_prompt_tuning"; + tuning_type: string; parameters?: ({ batch_size?: number | null; num_epochs?: number | null; @@ -3722,221 +4277,8 @@ export interface paths { }; }; }; - "/v2/text/generation/{id}/feedback": { - get: { - parameters: { - query: { - version: "2023-11-22"; - }; - path: { - id: string; - }; - }; - responses: { - /** @description Default Response */ - 200: { - content: { - "application/json": { - result: { - id: number; - /** Format: date-time */ - created_at: string; - /** Format: date-time */ - updated_at: string; - comment?: string | null; - categories: string[]; - api_request: string; - }; - }; - }; - }; - /** @description Server could not understand the request due to invalid syntax. In most cases relates with the schema validation. */ - 400: { - content: { - "application/json": components["schemas"]["BadRequestResponse"]; - }; - }; - /** @description Unauthorized route access. */ - 401: { - content: { - "application/json": components["schemas"]["UnauthorizedResponse"]; - }; - }; - /** @description The server can not find requested resource. */ - 404: { - content: { - "application/json": components["schemas"]["NotFoundResponse"]; - }; - }; - /** @description The user has sent too many requests in a given amount of time ("rate limiting").. */ - 429: { - content: { - "application/json": components["schemas"]["TooManyRequestsResponse"]; - }; - }; - /** @description The server encountered an unexpected condition that prevented it from fulfilling the request. */ - 500: { - content: { - "application/json": components["schemas"]["InternalServerErrorResponse"]; - }; - }; - /** @description The remote server is not ready to handle the request. */ - 503: { - content: { - "application/json": components["schemas"]["UnavailableResponse"]; - }; - }; - }; - }; - put: { - parameters: { - query: { - version: "2023-11-22"; - }; - path: { - id: string; - }; - }; - requestBody?: { - content: { - "application/json": { - comment?: string; - categories?: ("no_problem" | "hap" | "pii" | "social_bias" | "not_honest_or_truthful" | "taboo_topics" | "other")[]; - }; - }; - }; - responses: { - /** @description Default Response */ - 200: { - content: { - "application/json": { - result: { - id: number; - /** Format: date-time */ - created_at: string; - /** Format: date-time */ - updated_at: string; - comment?: string | null; - categories: string[]; - api_request: string; - }; - }; - }; - }; - /** @description Server could not understand the request due to invalid syntax. In most cases relates with the schema validation. */ - 400: { - content: { - "application/json": components["schemas"]["BadRequestResponse"]; - }; - }; - /** @description Unauthorized route access. */ - 401: { - content: { - "application/json": components["schemas"]["UnauthorizedResponse"]; - }; - }; - /** @description The server can not find requested resource. */ - 404: { - content: { - "application/json": components["schemas"]["NotFoundResponse"]; - }; - }; - /** @description The user has sent too many requests in a given amount of time ("rate limiting").. */ - 429: { - content: { - "application/json": components["schemas"]["TooManyRequestsResponse"]; - }; - }; - /** @description The server encountered an unexpected condition that prevented it from fulfilling the request. */ - 500: { - content: { - "application/json": components["schemas"]["InternalServerErrorResponse"]; - }; - }; - /** @description The remote server is not ready to handle the request. */ - 503: { - content: { - "application/json": components["schemas"]["UnavailableResponse"]; - }; - }; - }; - }; - post: { - parameters: { - query: { - version: "2023-11-22"; - }; - path: { - id: string; - }; - }; - requestBody?: { - content: { - "application/json": { - comment?: string; - categories?: ("no_problem" | "hap" | "pii" | "social_bias" | "not_honest_or_truthful" | "taboo_topics" | "other")[]; - }; - }; - }; - responses: { - /** @description Default Response */ - 200: { - content: { - "application/json": { - result: { - id: number; - /** Format: date-time */ - created_at: string; - /** Format: date-time */ - updated_at: string; - comment?: string | null; - categories: string[]; - api_request: string; - }; - }; - }; - }; - /** @description Server could not understand the request due to invalid syntax. In most cases relates with the schema validation. */ - 400: { - content: { - "application/json": components["schemas"]["BadRequestResponse"]; - }; - }; - /** @description Unauthorized route access. */ - 401: { - content: { - "application/json": components["schemas"]["UnauthorizedResponse"]; - }; - }; - /** @description The server can not find requested resource. */ - 404: { - content: { - "application/json": components["schemas"]["NotFoundResponse"]; - }; - }; - /** @description The user has sent too many requests in a given amount of time ("rate limiting").. */ - 429: { - content: { - "application/json": components["schemas"]["TooManyRequestsResponse"]; - }; - }; - /** @description The server encountered an unexpected condition that prevented it from fulfilling the request. */ - 500: { - content: { - "application/json": components["schemas"]["InternalServerErrorResponse"]; - }; - }; - /** @description The remote server is not ready to handle the request. */ - 503: { - content: { - "application/json": components["schemas"]["UnavailableResponse"]; - }; - }; - }; - }; - }; - "/v2/text/generation/output": { - post: { + "/v2/text/generation/output": { + post: { parameters: { query: { version: "2023-11-22"; @@ -4495,35 +4837,27 @@ export interface paths { }; }; }; - "/v2/system_prompts/{id}": { + "/v2/tags": { get: { parameters: { query: { + limit?: number; + offset?: number; + type?: "language" | "industry" | "model_type"; version: "2023-11-22"; }; - path: { - id: number; - }; }; responses: { /** @description Default Response */ 200: { content: { "application/json": { - result: { - id: number; - name: string; - content: string; - /** Format: date-time */ - created_at: string; - /** @enum {string} */ - type: "private" | "system"; - author?: { - id: number; - first_name?: string; - last_name?: string; - }; - }; + results: ({ + id: string; + name: string; + /** @enum {string} */ + type: "language" | "industry" | "model_type"; + })[]; }; }; }; @@ -4539,12 +4873,6 @@ export interface paths { "application/json": components["schemas"]["UnauthorizedResponse"]; }; }; - /** @description The server can not find requested resource. */ - 404: { - content: { - "application/json": components["schemas"]["NotFoundResponse"]; - }; - }; /** @description The user has sent too many requests in a given amount of time ("rate limiting").. */ 429: { content: { @@ -4565,7 +4893,9 @@ export interface paths { }; }; }; - put: { + }; + "/v2/system_prompts/{id}": { + get: { parameters: { query: { version: "2023-11-22"; @@ -4574,14 +4904,6 @@ export interface paths { id: number; }; }; - requestBody: { - content: { - "application/json": { - name: string; - content: string; - }; - }; - }; responses: { /** @description Default Response */ 200: { @@ -4642,7 +4964,7 @@ export interface paths { }; }; }; - delete: { + put: { parameters: { query: { version: "2023-11-22"; @@ -4651,10 +4973,87 @@ export interface paths { id: number; }; }; - responses: { - /** @description Success */ - 204: { - content: never; + requestBody: { + content: { + "application/json": { + name: string; + content: string; + }; + }; + }; + responses: { + /** @description Default Response */ + 200: { + content: { + "application/json": { + result: { + id: number; + name: string; + content: string; + /** Format: date-time */ + created_at: string; + /** @enum {string} */ + type: "private" | "system"; + author?: { + id: number; + first_name?: string; + last_name?: string; + }; + }; + }; + }; + }; + /** @description Server could not understand the request due to invalid syntax. In most cases relates with the schema validation. */ + 400: { + content: { + "application/json": components["schemas"]["BadRequestResponse"]; + }; + }; + /** @description Unauthorized route access. */ + 401: { + content: { + "application/json": components["schemas"]["UnauthorizedResponse"]; + }; + }; + /** @description The server can not find requested resource. */ + 404: { + content: { + "application/json": components["schemas"]["NotFoundResponse"]; + }; + }; + /** @description The user has sent too many requests in a given amount of time ("rate limiting").. */ + 429: { + content: { + "application/json": components["schemas"]["TooManyRequestsResponse"]; + }; + }; + /** @description The server encountered an unexpected condition that prevented it from fulfilling the request. */ + 500: { + content: { + "application/json": components["schemas"]["InternalServerErrorResponse"]; + }; + }; + /** @description The remote server is not ready to handle the request. */ + 503: { + content: { + "application/json": components["schemas"]["UnavailableResponse"]; + }; + }; + }; + }; + delete: { + parameters: { + query: { + version: "2023-11-22"; + }; + path: { + id: number; + }; + }; + responses: { + /** @description Success */ + 204: { + content: never; }; /** @description Server could not understand the request due to invalid syntax. In most cases relates with the schema validation. */ 400: { @@ -4834,8 +5233,8 @@ export interface paths { }; }; }; - "/v2/requests/{id}": { - delete: { + "/v2/requests/{id}/feedback": { + get: { parameters: { query: { version: "2023-11-22"; @@ -4845,9 +5244,24 @@ export interface paths { }; }; responses: { - /** @description Success */ - 204: { - content: never; + /** @description Default Response */ + 200: { + content: { + "application/json": { + result: { + id: number; + /** Format: date-time */ + created_at: string; + /** Format: date-time */ + updated_at: string; + comment?: string | null; + categories: string[]; + api_request: string; + /** @enum {string|null} */ + vote?: "up" | "down" | null; + }; + }; + }; }; /** @description Server could not understand the request due to invalid syntax. In most cases relates with the schema validation. */ 400: { @@ -4887,15 +5301,23 @@ export interface paths { }; }; }; - }; - "/v2/requests/chat/{conversationId}": { - get: { + put: { parameters: { query: { version: "2023-11-22"; }; path: { - conversationId: string; + id: string; + }; + }; + requestBody?: { + content: { + "application/json": { + comment?: string; + categories?: ("inaccurate" | "not_relevant" | "offensive_harmful" | "knowledge_gap" | "other_content" | "too_long" | "too_short" | "wrong_tone" | "wrong_format" | "other_style" | "correct_content" | "correct_style")[]; + /** @enum {string} */ + vote?: "up" | "down"; + }; }; }; responses: { @@ -4903,129 +5325,18 @@ export interface paths { 200: { content: { "application/json": { - results: ({ - id: string; - duration: number; - /** Format: date-time */ - created_at: string; - request: { - model_id?: string; - prompt_template_id?: string | null; - moderations?: { - hap?: boolean | { - input?: boolean; - output?: boolean; - threshold?: number; - send_tokens?: boolean; - }; - stigma?: boolean | { - input?: boolean; - output?: boolean; - threshold?: number; - send_tokens?: boolean; - }; - implicit_hate?: boolean | { - input?: boolean; - output?: boolean; - threshold?: number; - send_tokens?: boolean; - }; - }; - messages?: ({ - /** @enum {string} */ - role: "user" | "system" | "assistant"; - content: string; - file_ids?: string[]; - })[]; - conversation_id?: string | null; - parent_id?: string | null; - prompt_id?: string; - /** @enum {string} */ - trim_method?: "floating_window" | "none"; - use_conversation_parameters?: boolean; - parameters?: ({ - beam_width?: number | null; - /** @enum {string|null} */ - decoding_method?: "greedy" | "sample" | null; - max_new_tokens?: number | null; - min_new_tokens?: number | null; - random_seed?: number | null; - stop_sequences?: string[] | null; - temperature?: number | null; - time_limit?: number | null; - top_k?: number | null; - top_p?: number | null; - typical_p?: number | null; - repetition_penalty?: number | null; - truncate_input_tokens?: number | null; - include_stop_sequence?: boolean; - return_options?: ({ - generated_tokens?: boolean | null; - input_text?: boolean | null; - input_tokens?: boolean | null; - input_parameters?: boolean | null; - token_logprobs?: boolean | null; - token_ranks?: boolean | null; - top_n_tokens?: number | null; - }) | null; - length_penalty?: ({ - decay_factor?: number | null; - start_index?: number | null; - }) | null; - }) | null; - }; - /** @enum {string} */ - status: "success" | "error"; - response: { - id?: string | null; - model_id?: string; - /** Format: date-time */ - created_at?: string; - input_parameters?: { - [key: string]: unknown; - } | null; - results: ({ - input_text?: string | null; - generated_text: string; - generated_token_count: number; - input_token_count?: number | null; - /** @enum {string} */ - stop_reason: "not_finished" | "max_tokens" | "eos_token" | "cancelled" | "time_limit" | "stop_sequence" | "token_limit" | "error"; - stop_sequence?: string | null; - generated_tokens?: (({ - text?: string | null; - logprob?: (number | null) | (string | null); - rank?: number | null; - top_tokens?: (({ - text?: string | null; - logprob?: (number | null) | (string | null); - })[]) | null; - })[]) | null; - input_tokens?: (({ - text?: string | null; - logprob?: (number | null) | (string | null); - rank?: number | null; - top_tokens?: (({ - text?: string | null; - logprob?: (number | null) | (string | null); - })[]) | null; - })[]) | null; - seed?: number | null; - moderation?: { - [key: string]: unknown; - } | null; - [key: string]: unknown; - })[]; - conversation_id: string; - }; - version?: ({ - api?: string | null; - /** Format: date */ - date?: string | null; - }) | null; - parent_id?: string | null; - [key: string]: unknown; - })[]; + result: { + id: number; + /** Format: date-time */ + created_at: string; + /** Format: date-time */ + updated_at: string; + comment?: string | null; + categories: string[]; + api_request: string; + /** @enum {string|null} */ + vote?: "up" | "down" | null; + }; }; }; }; @@ -5067,18 +5378,97 @@ export interface paths { }; }; }; - delete: { + post: { parameters: { query: { version: "2023-11-22"; }; path: { - conversationId: string; + id: string; }; }; - responses: { - /** @description Success */ - 204: { + requestBody?: { + content: { + "application/json": { + comment?: string; + categories?: ("inaccurate" | "not_relevant" | "offensive_harmful" | "knowledge_gap" | "other_content" | "too_long" | "too_short" | "wrong_tone" | "wrong_format" | "other_style" | "correct_content" | "correct_style")[]; + /** @enum {string} */ + vote?: "up" | "down"; + }; + }; + }; + responses: { + /** @description Default Response */ + 200: { + content: { + "application/json": { + result: { + id: number; + /** Format: date-time */ + created_at: string; + /** Format: date-time */ + updated_at: string; + comment?: string | null; + categories: string[]; + api_request: string; + /** @enum {string|null} */ + vote?: "up" | "down" | null; + }; + }; + }; + }; + /** @description Server could not understand the request due to invalid syntax. In most cases relates with the schema validation. */ + 400: { + content: { + "application/json": components["schemas"]["BadRequestResponse"]; + }; + }; + /** @description Unauthorized route access. */ + 401: { + content: { + "application/json": components["schemas"]["UnauthorizedResponse"]; + }; + }; + /** @description The server can not find requested resource. */ + 404: { + content: { + "application/json": components["schemas"]["NotFoundResponse"]; + }; + }; + /** @description The user has sent too many requests in a given amount of time ("rate limiting").. */ + 429: { + content: { + "application/json": components["schemas"]["TooManyRequestsResponse"]; + }; + }; + /** @description The server encountered an unexpected condition that prevented it from fulfilling the request. */ + 500: { + content: { + "application/json": components["schemas"]["InternalServerErrorResponse"]; + }; + }; + /** @description The remote server is not ready to handle the request. */ + 503: { + content: { + "application/json": components["schemas"]["UnavailableResponse"]; + }; + }; + }; + }; + }; + "/v2/requests/{id}": { + delete: { + parameters: { + query: { + version: "2023-11-22"; + }; + path: { + id: string; + }; + }; + responses: { + /** @description Success */ + 204: { content: never; }; /** @description Server could not understand the request due to invalid syntax. In most cases relates with the schema validation. */ @@ -5120,21 +5510,15 @@ export interface paths { }; }; }; - "/v2/requests": { + "/v2/requests/chat/{conversation_id}": { get: { parameters: { query: { - limit?: number; - offset?: number; - status?: "success" | "error"; - origin?: "api" | "ui"; - before?: string; - after?: string; - endpoint?: ("generate" | "compare" | "chat") | (("generate" | "compare" | "chat")[]); - api?: "v0" | "v1" | "v2"; - date?: string; version: "2023-11-22"; }; + path: { + conversation_id: string; + }; }; responses: { /** @description Default Response */ @@ -5146,22 +5530,124 @@ export interface paths { duration: number; /** Format: date-time */ created_at: string; - request?: { - [key: string]: unknown; - } | null; + request: { + model_id?: string; + prompt_template_id?: string | null; + moderations?: { + hap?: boolean | { + input?: boolean; + output?: boolean; + threshold?: number; + send_tokens?: boolean; + }; + stigma?: boolean | { + input?: boolean; + output?: boolean; + threshold?: number; + send_tokens?: boolean; + }; + implicit_hate?: boolean | { + input?: boolean; + output?: boolean; + threshold?: number; + send_tokens?: boolean; + }; + }; + messages?: ({ + /** @enum {string} */ + role: "user" | "system" | "assistant"; + content: string; + file_ids?: string[]; + })[]; + conversation_id?: string | null; + parent_id?: string | null; + prompt_id?: string; + /** @enum {string} */ + trim_method?: "floating_window" | "none"; + use_conversation_parameters?: boolean; + parameters?: ({ + beam_width?: number | null; + /** @enum {string|null} */ + decoding_method?: "greedy" | "sample" | null; + max_new_tokens?: number | null; + min_new_tokens?: number | null; + random_seed?: number | null; + stop_sequences?: string[] | null; + temperature?: number | null; + time_limit?: number | null; + top_k?: number | null; + top_p?: number | null; + typical_p?: number | null; + repetition_penalty?: number | null; + truncate_input_tokens?: number | null; + include_stop_sequence?: boolean; + return_options?: ({ + generated_tokens?: boolean | null; + input_text?: boolean | null; + input_tokens?: boolean | null; + input_parameters?: boolean | null; + token_logprobs?: boolean | null; + token_ranks?: boolean | null; + top_n_tokens?: number | null; + }) | null; + length_penalty?: ({ + decay_factor?: number | null; + start_index?: number | null; + }) | null; + }) | null; + }; /** @enum {string} */ status: "success" | "error"; - response?: { - [key: string]: unknown; - } | null; + response: { + id?: string | null; + model_id?: string; + /** Format: date-time */ + created_at?: string; + input_parameters?: { + [key: string]: unknown; + } | null; + results: ({ + input_text?: string | null; + generated_text: string; + generated_token_count: number; + input_token_count?: number | null; + /** @enum {string} */ + stop_reason: "not_finished" | "max_tokens" | "eos_token" | "cancelled" | "time_limit" | "stop_sequence" | "token_limit" | "error"; + stop_sequence?: string | null; + generated_tokens?: (({ + text?: string | null; + logprob?: (number | null) | (string | null); + rank?: number | null; + top_tokens?: (({ + text?: string | null; + logprob?: (number | null) | (string | null); + })[]) | null; + })[]) | null; + input_tokens?: (({ + text?: string | null; + logprob?: (number | null) | (string | null); + rank?: number | null; + top_tokens?: (({ + text?: string | null; + logprob?: (number | null) | (string | null); + })[]) | null; + })[]) | null; + seed?: number | null; + moderation?: { + [key: string]: unknown; + } | null; + [key: string]: unknown; + })[]; + conversation_id: string; + }; version?: ({ api?: string | null; /** Format: date */ date?: string | null; }) | null; + parent_id?: string | null; [key: string]: unknown; })[]; - total_count: number; }; }; }; @@ -5177,6 +5663,12 @@ export interface paths { "application/json": components["schemas"]["UnauthorizedResponse"]; }; }; + /** @description The server can not find requested resource. */ + 404: { + content: { + "application/json": components["schemas"]["NotFoundResponse"]; + }; + }; /** @description The user has sent too many requests in a given amount of time ("rate limiting").. */ 429: { content: { @@ -5197,37 +5689,19 @@ export interface paths { }; }; }; - }; - "/v2/models": { - get: { + delete: { parameters: { query: { - limit: number; - offset: number; version: "2023-11-22"; }; + path: { + conversation_id: string; + }; }; responses: { - /** @description Default Response */ - 200: { - content: { - "application/json": { - results: ({ - id: string; - name: string; - size: string; - label: string; - warning?: string; - source_model_id?: string | null; - is_live: boolean; - token_limits: { - beam_width: number; - token_limit: number; - }[]; - task_ids: string[]; - })[]; - }; - }; + /** @description Success */ + 204: { + content: never; }; /** @description Server could not understand the request due to invalid syntax. In most cases relates with the schema validation. */ 400: { @@ -5241,6 +5715,12 @@ export interface paths { "application/json": components["schemas"]["UnauthorizedResponse"]; }; }; + /** @description The server can not find requested resource. */ + 404: { + content: { + "application/json": components["schemas"]["NotFoundResponse"]; + }; + }; /** @description The user has sent too many requests in a given amount of time ("rate limiting").. */ 429: { content: { @@ -5262,14 +5742,288 @@ export interface paths { }; }; }; - "/v2/files/{id}/content": { + "/v2/requests": { get: { parameters: { query: { - version: "2023-11-22"; - }; - path: { - id: string; + limit?: number; + offset?: number; + status?: "success" | "error"; + origin?: "api" | "ui"; + before?: string; + after?: string; + endpoint?: ("generate" | "compare" | "chat") | (("generate" | "compare" | "chat")[]); + api?: "v0" | "v1" | "v2"; + date?: string; + version: "2023-11-22"; + }; + }; + responses: { + /** @description Default Response */ + 200: { + content: { + "application/json": { + results: ({ + id: string; + duration: number; + /** Format: date-time */ + created_at: string; + request?: { + [key: string]: unknown; + } | null; + /** @enum {string} */ + status: "success" | "error"; + response?: { + [key: string]: unknown; + } | null; + version?: ({ + api?: string | null; + /** Format: date */ + date?: string | null; + }) | null; + [key: string]: unknown; + })[]; + total_count: number; + }; + }; + }; + /** @description Server could not understand the request due to invalid syntax. In most cases relates with the schema validation. */ + 400: { + content: { + "application/json": components["schemas"]["BadRequestResponse"]; + }; + }; + /** @description Unauthorized route access. */ + 401: { + content: { + "application/json": components["schemas"]["UnauthorizedResponse"]; + }; + }; + /** @description The user has sent too many requests in a given amount of time ("rate limiting").. */ + 429: { + content: { + "application/json": components["schemas"]["TooManyRequestsResponse"]; + }; + }; + /** @description The server encountered an unexpected condition that prevented it from fulfilling the request. */ + 500: { + content: { + "application/json": components["schemas"]["InternalServerErrorResponse"]; + }; + }; + /** @description The remote server is not ready to handle the request. */ + 503: { + content: { + "application/json": components["schemas"]["UnavailableResponse"]; + }; + }; + }; + }; + }; + "/v2/models": { + get: { + parameters: { + query: { + limit: number; + offset: number; + type?: "model" | "tune"; + version: "2023-11-22"; + }; + }; + responses: { + /** @description Default Response */ + 200: { + content: { + "application/json": { + results: ({ + id: string; + name: string; + size: string; + label: string; + warning?: string; + source_model_id?: string | null; + is_live: boolean; + facets?: ({ + id: string; + name: string; + /** @enum {string} */ + type: "language" | "industry" | "model_type"; + })[]; + token_limits: { + beam_width: number; + token_limit: number; + }[]; + task_ids: string[]; + })[]; + total_count: number; + }; + }; + }; + /** @description Server could not understand the request due to invalid syntax. In most cases relates with the schema validation. */ + 400: { + content: { + "application/json": components["schemas"]["BadRequestResponse"]; + }; + }; + /** @description Unauthorized route access. */ + 401: { + content: { + "application/json": components["schemas"]["UnauthorizedResponse"]; + }; + }; + /** @description The user has sent too many requests in a given amount of time ("rate limiting").. */ + 429: { + content: { + "application/json": components["schemas"]["TooManyRequestsResponse"]; + }; + }; + /** @description The server encountered an unexpected condition that prevented it from fulfilling the request. */ + 500: { + content: { + "application/json": components["schemas"]["InternalServerErrorResponse"]; + }; + }; + /** @description The remote server is not ready to handle the request. */ + 503: { + content: { + "application/json": components["schemas"]["UnavailableResponse"]; + }; + }; + }; + }; + }; + "/v2/folders": { + get: { + parameters: { + query: { + limit?: number; + offset?: number; + version: "2023-11-22"; + }; + }; + responses: { + /** @description Default Response */ + 200: { + content: { + "application/json": { + results: { + id: string; + name: string; + /** Format: date-time */ + created_at: string; + prompt_ids?: string[]; + }[]; + total_count: number; + }; + }; + }; + /** @description Server could not understand the request due to invalid syntax. In most cases relates with the schema validation. */ + 400: { + content: { + "application/json": components["schemas"]["BadRequestResponse"]; + }; + }; + /** @description Unauthorized route access. */ + 401: { + content: { + "application/json": components["schemas"]["UnauthorizedResponse"]; + }; + }; + /** @description The user has sent too many requests in a given amount of time ("rate limiting").. */ + 429: { + content: { + "application/json": components["schemas"]["TooManyRequestsResponse"]; + }; + }; + /** @description The server encountered an unexpected condition that prevented it from fulfilling the request. */ + 500: { + content: { + "application/json": components["schemas"]["InternalServerErrorResponse"]; + }; + }; + /** @description The remote server is not ready to handle the request. */ + 503: { + content: { + "application/json": components["schemas"]["UnavailableResponse"]; + }; + }; + }; + }; + post: { + parameters: { + query: { + version: "2023-11-22"; + }; + }; + requestBody: { + content: { + "application/json": { + name: string; + }; + }; + }; + responses: { + /** @description Default Response */ + 200: { + content: { + "application/json": { + result: { + id: string; + name: string; + /** Format: date-time */ + created_at: string; + prompt_ids?: string[]; + }; + }; + }; + }; + /** @description Server could not understand the request due to invalid syntax. In most cases relates with the schema validation. */ + 400: { + content: { + "application/json": components["schemas"]["BadRequestResponse"]; + }; + }; + /** @description Unauthorized route access. */ + 401: { + content: { + "application/json": components["schemas"]["UnauthorizedResponse"]; + }; + }; + /** @description The server can not find requested resource. */ + 404: { + content: { + "application/json": components["schemas"]["NotFoundResponse"]; + }; + }; + /** @description The user has sent too many requests in a given amount of time ("rate limiting").. */ + 429: { + content: { + "application/json": components["schemas"]["TooManyRequestsResponse"]; + }; + }; + /** @description The server encountered an unexpected condition that prevented it from fulfilling the request. */ + 500: { + content: { + "application/json": components["schemas"]["InternalServerErrorResponse"]; + }; + }; + /** @description The remote server is not ready to handle the request. */ + 503: { + content: { + "application/json": components["schemas"]["UnavailableResponse"]; + }; + }; + }; + }; + }; + "/v2/files/{id}/content": { + get: { + parameters: { + query: { + version: "2023-11-22"; + }; + path: { + id: string; }; }; responses: { @@ -5318,6 +6072,216 @@ export interface paths { }; }; }; + "/v2/beta/text/sentence-similarity": { + post: { + parameters: { + query: { + version: "2023-11-22"; + }; + }; + requestBody: { + content: { + "application/json": { + model_id: string; + source_sentence: string; + sentences: string[]; + parameters?: ({ + truncate_input_tokens?: boolean | null; + }) | null; + }; + }; + }; + responses: { + /** @description Default Response */ + 200: { + content: { + "application/json": { + results: { + score: number; + }[]; + }; + }; + }; + /** @description Server could not understand the request due to invalid syntax. In most cases relates with the schema validation. */ + 400: { + content: { + "application/json": components["schemas"]["BadRequestResponse"]; + }; + }; + /** @description Unauthorized route access. */ + 401: { + content: { + "application/json": components["schemas"]["UnauthorizedResponse"]; + }; + }; + /** @description The server can not find requested resource. */ + 404: { + content: { + "application/json": components["schemas"]["NotFoundResponse"]; + }; + }; + /** @description The server encountered an unexpected condition that prevented it from fulfilling the request. */ + 500: { + content: { + "application/json": components["schemas"]["InternalServerErrorResponse"]; + }; + }; + /** @description The remote server is not ready to handle the request. */ + 503: { + content: { + "application/json": components["schemas"]["UnavailableResponse"]; + }; + }; + }; + }; + }; + "/v2/beta/text/rerank": { + post: { + parameters: { + query: { + version: "2023-11-22"; + }; + }; + requestBody: { + content: { + "application/json": { + model_id: string; + query: string; + documents: string[]; + parameters?: ({ + truncate_input_tokens?: boolean | null; + return_options?: { + top_n?: number | null; + query?: boolean | null; + documents?: boolean | null; + }; + }) | null; + }; + }; + }; + responses: { + /** @description Default Response */ + 200: { + content: { + "application/json": { + result: { + query?: string; + results: { + score: number; + }[]; + }; + }; + }; + }; + /** @description Server could not understand the request due to invalid syntax. In most cases relates with the schema validation. */ + 400: { + content: { + "application/json": components["schemas"]["BadRequestResponse"]; + }; + }; + /** @description Unauthorized route access. */ + 401: { + content: { + "application/json": components["schemas"]["UnauthorizedResponse"]; + }; + }; + /** @description The server can not find requested resource. */ + 404: { + content: { + "application/json": components["schemas"]["NotFoundResponse"]; + }; + }; + /** @description The server encountered an unexpected condition that prevented it from fulfilling the request. */ + 500: { + content: { + "application/json": components["schemas"]["InternalServerErrorResponse"]; + }; + }; + /** @description The remote server is not ready to handle the request. */ + 503: { + content: { + "application/json": components["schemas"]["UnavailableResponse"]; + }; + }; + }; + }; + }; + "/v2/beta/text/classification": { + post: { + parameters: { + query: { + version: "2023-11-22"; + }; + }; + requestBody: { + content: { + "application/json": { + model_id: string; + input: string; + data: { + text: string; + labels: string[]; + }[]; + }; + }; + }; + responses: { + /** @description Default Response */ + 200: { + content: { + "application/json": { + result: { + predictions: string[]; + log_likelihood: { + [key: string]: number; + }; + /** @enum {string} */ + classification_type: "multi_class" | "multi_label" | "binary"; + model_input: string; + model_output: string; + }; + }; + }; + }; + /** @description Server could not understand the request due to invalid syntax. In most cases relates with the schema validation. */ + 400: { + content: { + "application/json": components["schemas"]["BadRequestResponse"]; + }; + }; + /** @description Unauthorized route access. */ + 401: { + content: { + "application/json": components["schemas"]["UnauthorizedResponse"]; + }; + }; + /** @description The server can not find requested resource. */ + 404: { + content: { + "application/json": components["schemas"]["NotFoundResponse"]; + }; + }; + /** @description The user has sent too many requests in a given amount of time ("rate limiting").. */ + 429: { + content: { + "application/json": components["schemas"]["TooManyRequestsResponse"]; + }; + }; + /** @description The server encountered an unexpected condition that prevented it from fulfilling the request. */ + 500: { + content: { + "application/json": components["schemas"]["InternalServerErrorResponse"]; + }; + }; + /** @description The remote server is not ready to handle the request. */ + 503: { + content: { + "application/json": components["schemas"]["UnavailableResponse"]; + }; + }; + }; + }; + }; "/v2/api_key/regenerate": { post: { parameters: { diff --git a/src/schema.ts b/src/schema.ts index 0a95d39..0a383d3 100644 --- a/src/schema.ts +++ b/src/schema.ts @@ -91,10 +91,10 @@ export type RequestServiceDeleteOutput = OutputWrapper< export type RequestServiceChatInput = ApiClientOptions< 'GET', - '/v2/requests/chat/{conversationId}' + '/v2/requests/chat/{conversation_id}' >['params']['path']; export type RequestServiceChatOutput = OutputWrapper< - ApiClientResponse<'GET', '/v2/requests/chat/{conversationId}'>['data'] + ApiClientResponse<'GET', '/v2/requests/chat/{conversation_id}'>['data'] >; // PromptService diff --git a/src/services/RequestService.ts b/src/services/RequestService.ts index c31bb86..4516d97 100644 --- a/src/services/RequestService.ts +++ b/src/services/RequestService.ts @@ -41,7 +41,7 @@ export class RequestService extends BaseService { opts?: Options, ): Promise { return clientErrorWrapper( - this._client.GET('/v2/requests/chat/{conversationId}', { + this._client.GET('/v2/requests/chat/{conversation_id}', { ...opts, params: { path: input, query: { version: '2023-11-22' } }, }),