mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-24 10:40:07 +08:00
chore: fix typos (#9477)
This commit is contained in:
parent
fba358c0fc
commit
6d102ccef8
@ -204,7 +204,7 @@ export function registerShortcuts(window: BrowserWindow) {
|
||||
selectionAssistantSelectTextAccelerator = formatShortcutKey(shortcut.shortcut)
|
||||
break
|
||||
|
||||
//the following ZOOMs will register shortcuts seperately, so will return
|
||||
//the following ZOOMs will register shortcuts separately, so will return
|
||||
case 'zoom_in':
|
||||
globalShortcut.register('CommandOrControl+=', () => handler(window))
|
||||
globalShortcut.register('CommandOrControl+numadd', () => handler(window))
|
||||
|
||||
@ -555,9 +555,9 @@ export class WindowService {
|
||||
|
||||
// [Windows] hacky fix
|
||||
// the window is minimized only when in Windows platform
|
||||
// because it's a workround for Windows, see `hideMiniWindow()`
|
||||
// because it's a workaround for Windows, see `hideMiniWindow()`
|
||||
if (this.miniWindow?.isMinimized()) {
|
||||
// don't let the window being seen before we finish adusting the position across screens
|
||||
// don't let the window being seen before we finish adjusting the position across screens
|
||||
this.miniWindow?.setOpacity(0)
|
||||
// DO NOT use `restore()` here, Electron has the bug with screens of different scale factor
|
||||
// We have to use `show()` here, then set the position and bounds
|
||||
|
||||
@ -166,7 +166,7 @@ export const SEARCH_SUMMARY_PROMPT = `
|
||||
</knowledge>
|
||||
\`
|
||||
|
||||
7. Follow up question: Based on knowledge, Fomula of Scaled Dot-Product Attention and Multi-Head Attention?
|
||||
7. Follow up question: Based on knowledge, Formula of Scaled Dot-Product Attention and Multi-Head Attention?
|
||||
Rephrased question: \`
|
||||
<websearch>
|
||||
<question>
|
||||
@ -279,7 +279,7 @@ export const SEARCH_SUMMARY_PROMPT_WEB_ONLY = `
|
||||
</websearch>
|
||||
\`
|
||||
|
||||
7. Follow up question: Based on knowledge, Fomula of Scaled Dot-Product Attention and Multi-Head Attention?
|
||||
7. Follow up question: Based on knowledge, Formula of Scaled Dot-Product Attention and Multi-Head Attention?
|
||||
Rephrased question: \`
|
||||
<websearch>
|
||||
<question>
|
||||
@ -374,7 +374,7 @@ export const SEARCH_SUMMARY_PROMPT_KNOWLEDGE_ONLY = `
|
||||
</knowledge>
|
||||
\`
|
||||
|
||||
7. Follow up question: Based on knowledge, Fomula of Scaled Dot-Product Attention and Multi-Head Attention?
|
||||
7. Follow up question: Based on knowledge, Formula of Scaled Dot-Product Attention and Multi-Head Attention?
|
||||
Rephrased question: \`
|
||||
<knowledge>
|
||||
<rewrite>
|
||||
|
||||
@ -66,7 +66,7 @@ db.version(6).stores({
|
||||
// --- NEW VERSION 7 ---
|
||||
db.version(7)
|
||||
.stores({
|
||||
// Re-declare all tables for the new version
|
||||
// Redeclare all tables for the new version
|
||||
files: 'id, name, origin_name, path, size, ext, type, created_at, count',
|
||||
topics: '&id', // Correct index for topics
|
||||
settings: '&id, value',
|
||||
@ -79,7 +79,7 @@ db.version(7)
|
||||
|
||||
db.version(8)
|
||||
.stores({
|
||||
// Re-declare all tables for the new version
|
||||
// Redeclare all tables for the new version
|
||||
files: 'id, name, origin_name, path, size, ext, type, created_at, count',
|
||||
topics: '&id', // Correct index for topics
|
||||
settings: '&id, value',
|
||||
@ -91,7 +91,7 @@ db.version(8)
|
||||
.upgrade((tx) => upgradeToV8(tx))
|
||||
|
||||
db.version(9).stores({
|
||||
// Re-declare all tables for the new version
|
||||
// Redeclare all tables for the new version
|
||||
files: 'id, name, origin_name, path, size, ext, type, created_at, count',
|
||||
topics: '&id', // Correct index for topics
|
||||
settings: '&id, value',
|
||||
|
||||
@ -185,7 +185,7 @@ export function mcpToolsToAnthropicTools(mcpTools: MCPTool[]): Array<ToolUnion>
|
||||
const t: ToolUnion = {
|
||||
name: tool.id,
|
||||
description: tool.description,
|
||||
// @ts-ignore ignore type as it it unknow
|
||||
// @ts-ignore ignore type as it it unknown
|
||||
input_schema: tool.inputSchema
|
||||
}
|
||||
return t
|
||||
|
||||
@ -53,7 +53,7 @@ export const detectLanguage = async (inputText: string): Promise<TranslateLangua
|
||||
}
|
||||
|
||||
const detectLanguageByLLM = async (inputText: string): Promise<TranslateLanguageCode> => {
|
||||
logger.info('Detect langugage by llm')
|
||||
logger.info('Detect language by llm')
|
||||
let detectedLang = ''
|
||||
await fetchLanguageDetection({
|
||||
text: sliceByTokens(inputText, 0, 100),
|
||||
@ -65,7 +65,7 @@ const detectLanguageByLLM = async (inputText: string): Promise<TranslateLanguage
|
||||
}
|
||||
|
||||
const detectLanguageByFranc = (inputText: string): TranslateLanguageCode => {
|
||||
logger.info('Detect langugage by franc')
|
||||
logger.info('Detect language by franc')
|
||||
const iso3 = franc(inputText)
|
||||
|
||||
const isoMap: Record<string, TranslateLanguage> = {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user