DazedTL/.env.example
Retaliate7731 936fe0e268 Improve support for non-openai models.
This commit prevents missing batchsize errors in scenarios where custom model names are required.
2024-12-24 22:42:09 +01:00

45 lines
No EOL
1.3 KiB
Text

#API link, leave blank to use OpenAI API
api=""
#API key
key=""
#Oranization key, make something up for self hosted or other API
organization=""
#LLM model name, use gpt-3.5-turbo-1106 or gpt-3.5-turbo or gpt-4-1106-preview for OpenAI API
#For text generation webui use gpt-3.5-turbo, for other API's consult their documentation
model="gpt-4o-2024-08-06"
#The language to translate TO, Don't forget to change the prompt
language="English"
#The timeout before disconnect error, 30 to 120 recommended
timeout="120"
#The number of files to translate at the same time, 1 recommended for free or self hosted API or gpt-4
fileThreads="1"
#The number of threads per file, 1 recommended for free or self hosted API or gpt-4
threads="1"
#The wordwrap of dialogue text
width="60"
#The wordwap of items and help text
listWidth="100"
#The wordwap of items and help text
noteWidth="75"
# Custom input API cost - default value for gpt-3.5, replace with your actual input API cost - depends on the model, see https://openai.com/pricing
input_cost= 0.002
# Custom output API cost - default value for gpt-3.5, replace with your actual input API cost - depends on the model, see https://openai.com/pricing
output_cost= 0.002
# Batch size - adjust according to your API's limitations
batchsize="10"
# Frequency penalty - adjust according to your needs
frequency_penalty= 0.2