Giter Site home page Giter Site logo

Comments (7)

keyboard3 avatar keyboard3 commented on June 16, 2024 1

We found the problem, the new version has a bug in the custom URL, and we will fix this soon

from immersive-translate.

keyboard3 avatar keyboard3 commented on June 16, 2024

I didn't have a problem here, so let's take a look at the specific error message. Post the openai configuration in the developer settings, and let's give it a try. Or try resetting your settings

from immersive-translate.

iG8R avatar iG8R commented on June 16, 2024

Thank you so much for such a quick response.
I've tried to reset OpenAI settings - nothing changed, still the same error.

{
  "targetLanguage": "en",
  "updatedAt": "2024-04-02T11:35:45.674Z",
  "translationService": "openai",
  "translationServices": {
    "openai": {
      "provider": "custom",
      "model": "gpt-3.5-turbo",
      "APIKEY": " ",
      "maxTextLengthPerRequest": "4000",
      "maxTextGroupLengthPerRequest": "30",
      "limit": "1",
      "apiUrl": "http://127.0.0.1:1337/v1/chat/completions?provider=OpenaiChat",
      "systemPrompt": "You are a professional, authentic translation engine, only returns translations, without such a phrase as \"The text you provided appears to be in Chinese. Here is the English translation:\" or \"Here is the English translation of the text:\" or \"The text you provided appears to be a passage from a novel or a story. Here is the English translation:\"",
      "prompt": "Translate the following text from {{from}} to {{to}}:"
    },
    "deepl": {
      "authKey": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
    },
    "gemini": {
      "APIKEY": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
      "maxTextGroupLengthPerRequest": "10",
      "limit": "1",
      "apiUrl": "https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent?key={key}"
    },
    "custom": {
      "url": ""
    },
    "niu": {
      "APIKEY": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
    },
    "claude": {
      "APIKEY": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
    }
  },
  "translationLanguagePattern": {
    "excludeMatches": [
      "en",
      "ru",
      "uk"
    ],
    "matches": []
  },
  "translationTheme": "solidBorder",
  "rules": [
    {
      "matches": "www.kdxs.net",
      "selectors": [
        "#content"
      ],
      "excludeSelectors": [
        ".navbar"
      ]
    },
    {
      "matches": "www.69shu.pro",
      "selectors": [
        ".txtnav"
      ]
    }
  ],
  "translationUrlPattern": {
    "matches": [
      "www.kdxs.net",
      "www.x23us.cc",
      "www.roulanxs.com"
    ],
    "excludeMatches": []
  },
  "generalRule": {
    "additionalExcludeSelectors": [
      "ul.gt_prefs_translator_div_li > :not(li:first-child)",
      "#liuchan-window > .liuchan-container > *"
    ],
    "blockMinTextCount": 0,
    "blockMinWordCount": 0,
    "mouseHoverHoldKey": "Off",
    "subtitleRule.add": {
      "showQuickButton": false
    },
    "lineBreakMaxTextCount": 0,
    "paragraphMinTextCount": 1,
    "paragraphMinWordCount": 1
  },
  "translationThemePatterns": {
    "solidBorder": {
      "borderRadius": "8",
      "zoom": "110"
    }
  },
  "beta": true,
  "translationMode": "dual",
  "isChangedAlwaysTranslatedUrls": true,
  "enableInputTranslation": false,
  "sourceLanguageUrlPattern": {
    "en": {
      "matches": [
        "https://www.example.com/"
      ],
      "excludeMatches": []
    }
  },
  "pcFloatBall": {
    "enable": false,
    "blockUrls": [
      "*immersivetranslate.com/preview"
    ],
    "clickType": "translate",
    "afterInstalledAt": "2023-10-28",
    "isPc": true
  },
  "translationServiceChangedbyUserAt": "2024-04-02T11:29:44.268Z",
  "enableInputTranslationWithoutTriggerKey": false,
  "immediateTranslationTextCount": 4999
}

from immersive-translate.

iG8R avatar iG8R commented on June 16, 2024

I do not even see any requests from IT to my server (http://127.0.0.1:1337/v1/chat/completions?provider=OpenaiChat).

from immersive-translate.

iG8R avatar iG8R commented on June 16, 2024

Thanks a lot!

from immersive-translate.

keyboard3 avatar keyboard3 commented on June 16, 2024

Thanks a lot!

1.4.2 has been updated and fixed.
https://addons.mozilla.org/zh-CN/firefox/addon/immersive-translate-beta/

from immersive-translate.

iG8R avatar iG8R commented on June 16, 2024

Thank you very much! Now it works.

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.