Giter Club home page Giter Club logo

Comments (1)

XHXJ avatar XHXJ commented on July 19, 2024

这个问题比较复杂,
可以上传log文件夹下的完整日志,来让我查看具体的问题.但是您还是需要修改源码来满足您的第三方模型翻译需求.

修改步骤大概如下:
在策略模式中新增对于DeepSeek模型的支持的实现-->编写async包下具体翻译实现逻辑-->修改生效的翻译模式-->测试完成修改

大概步骤:
gpt-translator/src/main/java/com/xhxj/jsongpttranslator/translation/mode 中新增翻译模式
gpt-translator/src/main/java/com/xhxj/jsongpttranslator/translation/async 文件下新增接口和实现类:

可参考:
gpt-translator/src/main/java/com/xhxj/jsongpttranslator/translation/mode/TestTranslationMode.java 一个编写的最简单测试模式实现
gpt-translator/src/main/java/com/xhxj/jsongpttranslator/translation/async/chat 包下的具体实现.

最简单实现参考:
gpt-translator/src/main/java/com/xhxj/jsongpttranslator/translation/async/test

在重写了新的策略模式后,在ChatgptConfig文件中第86行中修改运行的翻译策略为你新编写翻译策略.

这些步骤需要您具备一定的java编程知识,祝你好运.

from json-gpt-translator.

Related Issues (19)

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.