You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am reading Twinny's code and have found a piece of code that seems to contain a typo. In the getPrompt function of the completion.ts file, a systemMessage is defined and an attempt is made to retrieve it. The parameter passed to the readSystemMessageTemplate function is the string "fim-system.hbs". During the execution of the readSystemMessageTemplate function, the constructed templatePrefix becomes "fim-system.hbs-", and thus the templatePath becomes "fim-system.hbs-system.hbs". Obviously, this template does not exist in template.ts, so the defaultPath will be used by default. Unfortunately, however, "fim-system" is an empty string in template.ts. This is likely a typo—instead, the parameter passed in the getPrompt function of completion.ts should probably be "fim".
I am reading Twinny's code and have found a piece of code that seems to contain a typo. In the
getPromptfunction of thecompletion.tsfile, asystemMessageis defined and an attempt is made to retrieve it. The parameter passed to thereadSystemMessageTemplatefunction is the string "fim-system.hbs". During the execution of thereadSystemMessageTemplatefunction, the constructedtemplatePrefixbecomes "fim-system.hbs-", and thus thetemplatePathbecomes "fim-system.hbs-system.hbs". Obviously, this template does not exist intemplate.ts, so thedefaultPathwill be used by default. Unfortunately, however, "fim-system" is an empty string intemplate.ts. This is likely a typo—instead, the parameter passed in thegetPromptfunction ofcompletion.tsshould probably be "fim".