Better fallback fim / autocomplete prompt template
This commit is contained in:
parent
4ba3d98e26
commit
bd5705da2f
1 changed files with 1 additions and 1 deletions
|
|
@ -476,7 +476,7 @@ export abstract class BaseLLM implements ILLM {
|
|||
): AsyncGenerator<string> {
|
||||
const { completionOptions, log } = this._parseCompletionOptions(options);
|
||||
|
||||
const madeUpFimPrompt = `${prefix}<FIM>${suffix}`;
|
||||
const madeUpFimPrompt = `<|fim_prefix|>${prefix}<|fim_suffix|>${suffix}<|fim_middle|>`;
|
||||
if (log) {
|
||||
if (this.writeLog) {
|
||||
await this.writeLog(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue