add Penalty Decay slider to Chat page

This commit is contained in:
josc146
2024-02-03 22:40:30 +08:00
parent 843840baa0
commit 932281db0a
8 changed files with 42 additions and 9 deletions

View File

@@ -5,6 +5,7 @@ export type ApiParameters = {
topP: number;
presencePenalty: number;
frequencyPenalty: number;
penaltyDecay?: number;
}
export type Device = 'CPU' | 'CPU (rwkv.cpp)' | 'CUDA' | 'CUDA-Beta' | 'WebGPU' | 'WebGPU (Python)' | 'MPS' | 'Custom';
export type Precision = 'fp16' | 'int8' | 'fp32' | 'nf4' | 'Q5_1';