-
Notifications
You must be signed in to change notification settings - Fork 17
/
env-example
47 lines (34 loc) · 1.47 KB
/
env-example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Copy this to one of these locations based on your usage:
#
# $CWD/.chatgpt-md-translator
# $CWD/.env
# $HOME/.config/chatgpt-md-translator/config
# $HOME/.chatgpt-md-translator
# OpenAI's API Key. You will be charged for the usage of this key.
OPENAI_API_KEY="sk-xxxxxxxxxxxxxxxxxxxxxxxxxxx"
# =====================================
# The remaining variables are optional.
# =====================================
# Base directory of the translated content.
# BASE_DIR="/path/to/my/docs-project/content"
# HTTPS Proxy (e.g, "https://proxy.example.com:8080")
# We also read HTTPS_PROXY from regular environment variables.
# HTTPS_PROXY=""
# Default language model.
# MODEL_NAME="gpt-3.5-turbo"
# Soft limit of the token size, used to split the file into fragments.
# FRAGMENT_TOKEN_SIZE=2048
# Sampling temperature, i.e., randomness of the generated text.
# TEMPERATURE=0.1
# If you hit the API rate limit, you can set this to a positive number.
# API is not called more frequently than the given interval (in seconds).
# API_CALL_INTERVAL=0
# The maximum number of lines for code blocks
# sent to the API as-is for context.
# CODE_BLOCK_PRESERVATION_LINES=5
# Transforms the input path to the output file path.
# OUTPUT_FILE_PATTERN=""
# What to do when the output file already exists. One of "overwrite", "skip" and "abort".
# OVERWRITE_POLICY="overwrite"
# Custom API address, to integrate with a third-party API service provider.
# API_ENDPOINT="https://api.openai.com/v1/chat/completions"