mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 08:50:15 +01:00
👓 fix: Assistants Vision Prompt Error Handling (legacy) (#4529)
* fix: vision prompt error handling * fix: Update model reference in chatV1 controller * remove model reference
This commit is contained in:
parent
4da35b9cf5
commit
655f63714b
2 changed files with 12 additions and 7 deletions
|
|
@ -151,7 +151,7 @@ const processVisionRequest = async (client, currentAction) => {
|
|||
|
||||
/** @type {ChatCompletion | undefined} */
|
||||
const completion = await client.visionPromise;
|
||||
if (completion.usage) {
|
||||
if (completion && completion.usage) {
|
||||
recordUsage({
|
||||
user: client.req.user.id,
|
||||
model: client.req.body.model,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue