lazy-llm-api
v1.0.2
Published
```js import LLM from 'lazy-llm-api';
Downloads
2
Readme
lazy-llm-api
import LLM from 'lazy-llm-api';
const llm = new LLM( process.env.SK,'https://claude.ai');
const response = await llm.completion({
messages: [
{
"role": "user",
"content": "「众里寻他千百度」来自哪首诗",
}
],
model: "claude-2",
onMessage: (message) => {
console.log(message);
},
onEnd: (message) => {
console.log("on end");
console.log(message);
}
});
console.log( "async end", response );