Skip to content

Commit

Permalink
🐛 fix: fix agent tags (#3015)
Browse files Browse the repository at this point in the history
* 🐛 fix: fix agent tags

* 📸 test: update snapshot
  • Loading branch information
arvinxx committed Jun 24, 2024
1 parent b5517c7 commit 01e965b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 22 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,4 @@ sitemap*.xml
robots.txt

*.patch
*.pdf
1 change: 1 addition & 0 deletions src/database/server/models/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ export class SessionModel {
avatar: agent?.avatar ?? avatar ?? undefined,
backgroundColor: agent?.backgroundColor ?? backgroundColor ?? undefined,
description: agent?.description ?? description ?? undefined,
tags: agent?.tags ?? undefined,
title: agent?.title ?? title ?? undefined,
},
model: agent?.model,
Expand Down
22 changes: 0 additions & 22 deletions src/server/routers/edge/config/__snapshots__/index.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,27 +1,5 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`configRouter > getGlobalConfig > Model Provider env > CUSTOM_MODELS > custom deletion, addition, and renaming of models 1`] = `
[
{
"displayName": "llama",
"enabled": true,
"id": "llama",
},
{
"displayName": "claude-2",
"enabled": true,
"id": "claude-2",
},
{
"displayName": "gpt-4-32k",
"enabled": true,
"functionCall": true,
"id": "gpt-4-0125-preview",
"tokens": 128000,
},
]
`;

exports[`configRouter > getGlobalConfig > Model Provider env > OPENAI_MODEL_LIST > custom deletion, addition, and renaming of models 1`] = `
{
"enabled": true,
Expand Down

0 comments on commit 01e965b

Please sign in to comment.