flexinference 1.5.3 → 1.5.4

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.5.4
4
+
5
+ Documentation-only release. Corrects the error-code name in the generated 400 response
6
+ descriptions and the 1.5.3 changelog entry: the API emits `flex_model_not_capable`; earlier
7
+ docs misspelled it as `model_not_flex_capable` (a code the API never returns). No code changes.
8
+
3
9
  ## 1.5.3
4
10
 
5
11
  Relaxes Messages `max_tokens` on the FlexInference side. The SDK no longer requires or
@@ -106,7 +112,7 @@ required and aligns its values with OpenAI's `service_tier` vocabulary.
106
112
  - **Any model proxies for the non-flex values.** `"default"`, `"priority"`, and
107
113
  `"auto"` proxy any model to OpenAI. Only the duration (flex race) requires a
108
114
  flex-capable model; a duration on a non-flex-capable model returns the router's new
109
- `model_not_flex_capable` error (the old `unsupported_model` is retired).
115
+ `flex_model_not_capable` error (the old `unsupported_model` is retired).
110
116
 
111
117
  ### Added
112
118
 
package/dist/types.d.ts CHANGED
@@ -6007,7 +6007,7 @@ export interface operations {
6007
6007
  "text/event-stream": components["schemas"]["CreateChatCompletionStreamResponse"];
6008
6008
  };
6009
6009
  };
6010
- /** @description Bad request. A FlexInference-layer rejection (type flexinference_error, e.g. missing_start_within, invalid_start_within, model_not_flex_capable, no_byok_key, no_gemini_key, auto_unsupported_for_gemini, service_tier_not_allowed) or an OpenAI/Gemini rejection passed through unchanged. */
6010
+ /** @description Bad request. A FlexInference-layer rejection (type flexinference_error, e.g. missing_start_within, invalid_start_within, flex_model_not_capable, no_byok_key, no_gemini_key, auto_unsupported_for_gemini, service_tier_not_allowed) or an OpenAI/Gemini rejection passed through unchanged. */
6011
6011
  400: {
6012
6012
  headers: {
6013
6013
  [name: string]: unknown;
@@ -6050,7 +6050,7 @@ export interface operations {
6050
6050
  "text/event-stream": components["schemas"]["ResponseStreamEvent"];
6051
6051
  };
6052
6052
  };
6053
- /** @description Bad request. A FlexInference-layer rejection (type flexinference_error, e.g. missing_start_within, invalid_start_within, model_not_flex_capable, no_byok_key, no_gemini_key, auto_unsupported_for_gemini, service_tier_not_allowed) or an OpenAI/Gemini rejection passed through unchanged. */
6053
+ /** @description Bad request. A FlexInference-layer rejection (type flexinference_error, e.g. missing_start_within, invalid_start_within, flex_model_not_capable, no_byok_key, no_gemini_key, auto_unsupported_for_gemini, service_tier_not_allowed) or an OpenAI/Gemini rejection passed through unchanged. */
6054
6054
  400: {
6055
6055
  headers: {
6056
6056
  [name: string]: unknown;
@@ -6093,7 +6093,7 @@ export interface operations {
6093
6093
  "text/event-stream": components["schemas"]["InteractionStreamEvent"];
6094
6094
  };
6095
6095
  };
6096
- /** @description Bad request. A FlexInference-layer rejection (type flexinference_error, e.g. missing_start_within, invalid_start_within, model_not_flex_capable, auto_unsupported_for_gemini, service_tier_not_allowed) or an OpenAI/Gemini rejection passed through unchanged. */
6096
+ /** @description Bad request. A FlexInference-layer rejection (type flexinference_error, e.g. missing_start_within, invalid_start_within, flex_model_not_capable, auto_unsupported_for_gemini, service_tier_not_allowed) or an OpenAI/Gemini rejection passed through unchanged. */
6097
6097
  400: {
6098
6098
  headers: {
6099
6099
  [name: string]: unknown;
@@ -6136,7 +6136,7 @@ export interface operations {
6136
6136
  "text/event-stream": components["schemas"]["MessageStreamEvent"];
6137
6137
  };
6138
6138
  };
6139
- /** @description Bad request. A FlexInference-layer rejection (type flexinference_error, e.g. missing_start_within, invalid_start_within, model_not_flex_capable, flex_unsupported_for_anthropic, service_tier_not_allowed) or an upstream provider rejection passed through unchanged. */
6139
+ /** @description Bad request. A FlexInference-layer rejection (type flexinference_error, e.g. missing_start_within, invalid_start_within, flex_model_not_capable, flex_unsupported_for_anthropic, service_tier_not_allowed) or an upstream provider rejection passed through unchanged. */
6140
6140
  400: {
6141
6141
  headers: {
6142
6142
  [name: string]: unknown;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flexinference",
3
- "version": "1.5.3",
3
+ "version": "1.5.4",
4
4
  "description": "Official TypeScript SDK for FlexInference - a deadline-aware, OpenAI-compatible inference router.",
5
5
  "license": "MIT",
6
6
  "author": "Aditya Perswal <adityaperswal@gmail.com>",