Skip to content

Commit e5fd02f

Browse files
committed
Fix assistant calling correct URL
1 parent f35d353 commit e5fd02f

File tree

1 file changed

+2
-1
lines changed
  • enterprise/web-frontend/modules/baserow_enterprise/services

1 file changed

+2
-1
lines changed

enterprise/web-frontend/modules/baserow_enterprise/services/assistant.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
* root URL when making requests to the AI Assistant endpoints.
55
*/
66
function getAssistantBaseURL(client) {
7-
return client.defaults.baseURL.split('/api')[0]
7+
const url = new URL(client.defaults.baseURL)
8+
return url.origin
89
}
910

1011
export default (client) => {

0 commit comments

Comments
 (0)