@fudrouter/fsrouter 0.6.109 → 0.6.110
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.
|
@@ -2,7 +2,7 @@ import { getProviderNodeById } from "../../../models/index.js";
|
|
|
2
2
|
import { isOpenAICompatibleProvider, isAnthropicCompatibleProvider, isCustomEmbeddingProvider, AI_PROVIDERS } from "../../../shared/constants/providers.js";
|
|
3
3
|
import { getDefaultModel } from "../../../open-sse/config/providerModels.js";
|
|
4
4
|
import { resolveOllamaLocalHost, resolveXiaomiTokenplanBaseUrl, PROVIDERS } from "../../../open-sse/config/providers.js";
|
|
5
|
-
import {
|
|
5
|
+
import { openaiToCommandCodeRequest } from "../../../open-sse/translator/request/openai-to-commandcode.js";
|
|
6
6
|
import { PROVIDER_ENDPOINTS } from "../../../shared/constants/config.js";
|
|
7
7
|
import { normalizeProviderId } from "../../../lib/providerNormalization.js";
|
|
8
8
|
// Probe a webSearch/webFetch provider using its searchConfig/fetchConfig.
|
|
@@ -415,7 +415,7 @@ export async function POST_handler(req, res) {
|
|
|
415
415
|
case "commandcode": {
|
|
416
416
|
const cfg = PROVIDERS.commandcode;
|
|
417
417
|
const model = getDefaultModel("commandcode");
|
|
418
|
-
const payload =
|
|
418
|
+
const payload = openaiToCommandCodeRequest(model, {
|
|
419
419
|
messages: [{ role: "user", content: "ping" }],
|
|
420
420
|
max_tokens: 1,
|
|
421
421
|
stream: false,
|