Skip to content

Commit

Permalink
feat(api): api update (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Feb 2, 2025
1 parent 229822f commit cd07485
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 17
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai%2FTogetherAI-bdc1403cc47b53338d829cb5c50d83e75b6a4a3cc3dfa62cdb27f3fd7da150b4.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai%2FTogetherAI-3f48c04fd2529d08d24c2ef0ce7c7ce480047eddf8612534a4d994add6da07d8.yml
6 changes: 6 additions & 0 deletions src/resources/images.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ export interface ImageCreateParams {
*/
negative_prompt?: string;

/**
* The format of the image response. Can be either be `jpeg` or `png`. Defaults to
* `jpeg`.
*/
output_format?: 'jpeg' | 'png';

/**
* Format of the image response. Can be either a base64 string or a URL.
*/
Expand Down
1 change: 1 addition & 0 deletions tests/api-resources/images.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ describe('resource images', () => {
image_url: 'image_url',
n: 0,
negative_prompt: 'negative_prompt',
output_format: 'jpeg',
response_format: 'base64',
seed: 0,
steps: 0,
Expand Down

0 comments on commit cd07485

Please sign in to comment.