@pixeloffice-eu/x402 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/bin/cli.js +2 -2
- package/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ const client = new PixelRouterX402Client({
|
|
|
27
27
|
|
|
28
28
|
// Autonomous LLM invocation with automatic HTTP 402 negotiation
|
|
29
29
|
const response = await client.createChatCompletion({
|
|
30
|
-
model: '
|
|
30
|
+
model: 'blun-auto', // Or 'deepseek-chat', 'claude-3.5-sonnet'
|
|
31
31
|
messages: [
|
|
32
32
|
{ role: 'user', content: 'Execute autonomous codebase refactor.' }
|
|
33
33
|
]
|
|
@@ -52,7 +52,7 @@ const openai = wrapOpenAI(new OpenAI({
|
|
|
52
52
|
});
|
|
53
53
|
|
|
54
54
|
const completion = await openai.chat.completions.create({
|
|
55
|
-
model: '
|
|
55
|
+
model: 'blun-auto',
|
|
56
56
|
messages: [{ role: 'user', content: 'Hello autonomous world!' }]
|
|
57
57
|
});
|
|
58
58
|
```
|
package/bin/cli.js
CHANGED
|
@@ -29,9 +29,9 @@ async function runDirectAgent() {
|
|
|
29
29
|
sessionId: SESSION_ID
|
|
30
30
|
});
|
|
31
31
|
|
|
32
|
-
console.log('🧠 Invoking
|
|
32
|
+
console.log('🧠 Invoking BLUN-Auto (Sub-35ms Adaptive Routing & Optimization)...');
|
|
33
33
|
const response = await client.createChatCompletion({
|
|
34
|
-
model: '
|
|
34
|
+
model: 'blun-auto',
|
|
35
35
|
messages: [
|
|
36
36
|
{ role: 'system', content: 'You are an autonomous engineering agent.' },
|
|
37
37
|
{ role: 'user', content: 'Design an automated high-throughput data processing pipeline.' }
|
package/index.js
CHANGED
|
@@ -127,7 +127,7 @@ class PixelRouterX402Client {
|
|
|
127
127
|
async createChatCompletion(params = {}) {
|
|
128
128
|
const url = new URL(`${this.baseUrl}/chat/completions`);
|
|
129
129
|
const payload = JSON.stringify({
|
|
130
|
-
model: params.model || '
|
|
130
|
+
model: params.model || 'blun-auto',
|
|
131
131
|
messages: params.messages || [],
|
|
132
132
|
session_id: params.session_id || this.sessionId,
|
|
133
133
|
temperature: params.temperature || 0.7,
|