Skip to content

Commit

Permalink
fix call bug with source language, bump version, removed build assets…
Browse files Browse the repository at this point in the history
… from git
  • Loading branch information
chenb67 committed Mar 18, 2020
1 parent f742006 commit ad03a2d
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 109 deletions.
48 changes: 0 additions & 48 deletions build/coco.js

This file was deleted.

1 change: 0 additions & 1 deletion build/coco.js.map

This file was deleted.

56 changes: 0 additions & 56 deletions build/module.js

This file was deleted.

1 change: 0 additions & 1 deletion build/module.js.map

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "coco",
"version": "1.0.0",
"version": "1.0.3",
"description": "Cognigy-CoCo integration",
"main": "build/module.js",
"scripts": {
Expand Down
Binary file removed release/cognigy-coco-module.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion src/coco.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export class ComponentSession {
rp(
{
method: "POST",
url: `https://marketplace.conversationalcomponents.com/api/exchange/${this.component_id}/${this.session_id}`,
url: `https://cocohub.ai/api/exchange/${this.component_id}/${this.session_id}`,
body: JSON.stringify(payload),
headers: {"api-key": this.developer_key}
},
Expand Down
2 changes: 1 addition & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ async function CoCo(
context.session_id = session_id;
input.actions.addToContext(store, context, "simple");

const reply = await conv.call(text, context.updated_context);
const reply = await conv.call(text, context.updated_context, args.source_language_code);
if (reply instanceof Error) throw reply;

if (reply.component_done) {
Expand Down

0 comments on commit ad03a2d

Please sign in to comment.