Skip to content

Commit

Permalink
Merge pull request #83 from AddSearch/sc-11409/rag-return-url-title-l…
Browse files Browse the repository at this point in the history
…ast_updateddatetime-and-citations

[sc-11409] apiHostname should be configurable for /conversations endp…
  • Loading branch information
haoAddsearch authored Feb 13, 2025
2 parents d90119f + c1c94ca commit 27c7993
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "addsearch-js-client",
"version": "1.0.2",
"version": "1.0.3",
"description": "AddSearch API JavaScript client",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion src/apifetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ const executeApiFetch: ExecuteApiFetch = function (
else if (type === 'ai-answers') {
// TODO use apiHostname instead of hardcoded URL
apiInstance
.post(`https://api.addsearch.com/v2/indices/${sitekey}/conversations`, {
.post(`https://${apiHostname}/v2/indices/${sitekey}/conversations`, {
question: settings?.keyword
})
.then(function (response: AxiosResponse<ConversationsApiResponse>) {
Expand Down

0 comments on commit 27c7993

Please sign in to comment.