mirror of
https://github.com/lobehub/lobehub
synced 2026-04-21 09:37:28 +00:00
* ✨ feat: gpt-4o-mini to openai provider * ♻️ refactor: move gpt-4o-mini as default model * ✅ test: fix test * 🐛 fix: set gpt-4o-mini as default model * chore: improve code * chore: improve code --------- Co-authored-by: arvinxx <[email protected]>
47 lines
1.1 KiB
JavaScript
47 lines
1.1 KiB
JavaScript
const { defineConfig } = require('@lobehub/i18n-cli');
|
|
|
|
module.exports = defineConfig({
|
|
entry: 'locales/zh-CN',
|
|
entryLocale: 'zh-CN',
|
|
output: 'locales',
|
|
outputLocales: [
|
|
'ar',
|
|
'bg-BG',
|
|
'zh-TW',
|
|
'en-US',
|
|
'ru-RU',
|
|
'ja-JP',
|
|
'ko-KR',
|
|
'fr-FR',
|
|
'tr-TR',
|
|
'es-ES',
|
|
'pt-BR',
|
|
'de-DE',
|
|
'it-IT',
|
|
'nl-NL',
|
|
'pl-PL',
|
|
'vi-VN',
|
|
],
|
|
temperature: 0,
|
|
modelName: 'gpt-4o-mini',
|
|
splitToken: 2048,
|
|
experimental: {
|
|
jsonMode: true,
|
|
},
|
|
markdown: {
|
|
// reference: '你需要保持 mdx 的组件格式,输出文本不需要在最外层包裹任何代码块语法',
|
|
entry: ['./README.zh-CN.md', './contributing/**/*.zh-CN.md', './docs/**/*.zh-CN.mdx'],
|
|
entryLocale: 'zh-CN',
|
|
outputLocales: ['en-US'],
|
|
exclude: ['./contributing/_Sidebar.md', './contributing/_Footer.md', './contributing/Home.md'],
|
|
outputExtensions: (locale, { filePath }) => {
|
|
if (filePath.includes('.mdx')) {
|
|
if (locale === 'en-US') return '.mdx';
|
|
return `.${locale}.mdx`;
|
|
} else {
|
|
if (locale === 'en-US') return '.md';
|
|
return `.${locale}.md`;
|
|
}
|
|
},
|
|
},
|
|
});
|