Skip to content

Commit

Permalink
fix: Fix Box AI endpoints (box/box-openapi#418) (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
box-sdk-build authored May 6, 2024
1 parent 7a90c0c commit de2b8a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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.6.4" }
{ "engineHash": "afd7974", "specHash": "a8c36df", "version": "0.6.4" }
4 changes: 2 additions & 2 deletions box_sdk_gen/managers/ai.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def create_ai_ask(
request_body: Dict = {'mode': mode, 'prompt': prompt, 'items': items}
headers_map: Dict[str, str] = prepare_params({**extra_headers})
response: FetchResponse = fetch(
''.join([self.network_session.base_urls.base_url, '/v2/ai/ask']),
''.join([self.network_session.base_urls.base_url, '/ai/ask']),
FetchOptions(
method='POST',
headers=headers_map,
Expand Down Expand Up @@ -204,7 +204,7 @@ def create_ai_text_gen(
}
headers_map: Dict[str, str] = prepare_params({**extra_headers})
response: FetchResponse = fetch(
''.join([self.network_session.base_urls.base_url, '/v2/ai/text_gen']),
''.join([self.network_session.base_urls.base_url, '/ai/text_gen']),
FetchOptions(
method='POST',
headers=headers_map,
Expand Down

0 comments on commit de2b8a3

Please sign in to comment.