summaryrefslogtreecommitdiff
path: root/packages/ai/tests/vllm.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/ai/tests/vllm.ts')
-rw-r--r--packages/ai/tests/vllm.ts23
1 files changed, 23 insertions, 0 deletions
diff --git a/packages/ai/tests/vllm.ts b/packages/ai/tests/vllm.ts
new file mode 100644
index 0000000..1c57586
--- /dev/null
+++ b/packages/ai/tests/vllm.ts
@@ -0,0 +1,23 @@
+import models, { type AIModelAPI, type LLMChoice } from "../index";
+
+const model = "Qwen/Qwen3-VL-8B-Instruct-FP8";
+
+const api = models({
+ openai: { url: "http://localhost:3000/v1", apiKey: "EMPTY", model },
+});
+
+// const r1 = await api.send("你觉得这样下去可以吗?你不觉得可耻吗");
+// const r1 = await api.send("Why is VLLM so fucking annoying to run");
+const r1 = await api.send(
+ "Phrenology is true and I'm tired of pretending it isn't",
+);
+console.log({ r1 });
+// const r2 = await api.send([
+// {
+// // img: "https://ofasys-multimodal-wlcb-3-toshanghai.oss-accelerate.aliyuncs.com/wpf272043/keepme/image/receipt.png",
+// img: "https://www.khaosod.co.th/wpapp/uploads/2025/10/co-pay-.jpg",
+// },
+// { text: "Read all the text in the image" },
+// // { text: "Read all the text in the image and describe the scene" },
+// ]);
+// console.log({ r2 });