Skip to content

Commit 27c7993

Browse files
authored
Merge pull request #83 from AddSearch/sc-11409/rag-return-url-title-last_updateddatetime-and-citations
[sc-11409] apiHostname should be configurable for /conversations endp…
2 parents d90119f + c1c94ca commit 27c7993

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "addsearch-js-client",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"description": "AddSearch API JavaScript client",
55
"repository": {
66
"type": "git",

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)