Skip to content

2.1.0

Latest
Compare
Choose a tag to compare
@ngxson ngxson released this 06 Dec 17:49
ee31d9f

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,
});