@arizeai/phoenix-client 7.8.0 → 7.9.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.
- package/CHANGELOG.md +6 -0
- package/dist/esm/__generated__/api/v1.d.ts +48 -5
- package/dist/esm/__generated__/api/v1.d.ts.map +1 -1
- package/dist/esm/prompts/constants.d.ts.map +1 -1
- package/dist/esm/prompts/constants.js +2 -0
- package/dist/esm/prompts/constants.js.map +1 -1
- package/dist/esm/prompts/sdks/toOpenAI.d.ts.map +1 -1
- package/dist/esm/prompts/sdks/toOpenAI.js +2 -0
- package/dist/esm/prompts/sdks/toOpenAI.js.map +1 -1
- package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
- package/dist/esm/types/prompts.d.ts +1 -1
- package/dist/esm/types/prompts.d.ts.map +1 -1
- package/dist/esm/types/prompts.js.map +1 -1
- package/dist/esm/utils/getPromptBySelector.d.ts +1 -1
- package/dist/src/__generated__/api/v1.d.ts +48 -5
- package/dist/src/__generated__/api/v1.d.ts.map +1 -1
- package/dist/src/prompts/constants.d.ts.map +1 -1
- package/dist/src/prompts/constants.js +2 -0
- package/dist/src/prompts/constants.js.map +1 -1
- package/dist/src/prompts/sdks/toOpenAI.d.ts.map +1 -1
- package/dist/src/prompts/sdks/toOpenAI.js +2 -0
- package/dist/src/prompts/sdks/toOpenAI.js.map +1 -1
- package/dist/src/types/prompts.d.ts +1 -1
- package/dist/src/types/prompts.d.ts.map +1 -1
- package/dist/src/types/prompts.js.map +1 -1
- package/dist/src/utils/getPromptBySelector.d.ts +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/__generated__/api/v1.ts +48 -5
- package/src/prompts/constants.ts +2 -0
- package/src/prompts/sdks/toOpenAI.ts +2 -0
- package/src/types/prompts.ts +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -1571,7 +1571,7 @@ export interface paths {
|
|
|
1571
1571
|
put?: never;
|
|
1572
1572
|
/**
|
|
1573
1573
|
* OpenAI-compatible chat completions
|
|
1574
|
-
* @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, zai) 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.
|
|
1574
|
+
* @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, meta, minimax, moonshot, ollama, openai, perplexity, together, xai, zai) 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.
|
|
1575
1575
|
*
|
|
1576
1576
|
* **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.
|
|
1577
1577
|
*/
|
|
@@ -2591,7 +2591,7 @@ export interface components {
|
|
|
2591
2591
|
CreateChatCompletionRequestBody: {
|
|
2592
2592
|
/**
|
|
2593
2593
|
* Model
|
|
2594
|
-
* @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, zai) or 'custom:{provider_id}:{model_name}' for a stored custom provider, e.g. 'openai:gpt-4o' or 'anthropic:claude-sonnet-4-5'.
|
|
2594
|
+
* @description Model must be '{provider}:{model_name}' for a built-in provider (one of anthropic, aws, azure_openai, cerebras, deepseek, fireworks, google, groq, meta, minimax, moonshot, ollama, openai, perplexity, together, xai, zai) or 'custom:{provider_id}:{model_name}' for a stored custom provider, e.g. 'openai:gpt-4o' or 'anthropic:claude-sonnet-4-5'.
|
|
2595
2595
|
*/
|
|
2596
2596
|
model: string;
|
|
2597
2597
|
/** Messages */
|
|
@@ -4087,7 +4087,7 @@ export interface components {
|
|
|
4087
4087
|
* ModelProvider
|
|
4088
4088
|
* @enum {string}
|
|
4089
4089
|
*/
|
|
4090
|
-
ModelProvider: "OPENAI" | "AZURE_OPENAI" | "ANTHROPIC" | "GOOGLE" | "DEEPSEEK" | "XAI" | "OLLAMA" | "AWS" | "CEREBRAS" | "FIREWORKS" | "GROQ" | "MOONSHOT" | "PERPLEXITY" | "TOGETHER" | "ZAI";
|
|
4090
|
+
ModelProvider: "OPENAI" | "AZURE_OPENAI" | "ANTHROPIC" | "GOOGLE" | "DEEPSEEK" | "XAI" | "OLLAMA" | "AWS" | "CEREBRAS" | "FIREWORKS" | "GROQ" | "MOONSHOT" | "MINIMAX" | "PERPLEXITY" | "TOGETHER" | "ZAI" | "META";
|
|
4091
4091
|
/** OAuth2User */
|
|
4092
4092
|
OAuth2User: {
|
|
4093
4093
|
/** Id */
|
|
@@ -4935,6 +4935,43 @@ export interface components {
|
|
|
4935
4935
|
/** Content */
|
|
4936
4936
|
content: string | (components["schemas"]["TextContentPart"] | components["schemas"]["ToolCallContentPart"] | components["schemas"]["ToolResultContentPart"])[];
|
|
4937
4937
|
};
|
|
4938
|
+
/** PromptMetaInvocationParameters */
|
|
4939
|
+
PromptMetaInvocationParameters: {
|
|
4940
|
+
/**
|
|
4941
|
+
* @description discriminator enum property added by openapi-typescript
|
|
4942
|
+
* @enum {string}
|
|
4943
|
+
*/
|
|
4944
|
+
type: "meta";
|
|
4945
|
+
meta: components["schemas"]["PromptMetaInvocationParametersContent"];
|
|
4946
|
+
};
|
|
4947
|
+
/** PromptMetaInvocationParametersContent */
|
|
4948
|
+
PromptMetaInvocationParametersContent: {
|
|
4949
|
+
/** Temperature */
|
|
4950
|
+
temperature?: number;
|
|
4951
|
+
/** Max Tokens */
|
|
4952
|
+
max_tokens?: number;
|
|
4953
|
+
/** Max Completion Tokens */
|
|
4954
|
+
max_completion_tokens?: number;
|
|
4955
|
+
/** Frequency Penalty */
|
|
4956
|
+
frequency_penalty?: number;
|
|
4957
|
+
/** Presence Penalty */
|
|
4958
|
+
presence_penalty?: number;
|
|
4959
|
+
/** Top P */
|
|
4960
|
+
top_p?: number;
|
|
4961
|
+
/** Seed */
|
|
4962
|
+
seed?: number;
|
|
4963
|
+
/** Stop */
|
|
4964
|
+
stop?: string[];
|
|
4965
|
+
/**
|
|
4966
|
+
* Reasoning Effort
|
|
4967
|
+
* @enum {string}
|
|
4968
|
+
*/
|
|
4969
|
+
reasoning_effort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh";
|
|
4970
|
+
/** Extra Body */
|
|
4971
|
+
extra_body?: {
|
|
4972
|
+
[key: string]: unknown;
|
|
4973
|
+
};
|
|
4974
|
+
};
|
|
4938
4975
|
/** PromptMoonshotInvocationParameters */
|
|
4939
4976
|
PromptMoonshotInvocationParameters: {
|
|
4940
4977
|
/**
|
|
@@ -5266,7 +5303,7 @@ export interface components {
|
|
|
5266
5303
|
template_type: components["schemas"]["PromptTemplateType"];
|
|
5267
5304
|
template_format: components["schemas"]["PromptTemplateFormat"];
|
|
5268
5305
|
/** Invocation Parameters */
|
|
5269
|
-
invocation_parameters: components["schemas"]["PromptOpenAIInvocationParameters"] | components["schemas"]["PromptAzureOpenAIInvocationParameters"] | components["schemas"]["PromptAnthropicInvocationParameters"] | components["schemas"]["PromptGoogleInvocationParameters"] | components["schemas"]["PromptDeepSeekInvocationParameters"] | components["schemas"]["PromptXAIInvocationParameters"] | components["schemas"]["PromptOllamaInvocationParameters"] | components["schemas"]["PromptAwsInvocationParameters"] | components["schemas"]["PromptCerebrasInvocationParameters"] | components["schemas"]["PromptFireworksInvocationParameters"] | components["schemas"]["PromptGroqInvocationParameters"] | components["schemas"]["PromptMoonshotInvocationParameters"] | components["schemas"]["PromptPerplexityInvocationParameters"] | components["schemas"]["PromptTogetherInvocationParameters"] | components["schemas"]["PromptZAIInvocationParameters"];
|
|
5306
|
+
invocation_parameters: components["schemas"]["PromptOpenAIInvocationParameters"] | components["schemas"]["PromptAzureOpenAIInvocationParameters"] | components["schemas"]["PromptAnthropicInvocationParameters"] | components["schemas"]["PromptGoogleInvocationParameters"] | components["schemas"]["PromptDeepSeekInvocationParameters"] | components["schemas"]["PromptXAIInvocationParameters"] | components["schemas"]["PromptOllamaInvocationParameters"] | components["schemas"]["PromptAwsInvocationParameters"] | components["schemas"]["PromptCerebrasInvocationParameters"] | components["schemas"]["PromptFireworksInvocationParameters"] | components["schemas"]["PromptGroqInvocationParameters"] | components["schemas"]["PromptMoonshotInvocationParameters"] | components["schemas"]["PromptPerplexityInvocationParameters"] | components["schemas"]["PromptTogetherInvocationParameters"] | components["schemas"]["PromptZAIInvocationParameters"] | components["schemas"]["PromptMetaInvocationParameters"];
|
|
5270
5307
|
tools?: components["schemas"]["PromptTools"] | null;
|
|
5271
5308
|
/** Response Format */
|
|
5272
5309
|
response_format?: components["schemas"]["PromptResponseFormatJSONSchema"] | null;
|
|
@@ -5285,7 +5322,7 @@ export interface components {
|
|
|
5285
5322
|
template_type: components["schemas"]["PromptTemplateType"];
|
|
5286
5323
|
template_format: components["schemas"]["PromptTemplateFormat"];
|
|
5287
5324
|
/** Invocation Parameters */
|
|
5288
|
-
invocation_parameters: components["schemas"]["PromptOpenAIInvocationParameters"] | components["schemas"]["PromptAzureOpenAIInvocationParameters"] | components["schemas"]["PromptAnthropicInvocationParameters"] | components["schemas"]["PromptGoogleInvocationParameters"] | components["schemas"]["PromptDeepSeekInvocationParameters"] | components["schemas"]["PromptXAIInvocationParameters"] | components["schemas"]["PromptOllamaInvocationParameters"] | components["schemas"]["PromptAwsInvocationParameters"] | components["schemas"]["PromptCerebrasInvocationParameters"] | components["schemas"]["PromptFireworksInvocationParameters"] | components["schemas"]["PromptGroqInvocationParameters"] | components["schemas"]["PromptMoonshotInvocationParameters"] | components["schemas"]["PromptPerplexityInvocationParameters"] | components["schemas"]["PromptTogetherInvocationParameters"] | components["schemas"]["PromptZAIInvocationParameters"];
|
|
5325
|
+
invocation_parameters: components["schemas"]["PromptOpenAIInvocationParameters"] | components["schemas"]["PromptAzureOpenAIInvocationParameters"] | components["schemas"]["PromptAnthropicInvocationParameters"] | components["schemas"]["PromptGoogleInvocationParameters"] | components["schemas"]["PromptDeepSeekInvocationParameters"] | components["schemas"]["PromptXAIInvocationParameters"] | components["schemas"]["PromptOllamaInvocationParameters"] | components["schemas"]["PromptAwsInvocationParameters"] | components["schemas"]["PromptCerebrasInvocationParameters"] | components["schemas"]["PromptFireworksInvocationParameters"] | components["schemas"]["PromptGroqInvocationParameters"] | components["schemas"]["PromptMoonshotInvocationParameters"] | components["schemas"]["PromptPerplexityInvocationParameters"] | components["schemas"]["PromptTogetherInvocationParameters"] | components["schemas"]["PromptZAIInvocationParameters"] | components["schemas"]["PromptMetaInvocationParameters"];
|
|
5289
5326
|
tools?: components["schemas"]["PromptTools"] | null;
|
|
5290
5327
|
/** Response Format */
|
|
5291
5328
|
response_format?: components["schemas"]["PromptResponseFormatJSONSchema"] | null;
|
|
@@ -10060,6 +10097,12 @@ export interface operations {
|
|
|
10060
10097
|
include_spans?: boolean;
|
|
10061
10098
|
/** @description List of session identifiers to filter traces by. Each value can be either a session_id string or a session GlobalID. Only traces belonging to the specified sessions will be returned. */
|
|
10062
10099
|
session_identifier?: string[] | null;
|
|
10100
|
+
/** @description Filter by trace error status. If true, only return traces that contain at least one span with `status_code == ERROR`. If false, only return traces with no errored spans. If omitted, traces are not filtered by error status. Matches the error indicator shown in the UI. */
|
|
10101
|
+
error?: boolean | null;
|
|
10102
|
+
/** @description Inclusive lower bound on trace latency in milliseconds. */
|
|
10103
|
+
min_latency_ms?: number | null;
|
|
10104
|
+
/** @description Inclusive upper bound on trace latency in milliseconds. */
|
|
10105
|
+
max_latency_ms?: number | null;
|
|
10063
10106
|
};
|
|
10064
10107
|
header?: never;
|
|
10065
10108
|
path: {
|