@x12i/ai-dispatcher 2.1.0 → 2.2.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/README.md +4 -2
- package/dist/index.cjs +6 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +9 -1
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _x12i_openrouter_runtime from '@x12i/openrouter-runtime';
|
|
2
2
|
import { RuntimeToolExecutor, RuntimeLogger, RuntimeRequest, RuntimeResponse, RuntimeUsage, RuntimeStreamEvent, CompiledOpenRouterRequest, OpenRouterRuntimeOptions } from '@x12i/openrouter-runtime';
|
|
3
|
-
export { CompiledOpenRouterRequest, OpenRouterRuntimeOptions, RuntimeDefaults, RuntimeLogger, RuntimeMessage, RuntimeRequest, RuntimeResponse, RuntimeServerToolsPolicy, RuntimeStreamEvent, decodeProviderMetadata } from '@x12i/openrouter-runtime';
|
|
3
|
+
export { CompiledOpenRouterRequest, METADATA_NORMALIZATION_MAP, NormalizedMetadataKey, OpenRouterRuntimeOptions, RuntimeDefaults, RuntimeLogger, RuntimeMessage, RuntimeRequest, RuntimeResponse, RuntimeServerToolsPolicy, RuntimeStreamEvent, canonicalMetadataKey, decodeProviderMetadata, normalizeMetadata } from '@x12i/openrouter-runtime';
|
|
4
4
|
import { ReasoningEffort, ReasoningOutcome } from '@x12i/ai-profiles';
|
|
5
5
|
export { ReasoningEffort, ReasoningOutcome } from '@x12i/ai-profiles';
|
|
6
6
|
import { CompiledBedrockRequest, BedrockRuntimeOptions } from '@x12i/bedrock-runtime';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _x12i_openrouter_runtime from '@x12i/openrouter-runtime';
|
|
2
2
|
import { RuntimeToolExecutor, RuntimeLogger, RuntimeRequest, RuntimeResponse, RuntimeUsage, RuntimeStreamEvent, CompiledOpenRouterRequest, OpenRouterRuntimeOptions } from '@x12i/openrouter-runtime';
|
|
3
|
-
export { CompiledOpenRouterRequest, OpenRouterRuntimeOptions, RuntimeDefaults, RuntimeLogger, RuntimeMessage, RuntimeRequest, RuntimeResponse, RuntimeServerToolsPolicy, RuntimeStreamEvent, decodeProviderMetadata } from '@x12i/openrouter-runtime';
|
|
3
|
+
export { CompiledOpenRouterRequest, METADATA_NORMALIZATION_MAP, NormalizedMetadataKey, OpenRouterRuntimeOptions, RuntimeDefaults, RuntimeLogger, RuntimeMessage, RuntimeRequest, RuntimeResponse, RuntimeServerToolsPolicy, RuntimeStreamEvent, canonicalMetadataKey, decodeProviderMetadata, normalizeMetadata } from '@x12i/openrouter-runtime';
|
|
4
4
|
import { ReasoningEffort, ReasoningOutcome } from '@x12i/ai-profiles';
|
|
5
5
|
export { ReasoningEffort, ReasoningOutcome } from '@x12i/ai-profiles';
|
|
6
6
|
import { CompiledBedrockRequest, BedrockRuntimeOptions } from '@x12i/bedrock-runtime';
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
// src/index.ts
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
decodeProviderMetadata,
|
|
4
|
+
METADATA_NORMALIZATION_MAP,
|
|
5
|
+
canonicalMetadataKey,
|
|
6
|
+
normalizeMetadata
|
|
7
|
+
} from "@x12i/openrouter-runtime";
|
|
3
8
|
|
|
4
9
|
// src/create-dispatcher.ts
|
|
5
10
|
import { createMetadataPacker } from "@x12i/provider-metadata";
|
|
@@ -3663,9 +3668,12 @@ export {
|
|
|
3663
3668
|
AiDispatcherError,
|
|
3664
3669
|
DEFAULT_METADATA_PRIORITY,
|
|
3665
3670
|
IMPLEMENTED_AI_PROVIDERS,
|
|
3671
|
+
METADATA_NORMALIZATION_MAP,
|
|
3672
|
+
canonicalMetadataKey,
|
|
3666
3673
|
createAiDispatcher,
|
|
3667
3674
|
decodeProviderMetadata,
|
|
3668
3675
|
isImplementedAiProvider,
|
|
3676
|
+
normalizeMetadata,
|
|
3669
3677
|
providerNotImplemented,
|
|
3670
3678
|
resolveProvider,
|
|
3671
3679
|
stripReasoningHistoryFields
|