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
config.ollamaContext?.replace("<languageId>", languageId) + "\n\n" + `End of file context:\n\n${contents.contentAfter}`
for the system-message, and,
`Start of file context:\n\n${contents.contentBefore}`
for the user-message, something like, config.ollamaSystemMessage?.replace("<languageId>", languageId).replace("<contentBefore>", contents.contentBefore).replace("<contentAfter>", contents.contentAfter) for the system-message, and config.ollamaUserMessage?.replace("<languageId>", languageId).replace("<contentBefore>", contents.contentBefore).replace("<contentAfter>", contents.contentAfter) for the user-message. The default messages can still be the same, and users can still create the same messages as before, but this allows greater customization.
P.S. It would be nice to similarly customize chat-messages. However, that may be better handled by fully customizing actions.
The text was updated successfully, but these errors were encountered:
The system-message can be partially customized using options like
--ollamaContext
. However, a portion of the system-message and all the user-message is hard-coded, https://github.com/leona/helix-gpt/blob/master/src/providers/ollama.ts#L68. The hard-coded messages work poorly for some models and use-cases.How about, instead of,
for the system-message, and,
for the user-message, something like,
config.ollamaSystemMessage?.replace("<languageId>", languageId).replace("<contentBefore>", contents.contentBefore).replace("<contentAfter>", contents.contentAfter)
for the system-message, andconfig.ollamaUserMessage?.replace("<languageId>", languageId).replace("<contentBefore>", contents.contentBefore).replace("<contentAfter>", contents.contentAfter)
for the user-message. The default messages can still be the same, and users can still create the same messages as before, but this allows greater customization.P.S. It would be nice to similarly customize chat-messages. However, that may be better handled by fully customizing actions.
The text was updated successfully, but these errors were encountered: