You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
524 B
24 lines
524 B
interface GPTPrompt {
|
|
role: "system" | "user" | "assistant" | "function";
|
|
content: string;
|
|
}
|
|
|
|
interface GPTRequest {
|
|
systemPrompt?: string;
|
|
userPrompt?: string;
|
|
prompt?: string;
|
|
assistantPrompt?: string;
|
|
messages?: GPTPrompt[];
|
|
max_tokens?: number;
|
|
temperature?: number;
|
|
top_p?: number;
|
|
logit_bias?: { [tokenId: number]: number };
|
|
user?: string;
|
|
n?: number;
|
|
stream?: boolean;
|
|
stop?: string | string[];
|
|
presence_penalty?: number;
|
|
frequency_penalty?: number;
|
|
}
|
|
|
|
export {GPTPrompt, GPTRequest} |