We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d90119f + c1c94ca commit 27c7993Copy full SHA for 27c7993
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "addsearch-js-client",
3
- "version": "1.0.2",
+ "version": "1.0.3",
4
"description": "AddSearch API JavaScript client",
5
"repository": {
6
"type": "git",
src/apifetch.ts
@@ -263,7 +263,7 @@ const executeApiFetch: ExecuteApiFetch = function (
263
else if (type === 'ai-answers') {
264
// TODO use apiHostname instead of hardcoded URL
265
apiInstance
266
- .post(`https://api.addsearch.com/v2/indices/${sitekey}/conversations`, {
+ .post(`https://${apiHostname}/v2/indices/${sitekey}/conversations`, {
267
question: settings?.keyword
268
})
269
.then(function (response: AxiosResponse<ConversationsApiResponse>) {
0 commit comments