Skip to content

Commit

Permalink
fixing retell and esbuild issue (#418)
Browse files Browse the repository at this point in the history
Co-authored-by: root <root@Shyam.localdomain>
  • Loading branch information
Shyam-Raghuwanshi and root authored Dec 25, 2024
1 parent 3dd2c69 commit 5d673c0
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
8 changes: 7 additions & 1 deletion JS/edgechains/arakoodev/src/ai/src/lib/retell-ai/retell.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
import Retell from "retell-sdk";
import { AgentCreateParams, AgentResponse } from "retell-sdk/resources/agent.mjs";
import { LlmResponse, LlmCreateParams } from "retell-sdk/resources/llm.mjs";

declare module "retell-sdk/resources/llm.mjs" {
interface LlmResponse {
llm_websocket_url:string
}
}

export class RetellAI {
retellClient: Retell;
llm: LlmResponse | null;
Expand All @@ -15,7 +22,6 @@ export class RetellAI {
body: AgentCreateParams,
options?: Retell.RequestOptions
): Promise<AgentResponse> {
//@ts-ignore
const defaultParams = {
voice_id: "11labs-Adrian",
agent_name: "Ryan",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function get_package_json(options) {
description: "",
main: "dist/index.js",
scripts: {
build: "rm -rf dist && node esbuild.build.js",
build: "rm -rf dist && node esbuild.build.cjs",
start: "node dist/index.js",
lint: "eslint --ignore-path .eslintignore --ext .js,.ts",
format: 'prettier --ignore-path .gitignore --write "**/*.+(js|ts|json)"',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function get_package_json(options: Options) {
description: "",
main: "dist/index.js",
scripts: {
build: "rm -rf dist && node esbuild.build.js",
build: "rm -rf dist && node esbuild.build.cjs",
start: "node dist/index.js",
lint: "eslint --ignore-path .eslintignore --ext .js,.ts",
format: 'prettier --ignore-path .gitignore --write "**/*.+(js|ts|json)"',
Expand Down
2 changes: 1 addition & 1 deletion JS/edgechains/lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
]
},
"scripts": {
"build": "rm -rf dist && node esbuild.build.js",
"build": "rm -rf dist && node esbuild.build.cjs",
"start": "node dist/index.js",
"lint": "eslint --ignore-path .eslintignore --ext .js,.ts",
"format": "prettier --ignore-path .gitignore --write \"**/*.+(js|ts|json)\"",
Expand Down

0 comments on commit 5d673c0

Please # to comment.