mirror of
https://github.com/sqlchat/sqlchat.git
synced 2025-07-29 18:23:25 +08:00
chore: remove user store
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
import { User, UserRole } from "../types";
|
||||
import { Id, User, UserRole } from "../types";
|
||||
|
||||
// Assistant is a special user.
|
||||
export const assistantList: User[] = [
|
||||
@ -11,6 +11,11 @@ export const assistantList: User[] = [
|
||||
},
|
||||
];
|
||||
|
||||
export const getAssistantById = (id: Id) => {
|
||||
const user = assistantList.find((user) => user.id === id);
|
||||
return user || undefined;
|
||||
};
|
||||
|
||||
// getPromptOfAssistant define the special prompt for each assistant.
|
||||
export const getPromptOfAssistant = (assistant: User) => {
|
||||
if (assistant.id === "assistant-dba") {
|
||||
|
Reference in New Issue
Block a user