ai
Version:
AI SDK by Vercel - build apps like ChatGPT, Claude, Gemini, and more with a single interface for any model using the Vercel AI Gateway or go direct to OpenAI, Anthropic, Google, or any other model provider.
22 lines (20 loc) • 446 B
text/typescript
import { logWarnings } from '../logger/log-warnings';
export function logV2CompatibilityWarning({
provider,
modelId,
}: {
provider: string;
modelId: string;
}): void {
logWarnings({
warnings: [
{
type: 'compatibility',
feature: 'specificationVersion',
details: `Using v2 specification compatibility mode. Some features may not be available.`,
},
],
provider,
model: modelId,
});
}