Skip to content

Commit 203da05

Browse files
committed
feat: update change
1 parent 294a02e commit 203da05

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@rapidaai/nodejs",
3-
"version": "1.0.15",
3+
"version": "1.0.16",
44
"description": "NodeJS sdk for rapidaai platform",
55
"main": "dist/index.cjs",
66
"module": "dist/index.js",

src/connections/connection-config.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ export class ConnectionConfig {
187187

188188
get assistantClient(): AssistantServiceClient {
189189
return new AssistantServiceClient(
190-
this._endpoint.web,
190+
this._endpoint.assistant,
191191
this._debug ? credentials.createInsecure() : credentials.createSsl()
192192
);
193193
}
@@ -201,28 +201,28 @@ export class ConnectionConfig {
201201

202202
get knowledgeClient(): KnowledgeServiceClient {
203203
return new KnowledgeServiceClient(
204-
this._endpoint.web,
204+
this._endpoint.assistant,
205205
this._debug ? credentials.createInsecure() : credentials.createSsl()
206206
);
207207
}
208208

209209
get deploymentClient(): DeploymentClient {
210210
return new DeploymentClient(
211-
this._endpoint.web,
211+
this._endpoint.endpoint,
212212
this._debug ? credentials.createInsecure() : credentials.createSsl()
213213
);
214214
}
215215

216216
get marketplaceClient(): MarketplaceServiceClient {
217217
return new MarketplaceServiceClient(
218-
this._endpoint.web,
218+
this._endpoint.endpoint,
219219
this._debug ? credentials.createInsecure() : credentials.createSsl()
220220
);
221221
}
222222

223223
get documentClient(): DocumentServiceClient {
224224
return new DocumentServiceClient(
225-
this._endpoint.web,
225+
this._endpoint.assistant,
226226
this._debug ? credentials.createInsecure() : credentials.createSsl()
227227
);
228228
}
@@ -236,7 +236,7 @@ export class ConnectionConfig {
236236

237237
get endpointClient(): EndpointServiceClient {
238238
return new EndpointServiceClient(
239-
this._endpoint.web,
239+
this._endpoint.endpoint,
240240
this._debug ? credentials.createInsecure() : credentials.createSsl()
241241
);
242242
}
@@ -250,7 +250,7 @@ export class ConnectionConfig {
250250

251251
get assistantDeploymentClient(): AssistantDeploymentServiceClient {
252252
return new AssistantDeploymentServiceClient(
253-
this._endpoint.web,
253+
this._endpoint.assistant,
254254
this._debug ? credentials.createInsecure() : credentials.createSsl()
255255
);
256256
}

0 commit comments

Comments
 (0)