You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
887 B
JavaScript

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

// OpenAI API Key
export const OPENAI_API_KEY = "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";
// 对话模型 目前只有高于3.5以上才支持上下文对话
export const GPT_MODEL = "gpt-3.5-turbo";
// 指定降低重复单词出现概率的程度范围是0到1越高表示越避免重复。
export const FREQUENCY_PENALTY = 0;
// 指定要生成的最大单词数不能超过2048
export const MAX_TOKENS = 1000;
// 指定降低重复话题出现概率的程度范围是0到1越高表示越避免重复。
export const PRESENCE_PENALTY = 0;
// 指定生成文本的随机性范围是0到2越高表示越多样化和创造性越低表示越保守和确定性。
export const TEMPERATURE = 1;
// 指定在每个步骤中保留概率最高的单词的比例范围是0到1与temperature类似但更加灵活和稳健。
export const TOP_P = 1;