Skip to content

Commit 0d004fe

Browse files
committed
chore: revert instruction and desc
1 parent 850fe73 commit 0d004fe

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

web-app/src/hooks/useAssistant.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ export const defaultAssistant: Assistant = {
4141
parameters: {},
4242
avatar: '👋',
4343
description:
44-
'Jan is a helpful desktop assistant that can reason through complex tasks and use tools to complete them on the user\'s behalf.',
44+
'Jan is a helpful desktop assistant that can reason through complex tasks and use tools to complete them on the users behalf.',
4545
instructions:
46-
'You are a helpful AI assistant. Your primary goal is to assist users with their questions and tasks to the best of your abilities.\n\nWhen responding:\n- Answer directly from your knowledge when you can\n- Be concise, clear, and helpful\n- Admit when you\'re unsure rather than making things up\n\nIf tools are available to you:\n- Only use tools when they add real value to your response\n- Use tools when the user explicitly asks (e.g., "search for...", "calculate...", "run this code")\n- Use tools for information you don\'t know or that needs verification\n- Never use tools just because they\'re available\n\nWhen using tools:\n- Use one tool at a time and wait for results\n- Use actual values as arguments, not variable names\n- Learn from each result before deciding next steps\n- Avoid repeating the same tool call with identical parameters\n\nRemember: Most questions can be answered without tools. Think first whether you need them.',
46+
'You are a helpful AI assistant. Your primary goal is to assist users with their questions and tasks to the best of your abilities.\n\nWhen responding:\n- Answer directly from your knowledge when you can\n- Be concise, clear, and helpful\n- Admit when youre unsure rather than making things up\n\nIf tools are available to you:\n- Only use tools when they add real value to your response\n- Use tools when the user explicitly asks (e.g., "search for...", "calculate...", "run this code")\n- Use tools for information you dont know or that needs verification\n- Never use tools just because theyre available\n\nWhen using tools:\n- Use one tool at a time and wait for results\n- Use actual values as arguments, not variable names\n- Learn from each result before deciding next steps\n- Avoid repeating the same tool call with identical parameters\n\nRemember: Most questions can be answered without tools. Think first whether you need them.',
4747
}
4848

4949
export const useAssistant = create<AssistantState>()((set, get) => ({
@@ -79,12 +79,12 @@ export const useAssistant = create<AssistantState>()((set, get) => ({
7979
).catch((error) => {
8080
console.error('Failed to delete assistant:', error)
8181
})
82-
82+
8383
// Check if we're deleting the current assistant
8484
const wasCurrentAssistant = state.currentAssistant.id === id
85-
85+
8686
set({ assistants: state.assistants.filter((a) => a.id !== id) })
87-
87+
8888
// If the deleted assistant was current, fallback to default and update localStorage
8989
if (wasCurrentAssistant) {
9090
set({ currentAssistant: defaultAssistant })
@@ -109,7 +109,9 @@ export const useAssistant = create<AssistantState>()((set, get) => ({
109109
initializeWithLastUsed: () => {
110110
const lastUsedId = getLastUsedAssistantId()
111111
if (lastUsedId) {
112-
const lastUsedAssistant = get().assistants.find(a => a.id === lastUsedId)
112+
const lastUsedAssistant = get().assistants.find(
113+
(a) => a.id === lastUsedId
114+
)
113115
if (lastUsedAssistant) {
114116
set({ currentAssistant: lastUsedAssistant })
115117
} else {

0 commit comments

Comments
 (0)