Skip to content

Commit cb288da

Browse files
committed
[sc-11409] apiHostname should be configurable for /conversations endpoint
1 parent d90119f commit cb288da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/apifetch.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ const executeApiFetch: ExecuteApiFetch = function (
263263
else if (type === 'ai-answers') {
264264
// TODO use apiHostname instead of hardcoded URL
265265
apiInstance
266-
.post(`https://api.addsearch.com/v2/indices/${sitekey}/conversations`, {
266+
.post(`https://${apiHostname}/v2/indices/${sitekey}/conversations`, {
267267
question: settings?.keyword
268268
})
269269
.then(function (response: AxiosResponse<ConversationsApiResponse>) {

0 commit comments

Comments
 (0)