-
-
Notifications
You must be signed in to change notification settings - Fork 54
is not valid JSON #100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
👀 @JARVISMindEngineer Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. |
const { defineConfig } = require('@lobehub/i18n-cli');
module.exports = defineConfig({
entry: 'locales/zh-CN',
entryLocale: 'zh-CN',
output: 'locales',
outputLocales: [
'zh-TW',
'en-US',
'ja-JP',
],
temperature: 0,
modelName: 'gpt-4o',
splitToken: 2048,
experimental: {
jsonMode: true,
},
}); 这是我的配置文件 |
const { defineConfig } = require('@lobehub/i18n-cli');
module.exports = defineConfig({
entry: 'locales/zh-CN',
entryLocale: 'zh-CN',
output: 'locales',
outputLocales: [
'zh-TW',
'en-US',
'ja-JP',
],
temperature: 0,
modelName: 'gpt-4o',
splitToken: 2048,
experimental: {
jsonMode: true,
},
}); This is my config file |
All packages installed (373 packages installed from npm registry, used 4s(network 4s), speed 0B/s, json 0(0B), tarball 0B, manifests cache hit 330, etag hit 0 / miss 0) ➜ lobe-i18n --version |
💻 系统环境 | Operating System
macOS
🌐 CLI 版本 | CLI Version
"@lobehub/i18n-cli": "^1.18.1",
🐛 问题描述 | Bug Description
ℹ Current model setting: gpt-4o (temperature: 0) [JSON Mode]} 11:41:29
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
📝 /locales/zh-TW/setting.json
⠙ 4% [1/21 chunks] ███████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
ERROR Translate failed, SyntaxError: Unexpected token 'S', "Sure, it l"... is not valid JSON 11:41:31
error: script "i18n" exited with code 1
🚦 期望结果 | Expected Behavior
请问应该如何排查问题?
📷 复现步骤 | Recurrence Steps
No response
📝 补充信息 | Additional Information
No response
The text was updated successfully, but these errors were encountered: