diff --git a/src/lib/AbstractChatCompletionRunner.ts b/src/lib/AbstractChatCompletionRunner.ts index c8be63ab3..60b1e5602 100644 --- a/src/lib/AbstractChatCompletionRunner.ts +++ b/src/lib/AbstractChatCompletionRunner.ts @@ -252,6 +252,8 @@ export abstract class AbstractChatCompletionRunner< return message.function_call; } } + + return; } /** @@ -270,6 +272,8 @@ export abstract class AbstractChatCompletionRunner< return message.content as string; } } + + return; } async finalFunctionCallResult(): Promise { diff --git a/tsconfig.json b/tsconfig.json index 4bc150677..9908b2c80 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -27,6 +27,7 @@ "strictBindCallApply": true, "strictPropertyInitialization": true, "noImplicitThis": true, + "noImplicitReturns": true, "alwaysStrict": true, "exactOptionalPropertyTypes": true, "noUncheckedIndexedAccess": true,