Skip to content

Commit

Permalink
fix: Fix Box AI endpoints (box/box-openapi#418) (#171)
Browse files Browse the repository at this point in the history
Co-authored-by: Minh Nguyen Cong <[email protected]>
  • Loading branch information
box-sdk-build and congminh1254 authored May 6, 2024
1 parent febd8d0 commit 6450322
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .codegen.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "engineHash": "afd7974", "specHash": "63d1af0", "version": "0.5.3" }
{ "engineHash": "afd7974", "specHash": "a8c36df", "version": "0.5.3" }
7 changes: 2 additions & 5 deletions src/managers/ai.generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export class AiManager {
readonly [key: string]: string;
} = prepareParams({ ...{}, ...headers.extraHeaders });
const response: FetchResponse = (await fetch(
''.concat(this.networkSession.baseUrls.baseUrl, '/v2/ai/ask') as string,
''.concat(this.networkSession.baseUrls.baseUrl, '/ai/ask') as string,
{
method: 'POST',
headers: headersMap,
Expand Down Expand Up @@ -163,10 +163,7 @@ export class AiManager {
readonly [key: string]: string;
} = prepareParams({ ...{}, ...headers.extraHeaders });
const response: FetchResponse = (await fetch(
''.concat(
this.networkSession.baseUrls.baseUrl,
'/v2/ai/text_gen'
) as string,
''.concat(this.networkSession.baseUrls.baseUrl, '/ai/text_gen') as string,
{
method: 'POST',
headers: headersMap,
Expand Down

0 comments on commit 6450322

Please sign in to comment.