disable lines with useless try/catch wrappers

This commit is contained in:
Marcello Fitton
2026-03-03 12:12:50 -08:00
parent ff3ce727ed
commit e94bfa0726
3 changed files with 5 additions and 0 deletions
@@ -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) {