Skip to content

Commit

Permalink
add a default LM Studio preset
Browse files Browse the repository at this point in the history
  • Loading branch information
nvms committed Dec 4, 2023
1 parent 5585615 commit cd7f534
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
14 changes: 7 additions & 7 deletions extension/dist/extension.umd.js

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions extension/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,18 @@ export const createDefaultPresetsForAllModes = () => {
completionParams: {
...getProviderCompletionParamDefaults("Anthropic") as any,
},
},
{
id: generateId(),
name: "LM Studio",
provider: "OpenAI",
format: "Anthropic",
tokenizer: "OpenAI",
url: "http://localhost:1234/v1/chat/completions",
system: systems.get(mode.id),
completionParams: {
...getProviderCompletionParamDefaults("OpenAI") as any,
},
}
] as Preset[]);
State.set(`${mode.id}-activePreset`, State.get(`${mode.id}-presets`)[0]);
Expand Down

0 comments on commit cd7f534

Please sign in to comment.