!refactor(xai): move x_search config behind plugin boundary (#59674)

* refactor(xai): move x_search config behind plugin boundary

* chore(changelog): note x_search config migration

* fix(xai): include x_search migration helpers
This commit is contained in:
Vincent Koc
2026-04-02 22:08:59 +09:00
committed by GitHub
parent ef7c553dd1
commit 3e4de956c0
34 changed files with 788 additions and 420 deletions

View File

@@ -29,7 +29,7 @@ describe("runSearchSetupFlow", () => {
provider: "grok",
enabled: true,
});
expect(next.tools?.web?.x_search).toMatchObject({
expect(next.plugins?.entries?.xai?.config?.xSearch).toMatchObject({
enabled: true,
model: "grok-4-1-fast",
});
@@ -77,7 +77,7 @@ describe("runSearchSetupFlow", () => {
provider: "grok",
enabled: false,
});
expect(next.tools?.web?.x_search).toMatchObject({
expect(next.plugins?.entries?.xai?.config?.xSearch).toMatchObject({
enabled: true,
model: "grok-4-1-fast",
});