@probelabs/probe 0.6.0-rc334 → 0.6.0-rc335
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/bin/binaries/{probe-v0.6.0-rc334-aarch64-apple-darwin.tar.gz → probe-v0.6.0-rc335-aarch64-apple-darwin.tar.gz} +0 -0
- package/bin/binaries/{probe-v0.6.0-rc334-aarch64-unknown-linux-musl.tar.gz → probe-v0.6.0-rc335-aarch64-unknown-linux-musl.tar.gz} +0 -0
- package/bin/binaries/{probe-v0.6.0-rc334-x86_64-apple-darwin.tar.gz → probe-v0.6.0-rc335-x86_64-apple-darwin.tar.gz} +0 -0
- package/bin/binaries/{probe-v0.6.0-rc334-x86_64-pc-windows-msvc.zip → probe-v0.6.0-rc335-x86_64-pc-windows-msvc.zip} +0 -0
- package/bin/binaries/{probe-v0.6.0-rc334-x86_64-unknown-linux-musl.tar.gz → probe-v0.6.0-rc335-x86_64-unknown-linux-musl.tar.gz} +0 -0
- package/build/utils/provider.js +11 -1
- package/cjs/agent/ProbeAgent.cjs +2524 -65
- package/cjs/index.cjs +2524 -65
- package/package.json +2 -1
- package/src/utils/provider.js +11 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@probelabs/probe",
|
|
3
|
-
"version": "0.6.0-
|
|
3
|
+
"version": "0.6.0-rc335",
|
|
4
4
|
"description": "Node.js wrapper for the probe code search tool",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"module": "src/index.js",
|
|
@@ -82,6 +82,7 @@
|
|
|
82
82
|
"@ai-sdk/anthropic": "^3.0.58",
|
|
83
83
|
"@ai-sdk/google": "^3.0.43",
|
|
84
84
|
"@ai-sdk/openai": "^3.0.41",
|
|
85
|
+
"@ai-sdk/openai-compatible": "^2.0.74",
|
|
85
86
|
"@anthropic-ai/claude-agent-sdk": "^0.1.46",
|
|
86
87
|
"@modelcontextprotocol/sdk": "^1.0.0",
|
|
87
88
|
"@nyariv/sandboxjs": "git+https://github.com/probelabs/SandboxJS.git#d0d8c8ab3113d3b73e08b79b88a4b834ba3fae11",
|
package/src/utils/provider.js
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import { createAnthropic } from '@ai-sdk/anthropic';
|
|
9
9
|
import { createOpenAI } from '@ai-sdk/openai';
|
|
10
|
+
import { createOpenAICompatible } from '@ai-sdk/openai-compatible';
|
|
10
11
|
import { createGoogleGenerativeAI } from '@ai-sdk/google';
|
|
11
12
|
import { createAmazonBedrock } from '@ai-sdk/amazon-bedrock';
|
|
12
13
|
|
|
@@ -31,10 +32,19 @@ export function createProviderInstance(config) {
|
|
|
31
32
|
});
|
|
32
33
|
|
|
33
34
|
case 'openai': {
|
|
35
|
+
if (config.baseURL) {
|
|
36
|
+
// Non-OpenAI endpoints (Fireworks, etc.) — use openai-compatible provider
|
|
37
|
+
// which correctly handles reasoning_content in streaming deltas
|
|
38
|
+
const provider = createOpenAICompatible({
|
|
39
|
+
name: 'openai-compatible',
|
|
40
|
+
baseURL: config.baseURL,
|
|
41
|
+
apiKey: config.apiKey,
|
|
42
|
+
});
|
|
43
|
+
return provider;
|
|
44
|
+
}
|
|
34
45
|
const openai = createOpenAI({
|
|
35
46
|
compatibility: 'strict',
|
|
36
47
|
apiKey: config.apiKey,
|
|
37
|
-
...(config.baseURL && { baseURL: config.baseURL })
|
|
38
48
|
});
|
|
39
49
|
const chatProvider = (modelId, settings) => openai.chat(modelId, settings);
|
|
40
50
|
chatProvider.chat = openai.chat.bind(openai);
|