@arizeai/phoenix-client 7.1.1 → 7.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (132) hide show
  1. package/README.md +28 -2
  2. package/dist/esm/__generated__/api/v1.d.ts +315 -9
  3. package/dist/esm/__generated__/api/v1.d.ts.map +1 -1
  4. package/dist/esm/client.d.ts +10 -2
  5. package/dist/esm/client.d.ts.map +1 -1
  6. package/dist/esm/client.js +6 -0
  7. package/dist/esm/client.js.map +1 -1
  8. package/dist/esm/config.d.ts +10 -0
  9. package/dist/esm/config.d.ts.map +1 -1
  10. package/dist/esm/config.js +13 -9
  11. package/dist/esm/config.js.map +1 -1
  12. package/dist/esm/experiments/getExperiment.d.ts.map +1 -1
  13. package/dist/esm/experiments/getExperiment.js.map +1 -1
  14. package/dist/esm/experiments/resumeEvaluation.d.ts.map +1 -1
  15. package/dist/esm/experiments/resumeEvaluation.js +5 -5
  16. package/dist/esm/experiments/resumeEvaluation.js.map +1 -1
  17. package/dist/esm/experiments/resumeExperiment.d.ts.map +1 -1
  18. package/dist/esm/experiments/resumeExperiment.js +5 -5
  19. package/dist/esm/experiments/resumeExperiment.js.map +1 -1
  20. package/dist/esm/experiments/runExperiment.d.ts.map +1 -1
  21. package/dist/esm/experiments/runExperiment.js +5 -5
  22. package/dist/esm/experiments/runExperiment.js.map +1 -1
  23. package/dist/esm/experiments/tracing.d.ts +27 -0
  24. package/dist/esm/experiments/tracing.d.ts.map +1 -1
  25. package/dist/esm/experiments/tracing.js +27 -0
  26. package/dist/esm/experiments/tracing.js.map +1 -1
  27. package/dist/esm/projects/getProjects.d.ts +31 -0
  28. package/dist/esm/projects/getProjects.d.ts.map +1 -0
  29. package/dist/esm/projects/getProjects.js +45 -0
  30. package/dist/esm/projects/getProjects.js.map +1 -0
  31. package/dist/esm/projects/index.d.ts +2 -0
  32. package/dist/esm/projects/index.d.ts.map +1 -0
  33. package/dist/esm/projects/index.js +2 -0
  34. package/dist/esm/projects/index.js.map +1 -0
  35. package/dist/esm/prompts/createPrompt.js +1 -1
  36. package/dist/esm/prompts/createPrompt.js.map +1 -1
  37. package/dist/esm/prompts/sdks/toSDK.js +1 -1
  38. package/dist/esm/prompts/sdks/toSDK.js.map +1 -1
  39. package/dist/esm/schemas/llm/converters.js +5 -5
  40. package/dist/esm/schemas/llm/converters.js.map +1 -1
  41. package/dist/esm/schemas/llm/openai/converters.js +3 -3
  42. package/dist/esm/schemas/llm/openai/converters.js.map +1 -1
  43. package/dist/esm/schemas/llm/phoenixPrompt/converters.d.ts.map +1 -1
  44. package/dist/esm/schemas/llm/phoenixPrompt/converters.js +2 -0
  45. package/dist/esm/schemas/llm/phoenixPrompt/converters.js.map +1 -1
  46. package/dist/esm/testing/phoenix-test-tracking.d.ts.map +1 -1
  47. package/dist/esm/testing/phoenix-test-tracking.js +9 -9
  48. package/dist/esm/testing/phoenix-test-tracking.js.map +1 -1
  49. package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
  50. package/dist/esm/types/projects.d.ts +5 -0
  51. package/dist/esm/types/projects.d.ts.map +1 -1
  52. package/dist/esm/types/projects.js.map +1 -1
  53. package/dist/esm/utils/serverVersionUtils.d.ts.map +1 -1
  54. package/dist/esm/utils/serverVersionUtils.js +3 -0
  55. package/dist/esm/utils/serverVersionUtils.js.map +1 -1
  56. package/dist/src/__generated__/api/v1.d.ts +315 -9
  57. package/dist/src/__generated__/api/v1.d.ts.map +1 -1
  58. package/dist/src/client.d.ts +10 -2
  59. package/dist/src/client.d.ts.map +1 -1
  60. package/dist/src/client.js +6 -1
  61. package/dist/src/client.js.map +1 -1
  62. package/dist/src/config.d.ts +10 -0
  63. package/dist/src/config.d.ts.map +1 -1
  64. package/dist/src/config.js +11 -7
  65. package/dist/src/config.js.map +1 -1
  66. package/dist/src/experiments/getExperiment.d.ts.map +1 -1
  67. package/dist/src/experiments/getExperiment.js.map +1 -1
  68. package/dist/src/experiments/resumeEvaluation.d.ts.map +1 -1
  69. package/dist/src/experiments/resumeEvaluation.js +4 -4
  70. package/dist/src/experiments/resumeEvaluation.js.map +1 -1
  71. package/dist/src/experiments/resumeExperiment.d.ts.map +1 -1
  72. package/dist/src/experiments/resumeExperiment.js +4 -4
  73. package/dist/src/experiments/resumeExperiment.js.map +1 -1
  74. package/dist/src/experiments/runExperiment.d.ts.map +1 -1
  75. package/dist/src/experiments/runExperiment.js +4 -4
  76. package/dist/src/experiments/runExperiment.js.map +1 -1
  77. package/dist/src/experiments/tracing.d.ts +27 -0
  78. package/dist/src/experiments/tracing.d.ts.map +1 -1
  79. package/dist/src/experiments/tracing.js +30 -0
  80. package/dist/src/experiments/tracing.js.map +1 -1
  81. package/dist/src/projects/getProjects.d.ts +31 -0
  82. package/dist/src/projects/getProjects.d.ts.map +1 -0
  83. package/dist/src/projects/getProjects.js +53 -0
  84. package/dist/src/projects/getProjects.js.map +1 -0
  85. package/dist/src/projects/index.d.ts +2 -0
  86. package/dist/src/projects/index.d.ts.map +1 -0
  87. package/dist/src/projects/index.js +18 -0
  88. package/dist/src/projects/index.js.map +1 -0
  89. package/dist/src/prompts/createPrompt.js +1 -1
  90. package/dist/src/prompts/createPrompt.js.map +1 -1
  91. package/dist/src/prompts/sdks/toSDK.js +1 -1
  92. package/dist/src/prompts/sdks/toSDK.js.map +1 -1
  93. package/dist/src/schemas/llm/converters.js +5 -5
  94. package/dist/src/schemas/llm/converters.js.map +1 -1
  95. package/dist/src/schemas/llm/openai/converters.js +3 -3
  96. package/dist/src/schemas/llm/openai/converters.js.map +1 -1
  97. package/dist/src/schemas/llm/phoenixPrompt/converters.d.ts.map +1 -1
  98. package/dist/src/schemas/llm/phoenixPrompt/converters.js +2 -0
  99. package/dist/src/schemas/llm/phoenixPrompt/converters.js.map +1 -1
  100. package/dist/src/testing/phoenix-test-tracking.d.ts.map +1 -1
  101. package/dist/src/testing/phoenix-test-tracking.js +8 -8
  102. package/dist/src/testing/phoenix-test-tracking.js.map +1 -1
  103. package/dist/src/types/projects.d.ts +5 -0
  104. package/dist/src/types/projects.d.ts.map +1 -1
  105. package/dist/src/types/projects.js.map +1 -1
  106. package/dist/src/utils/serverVersionUtils.d.ts.map +1 -1
  107. package/dist/src/utils/serverVersionUtils.js +3 -0
  108. package/dist/src/utils/serverVersionUtils.js.map +1 -1
  109. package/dist/tsconfig.tsbuildinfo +1 -1
  110. package/docs/ci-evals-jest.mdx +1 -1
  111. package/docs/ci-evals-vitest.mdx +1 -1
  112. package/docs/ci-evals.mdx +1 -1
  113. package/docs/overview.mdx +5 -5
  114. package/package.json +15 -11
  115. package/src/__generated__/api/v1.ts +315 -9
  116. package/src/client.ts +17 -1
  117. package/src/config.ts +28 -11
  118. package/src/experiments/getExperiment.ts +4 -7
  119. package/src/experiments/resumeEvaluation.ts +11 -9
  120. package/src/experiments/resumeExperiment.ts +11 -9
  121. package/src/experiments/runExperiment.ts +9 -11
  122. package/src/experiments/tracing.ts +35 -0
  123. package/src/projects/getProjects.ts +69 -0
  124. package/src/projects/index.ts +1 -0
  125. package/src/prompts/createPrompt.ts +1 -1
  126. package/src/prompts/sdks/toSDK.ts +1 -1
  127. package/src/schemas/llm/converters.ts +5 -5
  128. package/src/schemas/llm/openai/converters.ts +3 -3
  129. package/src/schemas/llm/phoenixPrompt/converters.ts +2 -0
  130. package/src/testing/phoenix-test-tracking.ts +12 -9
  131. package/src/types/projects.ts +7 -0
  132. package/src/utils/serverVersionUtils.ts +3 -0
package/README.md CHANGED
@@ -37,12 +37,13 @@ The client will automatically read environment variables from your environment,
37
37
 
38
38
  The following environment variables are used:
39
39
 
40
- - `PHOENIX_HOST` - The base URL of the Phoenix API.
40
+ - `PHOENIX_ENDPOINT` - The base URL of your Phoenix. This is the canonical setting for the client.
41
41
  - `PHOENIX_API_KEY` - The API key to use for authentication.
42
42
  - `PHOENIX_CLIENT_HEADERS` - Custom headers to add to all requests. A JSON stringified object.
43
+ - `PHOENIX_COLLECTOR_ENDPOINT` - Read by the OTel SDK for trace export, usually the same URL as `PHOENIX_ENDPOINT`. The client uses it for API access when `PHOENIX_ENDPOINT` is unset.
43
44
 
44
45
  ```bash
45
- PHOENIX_HOST='http://localhost:12345' PHOENIX_API_KEY='xxxxxx' pnpx tsx examples/list_datasets.ts
46
+ PHOENIX_ENDPOINT='http://localhost:12345' PHOENIX_API_KEY='xxxxxx' pnpx tsx examples/list_datasets.ts
46
47
  # emits the following request:
47
48
  # GET http://localhost:12345/v1/datasets
48
49
  # headers: {
@@ -729,6 +730,31 @@ await addSessionNote({
729
730
  });
730
731
  ```
731
732
 
733
+ ## Projects
734
+
735
+ The `@arizeai/phoenix-client` package provides a `projects` export for listing projects.
736
+
737
+ ### Fetching Projects
738
+
739
+ Use `getProjects` to list projects. Pagination is handled for you.
740
+
741
+ ```ts
742
+ import { getProjects } from "@arizeai/phoenix-client/projects";
743
+
744
+ // List every project
745
+ const projects = await getProjects();
746
+
747
+ for (const project of projects) {
748
+ console.log(`Project: ${project.name} (${project.id})`);
749
+ }
750
+ ```
751
+
752
+ Pass `nameContains` to filter by a case-insensitive substring of the project name. The filter is applied server-side and requires Phoenix server `17.16.0` or newer.
753
+
754
+ ```ts
755
+ const agentProjects = await getProjects({ nameContains: "agent" });
756
+ ```
757
+
732
758
  ## Examples
733
759
 
734
760
  To run examples, install dependencies using `pnpm` and run:
@@ -1026,7 +1026,11 @@ export interface paths {
1026
1026
  delete: operations["deletePrompt"];
1027
1027
  options?: never;
1028
1028
  head?: never;
1029
- patch?: never;
1029
+ /**
1030
+ * Update prompt metadata
1031
+ * @description Update a prompt's description and metadata by identifier.
1032
+ */
1033
+ patch: operations["patchPrompt"];
1030
1034
  trace?: never;
1031
1035
  };
1032
1036
  "/v1/projects": {
@@ -1389,6 +1393,28 @@ export interface paths {
1389
1393
  patch?: never;
1390
1394
  trace?: never;
1391
1395
  };
1396
+ "/v1/chat/completions": {
1397
+ parameters: {
1398
+ query?: never;
1399
+ header?: never;
1400
+ path?: never;
1401
+ cookie?: never;
1402
+ };
1403
+ get?: never;
1404
+ put?: never;
1405
+ /**
1406
+ * OpenAI-compatible chat completions
1407
+ * @description Creates a chat completion using the OpenAI wire format, proxying to the selected provider with credentials resolved on the server (secret store first, environment second) — callers never handle provider API keys. Model must be '{provider}:{model_name}' for a built-in provider (one of anthropic, aws, azure_openai, cerebras, deepseek, fireworks, google, groq, moonshot, ollama, openai, perplexity, together, xai) or 'custom:{provider_id}:{model_name}' for a stored custom provider, e.g. 'openai:gpt-4o' or 'anthropic:claude-sonnet-4-5'. Set `stream: true` for server-sent events of `chat.completion.chunk` payloads terminated by `data: [DONE]`. Tool calling is not supported.
1408
+ *
1409
+ * **Phoenix is not an AI gateway.** The same server also takes on trace ingestion traffic, so routing production LLM calls through it competes with ingestion. Use this endpoint only to quickly try out different models in non-production environments.
1410
+ */
1411
+ post: operations["createChatCompletion"];
1412
+ delete?: never;
1413
+ options?: never;
1414
+ head?: never;
1415
+ patch?: never;
1416
+ trace?: never;
1417
+ };
1392
1418
  "/auth/login": {
1393
1419
  parameters: {
1394
1420
  query?: never;
@@ -1932,6 +1958,98 @@ export interface components {
1932
1958
  /** Score */
1933
1959
  score?: number | null;
1934
1960
  };
1961
+ /** ChatCompletion */
1962
+ ChatCompletion: {
1963
+ /** Id */
1964
+ id: string;
1965
+ /**
1966
+ * Object
1967
+ * @default chat.completion
1968
+ * @constant
1969
+ */
1970
+ object?: "chat.completion";
1971
+ /** Created */
1972
+ created: number;
1973
+ /** Model */
1974
+ model: string;
1975
+ /** Choices */
1976
+ choices: components["schemas"]["ChatCompletionChoice"][];
1977
+ usage: components["schemas"]["ChatCompletionUsage"];
1978
+ };
1979
+ /** ChatCompletionChoice */
1980
+ ChatCompletionChoice: {
1981
+ /**
1982
+ * Index
1983
+ * @default 0
1984
+ */
1985
+ index?: number;
1986
+ message: components["schemas"]["ChatCompletionMessage"];
1987
+ /** Finish Reason */
1988
+ finish_reason: string;
1989
+ };
1990
+ /** ChatCompletionErrorDetail */
1991
+ ChatCompletionErrorDetail: {
1992
+ /** Message */
1993
+ message: string;
1994
+ /** Type */
1995
+ type: string;
1996
+ /** Param */
1997
+ param?: string | null;
1998
+ /** Code */
1999
+ code?: string | null;
2000
+ };
2001
+ /** ChatCompletionErrorResponse */
2002
+ ChatCompletionErrorResponse: {
2003
+ error: components["schemas"]["ChatCompletionErrorDetail"];
2004
+ };
2005
+ /** ChatCompletionMessage */
2006
+ ChatCompletionMessage: {
2007
+ /**
2008
+ * Role
2009
+ * @default assistant
2010
+ * @constant
2011
+ */
2012
+ role?: "assistant";
2013
+ /** Content */
2014
+ content: string;
2015
+ };
2016
+ /** ChatCompletionRequestMessage */
2017
+ ChatCompletionRequestMessage: {
2018
+ /**
2019
+ * Role
2020
+ * @enum {string}
2021
+ */
2022
+ role: "system" | "developer" | "user" | "assistant";
2023
+ /** Content */
2024
+ content: string | components["schemas"]["ChatCompletionTextPart"][];
2025
+ };
2026
+ /** ChatCompletionStreamOptions */
2027
+ ChatCompletionStreamOptions: {
2028
+ /**
2029
+ * Include Usage
2030
+ * @default false
2031
+ */
2032
+ include_usage?: boolean;
2033
+ };
2034
+ /** ChatCompletionTextPart */
2035
+ ChatCompletionTextPart: {
2036
+ /**
2037
+ * Type
2038
+ * @constant
2039
+ */
2040
+ type: "text";
2041
+ /** Text */
2042
+ text: string;
2043
+ };
2044
+ /** ChatCompletionUsage */
2045
+ ChatCompletionUsage: {
2046
+ /** Prompt Tokens */
2047
+ prompt_tokens: number;
2048
+ /** Completion Tokens */
2049
+ completion_tokens: number;
2050
+ /** Total Tokens */
2051
+ total_tokens: number;
2052
+ };
1935
2053
  /**
1936
2054
  * ChatContext
1937
2055
  * @description Discriminated union of every UI-state context the agent understands.
@@ -2106,6 +2224,63 @@ export interface components {
2106
2224
  CreateApiKeyResponseBody: {
2107
2225
  data: components["schemas"]["CreatedApiKey"];
2108
2226
  };
2227
+ /**
2228
+ * CreateChatCompletionRequestBody
2229
+ * @example {
2230
+ * "messages": [
2231
+ * {
2232
+ * "content": "You are a helpful assistant.",
2233
+ * "role": "system"
2234
+ * },
2235
+ * {
2236
+ * "content": "Say hello.",
2237
+ * "role": "user"
2238
+ * }
2239
+ * ],
2240
+ * "model": "openai:gpt-4o"
2241
+ * }
2242
+ */
2243
+ CreateChatCompletionRequestBody: {
2244
+ /**
2245
+ * Model
2246
+ * @description Model must be '{provider}:{model_name}' for a built-in provider (one of anthropic, aws, azure_openai, cerebras, deepseek, fireworks, google, groq, moonshot, ollama, openai, perplexity, together, xai) or 'custom:{provider_id}:{model_name}' for a stored custom provider, e.g. 'openai:gpt-4o' or 'anthropic:claude-sonnet-4-5'.
2247
+ */
2248
+ model: string;
2249
+ /** Messages */
2250
+ messages: components["schemas"]["ChatCompletionRequestMessage"][];
2251
+ /**
2252
+ * Stream
2253
+ * @default false
2254
+ */
2255
+ stream?: boolean;
2256
+ /** Temperature */
2257
+ temperature?: number | null;
2258
+ /** Top P */
2259
+ top_p?: number | null;
2260
+ /** Max Tokens */
2261
+ max_tokens?: number | null;
2262
+ /** Max Completion Tokens */
2263
+ max_completion_tokens?: number | null;
2264
+ /** Stop */
2265
+ stop?: string | string[] | null;
2266
+ /** Frequency Penalty */
2267
+ frequency_penalty?: number | null;
2268
+ /** Presence Penalty */
2269
+ presence_penalty?: number | null;
2270
+ /** Seed */
2271
+ seed?: number | null;
2272
+ /** N */
2273
+ n?: number | null;
2274
+ stream_options?: components["schemas"]["ChatCompletionStreamOptions"] | null;
2275
+ /** Tools */
2276
+ tools?: unknown[] | null;
2277
+ /** Tool Choice */
2278
+ tool_choice?: unknown | null;
2279
+ /** Response Format */
2280
+ response_format?: {
2281
+ [key: string]: unknown;
2282
+ } | null;
2283
+ };
2109
2284
  /** CreateDatasetLabelRequestBody */
2110
2285
  CreateDatasetLabelRequestBody: {
2111
2286
  /**
@@ -3595,6 +3770,28 @@ export interface components {
3595
3770
  */
3596
3771
  message?: string | null;
3597
3772
  };
3773
+ /**
3774
+ * PatchPromptRequestBody
3775
+ * @description Fields to update on a prompt. Omit a field to leave it unchanged.
3776
+ */
3777
+ PatchPromptRequestBody: {
3778
+ /**
3779
+ * Description
3780
+ * @description New description for the prompt (null clears the description)
3781
+ */
3782
+ description?: string | null;
3783
+ /**
3784
+ * Metadata
3785
+ * @description New metadata object for the prompt (replaces the existing metadata as a whole)
3786
+ */
3787
+ metadata?: {
3788
+ [key: string]: unknown;
3789
+ };
3790
+ };
3791
+ /** PatchPromptResponseBody */
3792
+ PatchPromptResponseBody: {
3793
+ data: components["schemas"]["Prompt"];
3794
+ };
3598
3795
  /**
3599
3796
  * PhoenixUIMessage
3600
3797
  * @description `UIMessage` with `metadata` narrowed to the Phoenix wire shapes.
@@ -3755,12 +3952,9 @@ export interface components {
3755
3952
  *
3756
3953
  * ``span_filter`` carries the project-scoped span filter expression when the
3757
3954
  * span filter field is mounted — empty string when the field is mounted with
3758
- * no condition applied, ``None`` when the field is not present at all.
3759
- *
3760
- * ``root_spans_only`` carries the current state of the spans-table root vs.
3761
- * all toggle when that toggle is mounted — ``True`` when the table is
3762
- * restricted to root spans, ``False`` when it shows every span, ``None``
3763
- * when the toggle is not present (e.g. on the traces tab).
3955
+ * no condition applied, ``None`` when the field is not present at all. It
3956
+ * describes the view in full, root-span scoping included (which is expressed
3957
+ * within the filter DSL as ``parent_id is None``).
3764
3958
  */
3765
3959
  ProjectContext: {
3766
3960
  /**
@@ -3772,8 +3966,6 @@ export interface components {
3772
3966
  projectNodeId: string;
3773
3967
  /** Spanfilter */
3774
3968
  spanFilter?: string | null;
3775
- /** Rootspansonly */
3776
- rootSpansOnly?: boolean | null;
3777
3969
  };
3778
3970
  /** Prompt */
3779
3971
  Prompt: {
@@ -9479,6 +9671,60 @@ export interface operations {
9479
9671
  };
9480
9672
  };
9481
9673
  };
9674
+ patchPrompt: {
9675
+ parameters: {
9676
+ query?: never;
9677
+ header?: never;
9678
+ path: {
9679
+ /** @description The identifier of the prompt, i.e. name or ID. */
9680
+ prompt_identifier: string;
9681
+ };
9682
+ cookie?: never;
9683
+ };
9684
+ requestBody: {
9685
+ content: {
9686
+ "application/json": components["schemas"]["PatchPromptRequestBody"];
9687
+ };
9688
+ };
9689
+ responses: {
9690
+ /** @description The updated prompt */
9691
+ 200: {
9692
+ headers: {
9693
+ [name: string]: unknown;
9694
+ };
9695
+ content: {
9696
+ "application/json": components["schemas"]["PatchPromptResponseBody"];
9697
+ };
9698
+ };
9699
+ /** @description Forbidden */
9700
+ 403: {
9701
+ headers: {
9702
+ [name: string]: unknown;
9703
+ };
9704
+ content: {
9705
+ "text/plain": string;
9706
+ };
9707
+ };
9708
+ /** @description Not Found */
9709
+ 404: {
9710
+ headers: {
9711
+ [name: string]: unknown;
9712
+ };
9713
+ content: {
9714
+ "text/plain": string;
9715
+ };
9716
+ };
9717
+ /** @description Unprocessable Entity */
9718
+ 422: {
9719
+ headers: {
9720
+ [name: string]: unknown;
9721
+ };
9722
+ content: {
9723
+ "text/plain": string;
9724
+ };
9725
+ };
9726
+ };
9727
+ };
9482
9728
  getProjects: {
9483
9729
  parameters: {
9484
9730
  query?: {
@@ -10678,6 +10924,66 @@ export interface operations {
10678
10924
  };
10679
10925
  };
10680
10926
  };
10927
+ createChatCompletion: {
10928
+ parameters: {
10929
+ query?: never;
10930
+ header?: never;
10931
+ path?: never;
10932
+ cookie?: never;
10933
+ };
10934
+ requestBody: {
10935
+ content: {
10936
+ "application/json": components["schemas"]["CreateChatCompletionRequestBody"];
10937
+ };
10938
+ };
10939
+ responses: {
10940
+ /** @description Successful Response */
10941
+ 200: {
10942
+ headers: {
10943
+ [name: string]: unknown;
10944
+ };
10945
+ content: {
10946
+ "application/json": components["schemas"]["ChatCompletion"];
10947
+ };
10948
+ };
10949
+ /** @description Bad Request */
10950
+ 400: {
10951
+ headers: {
10952
+ [name: string]: unknown;
10953
+ };
10954
+ content: {
10955
+ "application/json": components["schemas"]["ChatCompletionErrorResponse"];
10956
+ };
10957
+ };
10958
+ /** @description Forbidden */
10959
+ 403: {
10960
+ headers: {
10961
+ [name: string]: unknown;
10962
+ };
10963
+ content: {
10964
+ "text/plain": string;
10965
+ };
10966
+ };
10967
+ /** @description Not Found */
10968
+ 404: {
10969
+ headers: {
10970
+ [name: string]: unknown;
10971
+ };
10972
+ content: {
10973
+ "application/json": components["schemas"]["ChatCompletionErrorResponse"];
10974
+ };
10975
+ };
10976
+ /** @description Unprocessable Entity */
10977
+ 422: {
10978
+ headers: {
10979
+ [name: string]: unknown;
10980
+ };
10981
+ content: {
10982
+ "application/json": components["schemas"]["ChatCompletionErrorResponse"];
10983
+ };
10984
+ };
10985
+ };
10986
+ };
10681
10987
  _login_auth_login_post: {
10682
10988
  parameters: {
10683
10989
  query?: never;