Skip to content

更新GalTransl prompt、修复Sakura 0.8/0.9#22

Merged
fkiliver merged 7 commits intofkiliver:masterfrom
Tabing010102:master
Oct 26, 2024
Merged

更新GalTransl prompt、修复Sakura 0.8/0.9#22
fkiliver merged 7 commits intofkiliver:masterfrom
Tabing010102:master

Conversation

@Tabing010102
Copy link
Copy Markdown
Collaborator

变更

  • 更改默认端口为8080
  • 去除MakeSakuraPromptV1_0函数中对_useDict的冗余检查
  • 更改MakeGalTranslPromptV2_6中的prompt构造方式,通过GalTransl-v5.8.1抓包确定,在字典为空时GalTransl v2.6模型不会更换prompt(详见下图)
  • 添加SakuraUtil.FixTranslationEnd在原句无句号时去除句尾句号
  • 添加IsOpenAIEndpoint,在使用Sakura 0.8/0.9时,通过jsonResponse["content"]?.ToString()获取completion api的翻译结果
  • 更新README中的GalTransl链接、完整配置示例使用动态字典(仅发送匹配原句中字典部分)、添加模型使用的Endpoint示例;可以考虑同步更新wiki中部署流程部分
  • 更改版本号为0.3.5

GalTransl有字典

image

GalTransl无字典

image

@fkiliver fkiliver merged commit 1fe2c77 into fkiliver:master Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants