together-ai 0.12.0 → 0.13.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 +8 -0
- package/package.json +1 -1
- package/resources/images.d.ts +24 -0
- package/resources/images.d.ts.map +1 -1
- package/src/resources/images.ts +28 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.13.0 (2025-01-27)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.12.0...v0.13.0](https://github.com/togethercomputer/together-typescript/compare/v0.12.0...v0.13.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([#131](https://github.com/togethercomputer/together-typescript/issues/131)) ([990900a](https://github.com/togethercomputer/together-typescript/commit/990900acb435aa2eb2fdcbc267b5de662ded7aa2))
|
|
10
|
+
|
|
3
11
|
## 0.12.0 (2025-01-23)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v0.11.2...v0.12.0](https://github.com/togethercomputer/together-typescript/compare/v0.11.2...v0.12.0)
|
package/package.json
CHANGED
package/resources/images.d.ts
CHANGED
|
@@ -30,10 +30,21 @@ export interface ImageCreateParams {
|
|
|
30
30
|
* A description of the desired images. Maximum length varies by model.
|
|
31
31
|
*/
|
|
32
32
|
prompt: string;
|
|
33
|
+
/**
|
|
34
|
+
* Adjusts the alignment of the generated image with the input prompt. Higher
|
|
35
|
+
* values (e.g., 8-10) make the output more faithful to the prompt, while lower
|
|
36
|
+
* values (e.g., 1-5) encourage more creative freedom.
|
|
37
|
+
*/
|
|
38
|
+
guidance?: number;
|
|
33
39
|
/**
|
|
34
40
|
* Height of the image to generate in number of pixels.
|
|
35
41
|
*/
|
|
36
42
|
height?: number;
|
|
43
|
+
/**
|
|
44
|
+
* An array of objects that define LoRAs (Low-Rank Adaptations) to influence the
|
|
45
|
+
* generated image.
|
|
46
|
+
*/
|
|
47
|
+
image_loras?: Array<ImageCreateParams.ImageLora>;
|
|
37
48
|
/**
|
|
38
49
|
* URL of an image to use for image models that support it.
|
|
39
50
|
*/
|
|
@@ -63,6 +74,19 @@ export interface ImageCreateParams {
|
|
|
63
74
|
*/
|
|
64
75
|
width?: number;
|
|
65
76
|
}
|
|
77
|
+
export declare namespace ImageCreateParams {
|
|
78
|
+
interface ImageLora {
|
|
79
|
+
/**
|
|
80
|
+
* The URL of the LoRA to apply (e.g.
|
|
81
|
+
* https://huggingface.co/strangerzonehf/Flux-Midjourney-Mix2-LoRA).
|
|
82
|
+
*/
|
|
83
|
+
path: string;
|
|
84
|
+
/**
|
|
85
|
+
* The strength of the LoRA's influence. Most LoRA's recommend a value of 1.
|
|
86
|
+
*/
|
|
87
|
+
scale: number;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
66
90
|
export declare namespace Images {
|
|
67
91
|
export { type ImageFile as ImageFile, type ImageCreateParams as ImageCreateParams };
|
|
68
92
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"images.d.ts","sourceRoot":"","sources":["../src/resources/images.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAEhC,qBAAa,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC;CAG3F;AAED,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IAEX,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IAE5B,KAAK,EAAE,MAAM,CAAC;IAEd,MAAM,EAAE,MAAM,CAAC;CAChB;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CAAC;IAC9B,OAAO,EAAE,KAAK,SAAS,IAAI,SAAS,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CACrF"}
|
package/src/resources/images.ts
CHANGED
|
@@ -49,11 +49,24 @@ export interface ImageCreateParams {
|
|
|
49
49
|
*/
|
|
50
50
|
prompt: string;
|
|
51
51
|
|
|
52
|
+
/**
|
|
53
|
+
* Adjusts the alignment of the generated image with the input prompt. Higher
|
|
54
|
+
* values (e.g., 8-10) make the output more faithful to the prompt, while lower
|
|
55
|
+
* values (e.g., 1-5) encourage more creative freedom.
|
|
56
|
+
*/
|
|
57
|
+
guidance?: number;
|
|
58
|
+
|
|
52
59
|
/**
|
|
53
60
|
* Height of the image to generate in number of pixels.
|
|
54
61
|
*/
|
|
55
62
|
height?: number;
|
|
56
63
|
|
|
64
|
+
/**
|
|
65
|
+
* An array of objects that define LoRAs (Low-Rank Adaptations) to influence the
|
|
66
|
+
* generated image.
|
|
67
|
+
*/
|
|
68
|
+
image_loras?: Array<ImageCreateParams.ImageLora>;
|
|
69
|
+
|
|
57
70
|
/**
|
|
58
71
|
* URL of an image to use for image models that support it.
|
|
59
72
|
*/
|
|
@@ -90,6 +103,21 @@ export interface ImageCreateParams {
|
|
|
90
103
|
width?: number;
|
|
91
104
|
}
|
|
92
105
|
|
|
106
|
+
export namespace ImageCreateParams {
|
|
107
|
+
export interface ImageLora {
|
|
108
|
+
/**
|
|
109
|
+
* The URL of the LoRA to apply (e.g.
|
|
110
|
+
* https://huggingface.co/strangerzonehf/Flux-Midjourney-Mix2-LoRA).
|
|
111
|
+
*/
|
|
112
|
+
path: string;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* The strength of the LoRA's influence. Most LoRA's recommend a value of 1.
|
|
116
|
+
*/
|
|
117
|
+
scale: number;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
93
121
|
export declare namespace Images {
|
|
94
122
|
export { type ImageFile as ImageFile, type ImageCreateParams as ImageCreateParams };
|
|
95
123
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.13.0'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.13.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.13.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|