Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions clients/ts-sdk/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -5620,6 +5620,13 @@
},
"description": "Query ID that is used for tracking analytics"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ImageEditResponse"
}
}
}
},
"400": {
Expand Down
2 changes: 1 addition & 1 deletion clients/ts-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"files": [
"dist"
],
"version": "0.0.94",
"version": "0.0.95",
"license": "MIT",
"scripts": {
"lint": "eslint 'src/**/*.ts'",
Expand Down
4 changes: 2 additions & 2 deletions clients/ts-sdk/src/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5849,7 +5849,7 @@ export type EditImageData = {
trDataset: string;
};

export type EditImageResponse = (string);
export type EditImageResponse = (ImageEditResponse);

export type GetToolFunctionParamsData = {
/**
Expand Down Expand Up @@ -7542,7 +7542,7 @@ export type $OpenApiTs = {
/**
* A list of base64 encoded images
*/
200: string;
200: ImageEditResponse;
/**
* Service error relating to editing the image
*/
Expand Down
3 changes: 1 addition & 2 deletions server/src/handlers/message_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1237,7 +1237,7 @@ pub struct ImageResponseData {
tag = "Message",
request_body(content = EditImageReqPayload, description = "JSON request payload to edit an image", content_type = "application/json"),
responses(
(status = 200, description = "A list of base64 encoded images",
(status = 200, description = "A list of base64 encoded images", body = ImageEditResponse,
headers(
("TR-QueryID" = uuid::Uuid, description = "Query ID that is used for tracking analytics")
)
Expand All @@ -1258,7 +1258,6 @@ pub async fn edit_image(
) -> Result<HttpResponse, ServiceError> {
let dataset_config =
DatasetConfiguration::from_json(dataset_org_plan_sub.dataset.clone().server_configuration);
log::info!("Dataset config: {dataset_config:#?}");

let llm_api_key = get_llm_api_key(&dataset_config);
let base_url = dataset_config.LLM_BASE_URL.clone();
Expand Down
41 changes: 33 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5240,11 +5240,6 @@ mdast-util-gfm-task-list-item@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/mdast-util-gfm-task-list-item/-/mdast-util-gfm-task-list-item-2.0.0.tgz#e68095d2f8a4303ef24094ab642e1047b991a936"
integrity sha512-IrtvNvjxC1o06taBAVJznEnkiHxLFTzgonUdy8hzFVeDun0uTjxxrRGVaNFqkU1wJR3RBPEfsxmU6jDWPofrTQ==
dependencies:
"@types/mdast" "^4.0.0"
devlop "^1.0.0"
mdast-util-from-markdown "^2.0.0"
mdast-util-to-markdown "^2.0.0"

mdast-util-gfm@^2.0.0:
version "2.0.2"
Expand Down Expand Up @@ -7505,7 +7500,16 @@ std-env@^3.8.0:
resolved "https://registry.npmjs.org/std-env/-/std-env-3.8.1.tgz"
integrity sha512-vj5lIj3Mwf9D79hBkltk5qmkFI+biIKWS2IBxEyEU3AX1tUf7AoL8nSazCOiiqQsGKIq01SClsKEzweu34uwvA==

"string-width-cjs@npm:string-width@^4.2.0", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
"string-width-cjs@npm:string-width@^4.2.0":
version "4.2.3"
resolved "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz"
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
dependencies:
emoji-regex "^8.0.0"
is-fullwidth-code-point "^3.0.0"
strip-ansi "^6.0.1"

string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
version "4.2.3"
resolved "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz"
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
Expand Down Expand Up @@ -7600,7 +7604,14 @@ stringify-entities@^4.0.0:
character-entities-html4 "^2.0.0"
character-entities-legacy "^3.0.0"

"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1:
"strip-ansi-cjs@npm:strip-ansi@^6.0.1":
version "6.0.1"
resolved "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz"
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
dependencies:
ansi-regex "^5.0.1"

strip-ansi@^6.0.0, strip-ansi@^6.0.1:
version "6.0.1"
resolved "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz"
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
Expand Down Expand Up @@ -7854,6 +7865,11 @@ trieve-ts-sdk@^0.0.92:
resolved "https://registry.yarnpkg.com/trieve-ts-sdk/-/trieve-ts-sdk-0.0.92.tgz#d290d81e9961eb2f9d87100f0c9f648f7789ef5c"
integrity sha512-V0gMzr/o0Zv7MWptqItmM5Q1oGwzS452S0WSUBH2C8k1q63bz2UcBNm743pbTHLkZ0Bw54oM3yct+hLPGJQ6Cg==

trieve-ts-sdk@^0.0.93:
version "0.0.93"
resolved "https://registry.yarnpkg.com/trieve-ts-sdk/-/trieve-ts-sdk-0.0.93.tgz#57168b4d4d5822e0e3947ebef86cec2371123ac0"
integrity sha512-LLshhGlRRStPU5FfFW2I1AVt7/aHKm4cCO0Bd8PMfpHVJv7vAOkn1KDu/NVoI4seY3K3DJg3NyEUwcKoymoauQ==

trim-lines@^3.0.0:
version "3.0.1"
resolved "https://registry.npmjs.org/trim-lines/-/trim-lines-3.0.1.tgz"
Expand Down Expand Up @@ -8491,7 +8507,16 @@ wordwrap@^1.0.0:
resolved "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz"
integrity sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==

"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0:
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0":
version "7.0.0"
resolved "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz"
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
dependencies:
ansi-styles "^4.0.0"
string-width "^4.1.0"
strip-ansi "^6.0.0"

wrap-ansi@^7.0.0:
version "7.0.0"
resolved "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz"
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
Expand Down