Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

Merge branch 'dev' into current-date-instruction

Kamal Fariz Mahyuddindf27def9cb72
diff --cc web-app/src/hooks/useChat.ts
index c8ef05562,e90d5b1c2..f4530c90d
--- a/web-app/src/hooks/useChat.ts
+++ b/web-app/src/hooks/useChat.ts
@@@ -17,13 -17,9 +17,10 @@@ import
sendCompletion,
} from '@/lib/completion'
import { CompletionMessagesBuilder } from '@/lib/messages'
+import { renderInstructions } from '@/lib/instructionTemplate'
import { ChatCompletionMessageToolCall } from 'openai/resources'
import { useAssistant } from './useAssistant'
- import { getTools } from '@/services/mcp'
- import { MCPTool } from '@/types/completion'
- import { listen } from '@tauri-apps/api/event'
- import { SystemEvent } from '@/types/events'
+
import { stopModel, startModel, stopAllModels } from '@/services/models'
import { useToolApproval } from '@/hooks/useToolApproval'