@byte_fluffy/nexra-sdk 0.1.0-alpha.36 → 0.1.0-alpha.38
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/README.md +22 -0
- package/dist/catalog.d.ts +3 -2
- package/dist/catalog.js +2 -2
- package/dist/{chunk-UOM4JX4G.js → chunk-M4QBFDQB.js} +3833 -1588
- package/dist/{chunk-AAGTZN2G.js → chunk-SRXAHUYR.js} +2 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -2
- package/dist/language.d.ts +1 -1
- package/dist/language.js +34 -10
- package/dist/{media-geometry-DAVFGry1.d.ts → media-geometry-YD9Y_CFw.d.ts} +1 -0
- package/dist/media.js +1 -1
- package/dist/types.d.ts +2 -2
- package/dist/{voices-CFRCuodH.d.ts → voices-BMpkagio.d.ts} +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -37,6 +37,28 @@ available from `@byte_fluffy/nexra-sdk/media`.
|
|
|
37
37
|
The default API base URL is `https://api.nexra-ai.com/v1`. When overriding
|
|
38
38
|
`baseUrl`, include the `/v1` API prefix.
|
|
39
39
|
|
|
40
|
+
## Banana 2.1
|
|
41
|
+
|
|
42
|
+
Use `google/gemini-nano-banana-2.1` for Banana 2.1. The model supports
|
|
43
|
+
`1K` (default), `2K`, and `4K`, fifteen aspect ratios, and up to fourteen
|
|
44
|
+
source/reference images. It does not support `512`, `count`, or `seed`.
|
|
45
|
+
|
|
46
|
+
```ts
|
|
47
|
+
const modelId = "google/gemini-nano-banana-2.1";
|
|
48
|
+
const input: NexraImageGenerateInput = {
|
|
49
|
+
content: [{ type: "text", text: "A paper boat on a blue table", role: "prompt" }],
|
|
50
|
+
resolution: "2K",
|
|
51
|
+
aspect_ratio: "16:9",
|
|
52
|
+
};
|
|
53
|
+
const quote = await nexra.catalog.quote({ modelId, operation: "image.generate", input });
|
|
54
|
+
const result = await nexra.run(modelId, input, { quoteToken: quote.quoteToken });
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
The server also exposes the Google Native `generateContent` endpoint at
|
|
58
|
+
`/v1/projects/{project}/locations/global/publishers/google/models/gemini-nano-banana-2.1:generateContent`.
|
|
59
|
+
Use the Native `contents` and `generationConfig` payload for direct HTTP calls;
|
|
60
|
+
SDK media calls use the Nexra contract shown above.
|
|
61
|
+
|
|
40
62
|
## DeepSeek model identity correction
|
|
41
63
|
|
|
42
64
|
`0.1.0-alpha.36` replaces `ctyun/deepseek-v4-1-flash` with
|
package/dist/catalog.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as JsonObject } from './json-Cz0MkWQn.js';
|
|
2
|
-
import { H as HttpTransport, A as NexraCatalogChangeParams, B as NexraCatalogChangePage, D as NexraCatalogModelState, u as NexraSalePriceList, d as CreateNexraQuoteRequest, s as NexraQuote, C as CreateNexraDisplayQuoteBatchRequest, n as NexraDisplayQuoteBatch, m as NexraCatalogRevision, q as NexraModelSpec, E as NexraModelEndpointSpec, r as NexraModelSpecFilter } from './media-geometry-
|
|
3
|
-
export { e as MediaGeometryField, f as MediaGeometryProjection, l as NexraBillingCurrency, G as NexraCatalogModelIdentity, p as NexraModelOperation, t as NexraSalePrice, v as NexraSettlement, U as UnifiedMediaGeometry, w as applyMediaGeometry, x as decodeMediaGeometry, y as encodeMediaGeometry, z as projectMediaGeometry } from './media-geometry-
|
|
2
|
+
import { H as HttpTransport, A as NexraCatalogChangeParams, B as NexraCatalogChangePage, D as NexraCatalogModelState, u as NexraSalePriceList, d as CreateNexraQuoteRequest, s as NexraQuote, C as CreateNexraDisplayQuoteBatchRequest, n as NexraDisplayQuoteBatch, m as NexraCatalogRevision, q as NexraModelSpec, E as NexraModelEndpointSpec, r as NexraModelSpecFilter } from './media-geometry-YD9Y_CFw.js';
|
|
3
|
+
export { e as MediaGeometryField, f as MediaGeometryProjection, l as NexraBillingCurrency, G as NexraCatalogModelIdentity, p as NexraModelOperation, t as NexraSalePrice, v as NexraSettlement, U as UnifiedMediaGeometry, w as applyMediaGeometry, x as decodeMediaGeometry, y as encodeMediaGeometry, z as projectMediaGeometry } from './media-geometry-YD9Y_CFw.js';
|
|
4
4
|
|
|
5
5
|
declare function formatModelDisplayName(displayName: string, identity?: {
|
|
6
6
|
modelId: string;
|
|
@@ -33,6 +33,7 @@ type NexraLanguageModelBinding = Readonly<{
|
|
|
33
33
|
}>;
|
|
34
34
|
declare function getLanguageModelBinding(modelId: string, options?: {
|
|
35
35
|
protocol?: NexraLanguageProtocol;
|
|
36
|
+
stream?: boolean;
|
|
36
37
|
}): NexraLanguageModelBinding;
|
|
37
38
|
type NexraLanguageReasoning = Readonly<{
|
|
38
39
|
providerOptions: Record<string, JsonObject>;
|
package/dist/catalog.js
CHANGED
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
listModelSpecs,
|
|
10
10
|
projectMediaGeometry,
|
|
11
11
|
resolveNexraLanguageReasoning
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-M4QBFDQB.js";
|
|
13
|
+
import "./chunk-SRXAHUYR.js";
|
|
14
14
|
export {
|
|
15
15
|
CatalogClient,
|
|
16
16
|
applyMediaGeometry,
|