Skip to content

Commit

Permalink
add other to provider options to use defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
rjmacarthy committed Mar 27, 2024
1 parent 1196544 commit 901584a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,8 @@
"ollama",
"llamacpp",
"lmstudio",
"oobabooga"
"oobabooga",
"other"
],
"default": "ollama",
"description": "The API provider to use (sets the paths and port automatically to defaults)."
Expand Down
3 changes: 2 additions & 1 deletion src/common/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ export const ApiProviders = {
OllamaWebUi: 'ollamawebui',
LlamaCpp: 'llamacpp',
LMStudio: 'lmstudio',
Oobabooga: 'oobabooga'
Oobabooga: 'oobabooga',
Other: 'other'
} as const

export interface OllamaModel {
Expand Down
2 changes: 1 addition & 1 deletion src/extension/model-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ export function createStreamRequestBody(
temperature: options.temperature,
n_predict: options.numPredictChat
}
case ApiProviders.Other:
default:
return {
model: options.model,
prompt,
stream: true,
max_tokens: options.numPredictChat,
messages: options.messages,
Expand Down

0 comments on commit 901584a

Please sign in to comment.