mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-18 01:10:14 +01:00
🐛 fix: Avatar Type Definitions in Agent/Assistant Schemas (#6235)
* fix: Simplify avatar type definition in agent and assistant schemas * fix: Update regex to correctly match OpenAI model identifiers
This commit is contained in:
parent
dc8d5dee6a
commit
a846e898a2
3 changed files with 3 additions and 11 deletions
|
|
@ -1,6 +1,4 @@
|
|||
import { Schema, Document, Types } from 'mongoose';
|
||||
|
||||
// @ts-ignore
|
||||
export interface IAgent extends Omit<Document, 'model'> {
|
||||
id: string;
|
||||
name?: string;
|
||||
|
|
@ -47,10 +45,7 @@ const agentSchema = new Schema<IAgent>(
|
|||
type: String,
|
||||
},
|
||||
avatar: {
|
||||
type: {
|
||||
filepath: String,
|
||||
source: String,
|
||||
},
|
||||
type: Schema.Types.Mixed,
|
||||
default: undefined,
|
||||
},
|
||||
provider: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue