Skip to content

Commit

Permalink
fix ooba fim and update default setup
Browse files Browse the repository at this point in the history
  • Loading branch information
rjmacarthy committed Apr 17, 2024
1 parent 40c67a7 commit 6ed0b4d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/extension/provider-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,20 +82,27 @@ export function createStreamRequestBodyFim(
n_predict: options.numPredictFim
}
case ApiProviders.LlamaCpp:
case ApiProviders.Oobabooga:
return {
prompt,
stream: true,
temperature: options.temperature,
n_predict: options.numPredictFim
}
case ApiProviders.LiteLLM:
default:
return {
messages: [{ content: prompt, role: USER }],
model: options.model,
stream: true,
max_tokens: options.numPredictFim,
temperature: options.temperature
}
default:
return {
prompt,
stream: true,
temperature: options.temperature,
n_predict: options.numPredictFim
}
}
}

0 comments on commit 6ed0b4d

Please sign in to comment.