@base44-preview/sdk 0.8.63-pr.382.862c2c8 → 0.8.63-pr.384.cb4b70d
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.
|
@@ -86,6 +86,17 @@ export interface AiGatewayModuleConfig {
|
|
|
86
86
|
* request options, the full model list, and limits, see
|
|
87
87
|
* [Generate video with the AI Gateway](/developers/references/sdk/getting-started/ai-gateway-video).
|
|
88
88
|
*
|
|
89
|
+
* ## Music
|
|
90
|
+
*
|
|
91
|
+
* The gateway also serves a music endpoint, `/audio/music`, so you can turn a
|
|
92
|
+
* prompt with a style, a mood, and optional lyrics into a song or an
|
|
93
|
+
* instrumental track. OpenAI has no music endpoint, so the request format is
|
|
94
|
+
* Base44's own. Music generation is synchronous. The request returns the
|
|
95
|
+
* stored MP3's `url` once the track is ready, which can take a minute or more.
|
|
96
|
+
* Pass `'automatic'` or pin `'lyria_3_5'`, which `automatic` always uses. For
|
|
97
|
+
* request options, the model list, and limits, see
|
|
98
|
+
* [Generate music with the AI Gateway](/developers/references/sdk/getting-started/ai-gateway-music).
|
|
99
|
+
*
|
|
89
100
|
* ## Structured evaluations
|
|
90
101
|
*
|
|
91
102
|
* The `typesafe` provider runs the `jev` evaluation model through
|
|
@@ -49,6 +49,10 @@ export interface AppUserConnectorConnectionResponse {
|
|
|
49
49
|
* automatically retry non-idempotent requests based on them.
|
|
50
50
|
*/
|
|
51
51
|
export type ConnectorApiResponsePhase = "not_sent" | "responded" | "timed_out" | "sent_unconfirmed";
|
|
52
|
+
/**
|
|
53
|
+
* A query parameter value: a string, number, boolean, or an array of strings and numbers.
|
|
54
|
+
*/
|
|
55
|
+
export type ConnectorApiQueryValue = string | number | boolean | Array<string | number>;
|
|
52
56
|
/**
|
|
53
57
|
* A request to forward to a metered connector's API through the Base44 proxy.
|
|
54
58
|
*/
|
|
@@ -69,7 +73,7 @@ export interface ConnectorApiRequest {
|
|
|
69
73
|
*/
|
|
70
74
|
path: string;
|
|
71
75
|
/** Query parameters. Merged into the request URL with any already in `path`. */
|
|
72
|
-
query?: Record<string,
|
|
76
|
+
query?: Record<string, ConnectorApiQueryValue>;
|
|
73
77
|
/** Extra request headers. Only headers the connector explicitly allows are forwarded, and the rest are dropped. */
|
|
74
78
|
headers?: Record<string, string>;
|
|
75
79
|
/** JSON request body. Ignored for `GET` and `HEAD`. */
|