8000 is not valid JSON · Issue #100 · lobehub/lobe-cli-toolbox · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

Open
C-L-STARK opened this issue Jun 6, 2024 · 4 comments
Open

is not valid JSON #100

C-L-STARK opened this issue Jun 6, 2024 · 4 comments
Labels
🐛 Bug Something isn't working | 缺陷 Inactive No response in 30 days | 超过 30 天未活跃

Comments

@C-L-STARK
Copy link

💻 系统环境 | 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

  • from zh-CN to zh-TW [Tokens: 6694]
    ⠙ 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

@C-L-STARK C-L-STARK added the 🐛 Bug Something isn't working | 缺陷 label Jun 6, 2024
@lobehubbot
Copy link
Member

👀 @JARVISMindEngineer

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible.
Please make sure you have given us as much context as possible.
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

@C-L-STARK
Copy link
Author
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,
  },
});

这是我的配置文件

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


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

@C-L-STARK
Copy link
Author

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)
[@lobehub/i18n-cli@1.18.1] link /usr/local/bin/lobe-i18n@ -> /usr/local/lib/node_modules/@lobehub/i18n-cli/dist/cli.js

➜ lobe-i18n --version
(node:39609) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
(Use node --trace-deprecation ... to show where the warning was created)
1.18.0

@lobehubbot lobehubbot added the Inactive No response in 30 days | 超过 30 天未活跃 label Jul 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working | 缺陷 Inactive No response in 30 days | 超过 30 天未活跃
Projects
None yet
Development

No branches or pull requests

2 participants
0