Skip to content
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

[Bug] Lobe i18n在使用模型 gpt-40|gpt-4o-mini 翻译markdown文件时,会计算出大量token并翻译出错误的文档 #110

Open
tianlelyd opened this issue Jul 22, 2024 · 1 comment
Labels
🐛 Bug Something isn't working | 缺陷 Inactive No response in 30 days | 超过 30 天未活跃

Comments

@tianlelyd
Copy link

💻 系统环境 | Operating System

Windows

🌐 CLI 版本 | CLI Version

1.18.1

🐛 问题描述 | Bug Description

在翻译markdown时,将模型修改为gpt-40|gpt-4o-mini , 一篇五千字的md文档,计算出要处理81万token,处理完成后消耗了大量token,并且翻译后生成的文档中含有大量以下文内容:

It seems like your message is incomplete. Could you
please provide the content ot the markdown Tile
that you would like to nave translated Trom chinese
Z-N) TO Engish en-us)

image

我的配置文件:

module.exports = {
	modelName: 'gpt-4o-mini',
	markdown: {
		entry: ['README.zh-CN.md'],
		entryLocale: 'zh-CN',
		entryExtension: '.zh-CN.md',
		outputLocales: ['en-US'],
		outputExtensions: (locale, { getDefaultExtension }) => {
			if (locale === 'en-US') return '.md';
			return getDefaultExtension(locale);
		},
	},
	experimental: {
		jsonMode: true,
	},
};

经过测试无论experimental中的配置是否开启,都会存在该问题,但是使用gpt3.5或者gpt4时可正常完成翻译!

🚦 期望结果 | Expected Behavior

  • token计算正确
  • markdown内容正常翻译

📷 复现步骤 | Recurrence Steps

我使用的是中文的markdown内容,文字大概5000字,我实际测试,不管使用什么markdown内容,都会复现该问题!

📝 补充信息 | Additional Information

No response

@tianlelyd tianlelyd added the 🐛 Bug Something isn't working | 缺陷 label Jul 22, 2024
@lobehubbot
Copy link
Member

👀 @tianlelyd

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。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

@lobehubbot lobehubbot added the Inactive No response in 30 days | 超过 30 天未活跃 label Aug 22, 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