* Config: add supportsTools compat flag * Agents: add model tool support helper * Venice: sync discovery and fallback metadata * Agents: skip tools for unsupported models * Changelog: note Venice provider hardening * Update CHANGELOG.md * Venice: cap degraded discovery metadata * Apply suggestion from @greptile-apps[bot] Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> * Venice: tolerate partial discovery capabilities * Venice: tolerate missing discovery specs --------- Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
17 lines
608 B
TypeScript
17 lines
608 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { supportsModelTools } from "./model-tool-support.js";
|
|
|
|
describe("supportsModelTools", () => {
|
|
it("defaults to true when the model has no compat override", () => {
|
|
expect(supportsModelTools({} as never)).toBe(true);
|
|
});
|
|
|
|
it("returns true when compat.supportsTools is true", () => {
|
|
expect(supportsModelTools({ compat: { supportsTools: true } } as never)).toBe(true);
|
|
});
|
|
|
|
it("returns false when compat.supportsTools is false", () => {
|
|
expect(supportsModelTools({ compat: { supportsTools: false } } as never)).toBe(false);
|
|
});
|
|
});
|