mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2026-07-21 09:35:22 -04:00
disable lines with useless try/catch wrappers
This commit is contained in:
@@ -153,6 +153,7 @@ class CohereProvider extends InheritMultiple([Provider, UnTooled]) {
|
||||
this.providerLog(
|
||||
"CohereProvider.stream - will process this chat completion."
|
||||
);
|
||||
// eslint-disable-next-line
|
||||
try {
|
||||
let completion = { content: "" };
|
||||
if (functions.length > 0) {
|
||||
|
||||
@@ -263,6 +263,7 @@ ${JSON.stringify(def.parameters.properties, null, 4)}\n`;
|
||||
eventHandler = null
|
||||
) {
|
||||
this.providerLog("Untooled.stream - will process this chat completion.");
|
||||
// eslint-disable-next-line
|
||||
try {
|
||||
let completion = { content: "" };
|
||||
if (functions.length > 0) {
|
||||
@@ -368,6 +369,7 @@ ${JSON.stringify(def.parameters.properties, null, 4)}\n`;
|
||||
*/
|
||||
async complete(messages, functions = [], chatCallback = null) {
|
||||
this.providerLog("Untooled.complete - will process this chat completion.");
|
||||
// eslint-disable-next-line
|
||||
try {
|
||||
let completion = { content: "" };
|
||||
if (functions.length > 0) {
|
||||
|
||||
@@ -307,6 +307,7 @@ class OllamaProvider extends InheritMultiple([Provider, UnTooled]) {
|
||||
this.providerLog(
|
||||
"OllamaProvider.stream - will process this chat completion."
|
||||
);
|
||||
// eslint-disable-next-line
|
||||
try {
|
||||
let completion = { content: "" };
|
||||
if (functions.length > 0) {
|
||||
@@ -469,6 +470,7 @@ class OllamaProvider extends InheritMultiple([Provider, UnTooled]) {
|
||||
this.providerLog(
|
||||
"OllamaProvider.complete - will process this chat completion."
|
||||
);
|
||||
// eslint-disable-next-line
|
||||
try {
|
||||
let completion = { content: "" };
|
||||
if (functions.length > 0) {
|
||||
|
||||
Reference in New Issue
Block a user