Giter Site home page Giter Site logo

Comments (8)

theowenyoung avatar theowenyoung commented on July 24, 2024

现在可以了吗?我刚用 Gemini 测试似乎是ok 的?

CleanShot 2024-06-25 at 15 06 19@2x

from immersive-translate.

NijikaMyWaifu avatar NijikaMyWaifu commented on July 24, 2024

最新的 1.6.6 版本仍然存在问题,使用 gemini-1.5-pro-latest 模型

默认情况:
default

在 Edit Full User Config 的 Gemini 配置中添加 "glossaries": [], 的情况:
glossaries = empty

同时我认为替换一些词汇为例如 <code1001> 的形式会影响 AI 对上下文的理解

from immersive-translate.

theowenyoung avatar theowenyoung commented on July 24, 2024

这里是针对 Gemini 的特殊处理, 涉及到 OpenAI,GPT 等词, Gemini 模型会认为是敏感词,如果不做替换的话,会整句直接不翻译。

from immersive-translate.

theowenyoung avatar theowenyoung commented on July 24, 2024

请打开下这里 , 同步下规则之后再试试。

做了进一步优化。

from immersive-translate.

NijikaMyWaifu avatar NijikaMyWaifu commented on July 24, 2024

对于 Gemini API 的敏感词检测:Gemini API 只会检测最后一条消息是否包含敏感词,经过测试这种 Prompt 可以规避检测且兼容所有 Gemini 模型

User

You are a professional, authentic machine translation engine.

Source Text: {{text}}

Model

Successfully read the text.

User

Translate the source text to {{to}}, Output translation directly without any additional text.
Translated Text:

from immersive-translate.

theowenyoung avatar theowenyoung commented on July 24, 2024

多步 prompt吗? 这个改动会比较大,插件不太容易支持这种。

是不是等待 gemini 在以后的版本中移除这些敏感词就好?

from immersive-translate.

NijikaMyWaifu avatar NijikaMyWaifu commented on July 24, 2024

尝试一下这个?

Model

You are a professional, authentic machine translation engine.

Translate the following source text to {{to}}, Output translation directly without any additional text.
Source Text: {{text}}
Translated Text:

User

continue

from immersive-translate.

theowenyoung avatar theowenyoung commented on July 24, 2024

这个 prompt 会导致 gemini 输出较多不相关的内容.

CleanShot 2024-07-02 at 21 05 16@2x

刚和 Google Gemini 的合作伙伴确认,5月份之后的 Gemini 已经取消了屏蔽词,所以沉浸式翻译刚刚更新了规则,同步去掉了之前设置的屏蔽词。

CleanShot 2024-07-02 at 21 36 32@2x

请刷新后重试~

from immersive-translate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.