@flutchai/flutch-sdk 0.2.14 → 0.2.15
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 +37 -0
- package/dist/index.cjs +7 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6625,12 +6625,17 @@ var ModelInitializer = class _ModelInitializer {
|
|
|
6625
6625
|
modelName,
|
|
6626
6626
|
defaultTemperature,
|
|
6627
6627
|
defaultMaxTokens,
|
|
6628
|
-
apiToken
|
|
6628
|
+
apiToken,
|
|
6629
|
+
baseURL
|
|
6629
6630
|
}) => new ChatMistralAI({
|
|
6630
6631
|
model: modelName,
|
|
6631
6632
|
temperature: defaultTemperature,
|
|
6632
6633
|
maxTokens: defaultMaxTokens,
|
|
6633
|
-
apiKey: apiToken || this.resolveApiKey("mistral" /* MISTRAL */)
|
|
6634
|
+
apiKey: apiToken || this.resolveApiKey("mistral" /* MISTRAL */),
|
|
6635
|
+
// Route through the same gateway as OpenAI/Anthropic.
|
|
6636
|
+
// Without serverURL, ChatMistralAI ignores FLUTCH_ROUTER_URL and calls
|
|
6637
|
+
// api.mistral.ai directly — inconsistent with other providers.
|
|
6638
|
+
serverURL: `${resolveRouterURL(baseURL)}/v1`
|
|
6634
6639
|
}),
|
|
6635
6640
|
["voyageai" /* VOYAGEAI */]: () => {
|
|
6636
6641
|
throw new Error("VoyageAI chat models not implemented");
|