doc: readme

This commit is contained in:
Gabe
2025-10-31 11:25:43 +08:00
parent d4c346e40a
commit 53d441b3f5
2 changed files with 26 additions and 4 deletions

View File

@@ -139,9 +139,20 @@ Personal Rules > Subscription Rules > Global Rules
Among these, Global Rules have the lowest priority but are very important as they serve as the default rules.
### Local Ollama interface cannot be used
### API (Ollama, etc.) Test Failure
If encountering a 403 error, refer to: https://github.com/fishjar/kiss-translator/issues/174
Common reasons for API test failures include:
- Incorrect address:
- For example, `Ollama` has a native API address and an `Openai`-compatible address. This plugin currently supports the `Openai`-compatible address and does not support the `Ollama` native API address.
- The default `Prompt` needs to support `JSON` output, but some AI models do not:
- This can be addressed by using `Hook` or a custom API.
- For details, refer to: [Custom API Example Documentation](https://github.com/fishjar/kiss-translator/blob/master/custom-api_v2.md)
- Inconsistent parameters for some AI models
- For example, the parameters of the `Gemini` native API are highly inconsistent. Some model versions do not support certain parameters, leading to errors.
- In this case, you can modify the request body using a `Hook`, or replace it with `Gemini2` (an OpenAI-compatible address).
- The server restricts cross-origin access, returning a 403 error:
- For example, `Ollama` requires adding the environment variable `OLLAMA_ORIGINS=*` when starting. See: https://github.com/fishjar/kiss-translator/issues/174
### Custom API doesn't work in Tampermonkey scripts