Skip to main content

setup

step1 执行init_config,系统自动将config.yaml文件拷贝到~/.ylz_translate目录下

step2 根据情况有关环境变量的设置:

step2.1 LLM

export TOGETHER_API_KEYS=<用逗号分隔的together api token>

export TOGETHER_LLM_MODEL= 默认为 Qwen/Qwen1.5-72B-Chat

export SILICONFLOW_API_KEYS=<用逗号分隔的siliconflow api token>

export SILICONFLOW_LLM_MODEL= 默认为 alibaba/Qwen1.5-110B-Chat

export GROQ_API_KEYS=<用逗号分隔的groq api token>

export GROQ_LLM_MODEL= 默认为 llama3-70b-8192

export DEEPSEEK_API_KEYS=<用逗号分隔的deepseek api token>

export DEEPSEEK_LLM_MODEL= 默认为 deepseek-chat

export QIANFAN_API_KEYS=<用逗号分隔的qianfan api token>

export QIANFAN_SEC_KEYS=<用逗号分隔的qianfan sec token> 要与QIANFAN_API_KEYS对应

export QIANFAN_LLM_MODEL= 默认为 Yi-34B-Chat

step2.2 EMBEDDING

export TOGETHER_EMBEDDING_MODEL= 默认为 BAAI/bge-large-en-v1.5

step2.3 SEARCH_TOOL

export TAVILY_API_KEYS=<逗号分隔的tavily search api token>

run

ylz_translate -h

Metadata

Release files for ylz-translate 0.2.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ylz-translate 0.2.7
File Size Uploaded
ylz_translate-0.2.7.tar.gz 102.4 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for ylz-translate 0.2.7
File Interpreter ABI Platform
ylz_translate-0.2.7-py3-none-any.whl Python 3 none any Details

Total release size: 206.1 MB

Release files / ylz_translate-0.2.7.tar.gz

Download URL ylz_translate-0.2.7.tar.gz
Size 102.4 MB
Tags Source
SHA-256 checksum
How to use checksums
f46c45a7f609c32e34d9bd6e9dd033c6131e8a888c3c502abb4a46ebd25bb206
BLAKE2b-256 checksum
How to use checksums
245f65bbe824501096a18bfef24b12619db2fab85b628985a310cd327b1c67c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.10.11 Darwin/21.6.0

Release files / ylz_translate-0.2.7-py3-none-any.whl

Download URL ylz_translate-0.2.7-py3-none-any.whl
Size 103.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
7e01891e49d6dcce51700159095553673e539363d6bf27cb2f1a2dcad89db1dc
BLAKE2b-256 checksum
How to use checksums
1b54252512b6996122968ef321ba2eb405d5e7b4fe0f01702bcd713a051bf434
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.10.11 Darwin/21.6.0
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page