@core-ai/openai-compat 0.25.0 → 0.26.0
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/dist/index.d.ts +9 -2
- package/dist/index.js +0 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChatModel } from '@core-ai/core-ai';
|
|
2
|
-
import { OpenAIProviderBaseOptions, OpenAIStructuredOutputMode, OpenAICompatibilityOptions } from '@core-ai/openai';
|
|
2
|
+
import { OpenAIProviderBaseOptions, OpenAIStructuredOutputMode, OpenAICompatibilityOptions, OpenAIChatGenerateProviderOptions } from '@core-ai/openai';
|
|
3
3
|
|
|
4
4
|
type OpenAICompatProviderOptions = OpenAIProviderBaseOptions & {
|
|
5
5
|
/** Whether to extract nonstandard reasoning response fields. Defaults to `true`. */
|
|
@@ -21,4 +21,11 @@ type OpenAICompatProvider = {
|
|
|
21
21
|
};
|
|
22
22
|
declare function createOpenAICompat(options?: OpenAICompatProviderOptions): OpenAICompatProvider;
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
type OpenAICompatGenerateProviderOptions = OpenAIChatGenerateProviderOptions;
|
|
25
|
+
declare module '@core-ai/core-ai' {
|
|
26
|
+
interface GenerateProviderOptions {
|
|
27
|
+
'openai-compat'?: OpenAICompatGenerateProviderOptions;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { type OpenAICompatGenerateProviderOptions, type OpenAICompatProvider, type OpenAICompatProviderOptions, createOpenAICompat };
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@core-ai/openai-compat",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.26.0",
|
|
4
4
|
"description": "OpenAI-compatible Chat Completions provider for @core-ai/core-ai",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Omnifact (https://omnifact.ai)",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"test:watch": "vitest"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@core-ai/core-ai": "^0.
|
|
49
|
-
"@core-ai/openai": "^0.
|
|
48
|
+
"@core-ai/core-ai": "^0.26.0",
|
|
49
|
+
"@core-ai/openai": "^0.26.0"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"zod": "^4.0.0"
|