mirror of
https://github.com/moltbot/moltbot.git
synced 2026-04-25 23:47:20 +00:00
test: fix remaining gate drift after main rebase (#52195) (thanks @meng-clb)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { afterEach, describe, expect, it, vi } from "vitest";
|
||||
import type { OpenClawConfig } from "openclaw/plugin-sdk/config-runtime";
|
||||
import { afterEach, describe, expect, it, vi } from "vitest";
|
||||
import {
|
||||
DEFAULT_FIRECRAWL_BASE_URL,
|
||||
DEFAULT_FIRECRAWL_MAX_AGE_MS,
|
||||
|
||||
@@ -14,10 +14,7 @@ describe("kimi web search provider", () => {
|
||||
it("extracts unique citations from search results and tool call arguments", () => {
|
||||
expect(
|
||||
__testing.extractKimiCitations({
|
||||
search_results: [
|
||||
{ url: "https://a.test" },
|
||||
{ url: "https://b.test" },
|
||||
],
|
||||
search_results: [{ url: "https://a.test" }, { url: "https://b.test" }],
|
||||
choices: [
|
||||
{
|
||||
message: {
|
||||
|
||||
@@ -15,9 +15,9 @@ describe("perplexity web search provider", () => {
|
||||
expect(__testing.resolvePerplexityBaseUrl(undefined, "openrouter_env")).toBe(
|
||||
"https://openrouter.ai/api/v1",
|
||||
);
|
||||
expect(__testing.resolvePerplexityRequestModel("https://api.perplexity.ai", "perplexity/sonar-pro")).toBe(
|
||||
"sonar-pro",
|
||||
);
|
||||
expect(
|
||||
__testing.resolvePerplexityRequestModel("https://api.perplexity.ai", "perplexity/sonar-pro"),
|
||||
).toBe("sonar-pro");
|
||||
expect(
|
||||
__testing.resolvePerplexityRequestModel(
|
||||
"https://openrouter.ai/api/v1",
|
||||
|
||||
Reference in New Issue
Block a user