@core-ai/omnifact 0.24.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 CHANGED
@@ -1,4 +1,5 @@
1
1
  import { ChatModel } from '@core-ai/core-ai';
2
+ import { OpenAIChatGenerateProviderOptions } from '@core-ai/openai';
2
3
 
3
4
  type OmnifactProviderOptions = {
4
5
  apiKey?: string;
@@ -11,4 +12,11 @@ declare function createOmnifact(options?: OmnifactProviderOptions): OmnifactProv
11
12
 
12
13
  declare const DEFAULT_BASE_URL = "https://connect.omnifact.ai/v1/gateway";
13
14
 
14
- export { DEFAULT_BASE_URL, type OmnifactProvider, type OmnifactProviderOptions, createOmnifact };
15
+ type OmnifactGenerateProviderOptions = OpenAIChatGenerateProviderOptions;
16
+ declare module '@core-ai/core-ai' {
17
+ interface GenerateProviderOptions {
18
+ omnifact?: OmnifactGenerateProviderOptions;
19
+ }
20
+ }
21
+
22
+ export { DEFAULT_BASE_URL, type OmnifactGenerateProviderOptions, type OmnifactProvider, type OmnifactProviderOptions, createOmnifact };
package/dist/index.js CHANGED
@@ -16,7 +16,6 @@ function createOmnifact(options = {}) {
16
16
  },
17
17
  {
18
18
  providerId: "omnifact",
19
- providerOptionsKey: "openai",
20
19
  defaultApi: "chat-completions",
21
20
  compatibility: {
22
21
  maxTokensParameter: "max_completion_tokens"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@core-ai/omnifact",
3
- "version": "0.24.0",
3
+ "version": "0.26.0",
4
4
  "description": "Omnifact provider package for @core-ai/core-ai",
5
5
  "license": "MIT",
6
6
  "author": "Omnifact (https://omnifact.ai)",
@@ -44,8 +44,8 @@
44
44
  "test:watch": "vitest"
45
45
  },
46
46
  "dependencies": {
47
- "@core-ai/core-ai": "^0.24.0",
48
- "@core-ai/openai": "^0.24.0"
47
+ "@core-ai/core-ai": "^0.26.0",
48
+ "@core-ai/openai": "^0.26.0"
49
49
  },
50
50
  "peerDependencies": {
51
51
  "zod": "^4.0.0"