What's Changed
- added
createChatCompletion
--> #140
Example:
const messages: WllamaChatMessage[] = [
{ role: 'system', content: 'You are helpful.' },
{ role: 'user', content: 'Hi!' },
{ role: 'assistant', content: 'Hello!' },
{ role: 'user', content: 'How are you?' },
];
const completion = await wllama.createChatCompletion(messages, {
nPredict: 10,
});