Skip to content

Commit

Permalink
DDOC-1055- Fix AI Endpoints (box/box-openapi#418)
Browse files Browse the repository at this point in the history
  • Loading branch information
box-sdk-build committed May 3, 2024
1 parent 57dac89 commit 7612002
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 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" }
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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 7612002

Please sign in to comment.