Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ export const MAX_TOKENS = 500;
// Add generation/sampling parameters here. Their effect depends on the API provider.
// No attempt is made to normalize these parameters across different providers.
// They are passed to the API endpoint unmodified.
// Model name parameter is ignored by most OpenAI-compatible local API providers but sometimes required for remote API providers,
// For model name paramater, use full name e.g. "mistralai/Mixtral-8x22B-Instruct-v0.1" (Note, top_k value of 1 also sometimes required.)
export const PARAMS = {
model: "gpt-3.5-turbo-instruct",
temperature: 1.0,
top_k: 0,
top_p: 1.0,
Expand Down
2 changes: 0 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ function scrollEmbedIntoView() {
async function streamText(prompt: string, pane: Element): Promise<string> {
const params: OpenAI.CompletionCreateParamsStreaming = {
stream: true,
// This parameter is ignored by most OpenAI-compatible local API providers.
model: "gpt-3.5-turbo-instruct",
prompt: prompt,
max_tokens: MAX_TOKENS,
// @ts-ignore: llama.cpp
Expand Down