Add GLM-4.7 and Kimi K2-Instruct; fix error logging with String(e)
This commit is contained in:
1 parent
7d4d53366e
commit
9601b6466e
2 files changed
+26
-10
No files matched your search
@@ -74,7 +74,7 @@ export async function discoverTogetherModels(apiKey?: string): Promise<ModelDefi
|
||||
const errorText = await response.text();
|
||||
console.warn(`[together-models] Error response body: ${errorText}`);
|
||||
} catch (e) {
|
||||
console.warn(`[together-models] Could not read error response body: ${e}`);
|
||||
console.warn(`[together-models] Could not read error response body: ${String(e)}`);
|
||||
}
|
||||
|
||||
return [];
|
||||
@@ -101,7 +101,7 @@ export async function discoverTogetherModels(apiKey?: string): Promise<ModelDefi
|
||||
return [];
|
||||
}
|
||||
} catch (e) {
|
||||
console.error(`[together-models] Failed to parse JSON: ${e}`);
|
||||
console.error(`[together-models] Failed to parse JSON: ${String(e)}`);
|
||||
console.error(`[together-models] Raw response: ${rawResponse}`);
|
||||
return [];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user