chore: normalize structure and split ipc handlers (#590)
Co-authored-by: Haze <709547807@qq.com>
This commit is contained in:
committed by
GitHub
Unverified
parent
884aa7c7f1
commit
6b82c6ccb4
8
scripts/manual/test-anthropic-url.js
Normal file
8
scripts/manual/test-anthropic-url.js
Normal file
@@ -0,0 +1,8 @@
|
||||
const { Anthropic } = require('@anthropic-ai/sdk');
|
||||
const client = new Anthropic({ apiKey: 'test', baseURL: 'https://api.minimaxi.com/anthropic' });
|
||||
const req = client.buildRequest({ method: 'post', path: '/messages', body: {} });
|
||||
console.log('Build Request URL:', req.url);
|
||||
|
||||
const client2 = new Anthropic({ apiKey: 'test', baseURL: 'https://api.minimaxi.com/anthropic/v1' });
|
||||
const req2 = client2.buildRequest({ method: 'post', path: '/messages', body: {} });
|
||||
console.log('Build Request URL 2:', req2.url);
|
||||
8
scripts/manual/test-anthropic.js
Normal file
8
scripts/manual/test-anthropic.js
Normal file
@@ -0,0 +1,8 @@
|
||||
const { Anthropic } = require('@anthropic-ai/sdk');
|
||||
const client = new Anthropic({ apiKey: 'test', baseURL: 'https://api.minimaxi.com/anthropic' });
|
||||
const req = client.buildRequest({ method: 'post', path: '/messages', body: {} });
|
||||
console.log('Build Request URL 1:', req.url);
|
||||
|
||||
const client2 = new Anthropic({ apiKey: 'test', baseURL: 'https://api.minimaxi.com/anthropic/v1' });
|
||||
const req2 = client2.buildRequest({ method: 'post', path: '/messages', body: {} });
|
||||
console.log('Build Request URL 2:', req2.url);
|
||||
Reference in New Issue
Block a user