mirror of
https://github.com/run-llama/LlamaIndexTS.git
synced 2026-07-22 15:25:31 -04:00
10 lines
281 B
TypeScript
10 lines
281 B
TypeScript
import { DeuceChatStrategy, LlamaDeuce } from "llamaindex";
|
|
|
|
(async () => {
|
|
const deuce = new LlamaDeuce({ chatStrategy: DeuceChatStrategy.META });
|
|
const result = await deuce.chat({
|
|
messages: [{ content: "Hello, world!", role: "user" }],
|
|
});
|
|
console.log(result);
|
|
})();
|