quick fix error message (#977)
Browse files
src/lib/server/endpoints/cohere/endpointCohere.ts
CHANGED
@@ -25,7 +25,7 @@ export async function endpointCohere(
|
|
25 |
token: apiKey,
|
26 |
});
|
27 |
} catch (e) {
|
28 |
-
throw new Error("Failed to import
|
29 |
}
|
30 |
|
31 |
return async ({ messages, preprompt, generateSettings, continueMessage }) => {
|
|
|
25 |
token: apiKey,
|
26 |
});
|
27 |
} catch (e) {
|
28 |
+
throw new Error("Failed to import cohere-ai", { cause: e });
|
29 |
}
|
30 |
|
31 |
return async ({ messages, preprompt, generateSettings, continueMessage }) => {
|