Skip to content

Instantly share code, notes, and snippets.

@kamilio
Last active February 20, 2026 16:12
Show Gist options
  • Select an option

  • Save kamilio/698546321347f42a9e519d9dc3fb4558 to your computer and use it in GitHub Desktop.

Select an option

Save kamilio/698546321347f42a9e519d9dc3fb4558 to your computer and use it in GitHub Desktop.
Poe Opus 4.6 test scripts and package.json
{
"name": "investigation-scripts",
"version": "1.0.0",
"description": "",
"main": "test_poe_opus46_anthropic.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"type": "module",
"dependencies": {
"@anthropic-ai/sdk": "^0.78.0",
"dotenv": "^17.3.1",
"openai": "^6.22.0",
"tokenfill": "^0.0.2"
}
}
#!/usr/bin/env node
import "dotenv/config";
import Anthropic from "@anthropic-ai/sdk";
import { tokenfill } from "tokenfill";
if (!process.env.POE_API_KEY) throw new Error("Missing POE_API_KEY in .env");
const client = new Anthropic({
apiKey: process.env.POE_API_KEY,
max_tokens: 10000,
baseURL: "https://api.poe.com",
});
const message = await client.messages.create({
model: "claude-opus-4-6",
messages: [{ role: "user", content: tokenfill(900000).text }],
});
console.log(
message.content
?.filter((block) => block?.type === "text")
.map((block) => block.text)
.join("\n") ?? "",
);
#!/usr/bin/env node
import "dotenv/config";
import OpenAI from "openai";
import { tokenfill } from "tokenfill";
if (!process.env.POE_API_KEY) throw new Error("Missing POE_API_KEY in .env");
const client = new OpenAI({
apiKey: process.env.POE_API_KEY,
baseURL: "https://api.poe.com/v1",
});
const completion = await client.chat.completions.create({
model: "Claude-Opus-4.6",
messages: [{ role: "user", content: tokenfill(800000).text }],
});
console.log(completion.choices?.[0]?.message?.content ?? "");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment