Repository Analysis

vercel/ai

The AI Toolkit for TypeScript. From the creators of Next.js, the AI SDK is a free open-source library for building AI-powered applications and agents

2.1 Likely human-written View on GitHub
2.1
Adjusted Score
2.1
Raw Score
100%
Time Factor
2026-05-30
Last Push
24,547
Stars
TypeScript
Language
788,162
Lines of Code
5701
Files
596
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 2HIGH 192MEDIUM 21LOW 381

Pattern Findings

596 matches across 14 categories. Click a row to expand file-level details.

Cross-Language Confusion (JS/TS)174 hits · 1078 pts
SeverityFileLineSnippet
HIGH…ns/src/middleware/embedding/google-default-settings.ts35 print('Embedding length:', result.embedding.length);
HIGH…ctions/src/stream-text/google/vertex-combined-tools.ts39 print('Request body:', (await result.request).body);
HIGH…ctions/src/stream-text/google/vertex-combined-tools.ts40 print('Raw response chunks:', rawChunks);
HIGH…ctions/src/stream-text/google/vertex-combined-tools.ts41 print('Response metadata:', await result.response);
HIGH…es/ai-functions/src/stream-text/anthropic/fast-mode.ts23 print('Usage:', await result.usage);
HIGH…es/ai-functions/src/stream-text/anthropic/fast-mode.ts24 print('Finish reason:', await result.finishReason);
HIGH…-functions/src/stream-text/anthropic/tool-call-8516.ts104 print('Request body:', (await result.request).body);
HIGH…s/src/stream-text/anthropic/subagent-with-telemetry.ts53 print('Usage:', await result.usage);
HIGH…s/src/stream-text/anthropic/subagent-with-telemetry.ts54 print('Finish reason:', await result.finishReason);
HIGHexamples/ai-functions/src/stream-text/anthropic/mcp.ts30 print('Request body:', (await result.request).body);
HIGHexamples/ai-functions/src/stream-text/anthropic/mcp.ts31 print('Warnings:', await result.warnings);
HIGH…amples/ai-functions/src/stream-text/anthropic/basic.ts16 print('Usage:', await result.usage);
HIGH…amples/ai-functions/src/stream-text/anthropic/basic.ts17 print('Finish reason:', await result.finishReason);
HIGH…amples/ai-functions/src/stream-text/anthropic/basic.ts18 print('Raw finish reason:', await result.rawFinishReason);
HIGH…mples/ai-functions/src/stream-text/anthropic/skills.ts36 print('container', anthropicContainer);
HIGH…s/src/stream-text/anthropic/mid-conversation-system.ts40 print('Usage:', await result.usage);
HIGH…s/ai-functions/src/stream-text/openai/timeout-total.ts16 print('Usage:', await result.usage);
HIGH…s/ai-functions/src/stream-text/openai/timeout-total.ts17 print('Finish reason:', await result.finishReason);
HIGH…s/ai-functions/src/stream-text/openai/output-object.ts42 print('Output:', await result.output);
HIGH…es/ai-functions/src/stream-text/openai/timeout-step.ts31 print('Usage:', await result.usage);
HIGH…es/ai-functions/src/stream-text/openai/timeout-step.ts32 print('Finish reason:', await result.finishReason);
HIGH…es/ai-functions/src/stream-text/openai/timeout-step.ts33 print('Steps:', (await result.steps).length);
HIGH…i-functions/src/stream-text/openai/step-performance.ts48 print('Tool result:', chunk.output);
HIGH…i-functions/src/stream-text/openai/step-performance.ts54 print('Usage:', chunk.usage);
HIGH…i-functions/src/stream-text/openai/step-performance.ts65 print(
HIGH…i-functions/src/stream-text/openai/step-performance.ts69 print('Final step performance:', (await result.finalStep).performance);
HIGH…i-functions/src/stream-text/openai/step-performance.ts70 print('Total usage:', await result.usage);
HIGHexamples/ai-functions/src/stream-text/openai/basic.ts16 print('Usage:', await result.usage);
HIGHexamples/ai-functions/src/stream-text/openai/basic.ts17 print('Finish reason:', await result.finishReason);
HIGHexamples/ai-functions/src/stream-text/openai/basic.ts18 print('Raw finish reason:', await result.rawFinishReason);
HIGH…/ai-functions/src/stream-text/openai/output-default.ts20 print('Output:', await result.output);
HIGHexamples/ai-functions/src/stream-text/openai/timeout.ts16 print('Usage:', await result.usage);
HIGHexamples/ai-functions/src/stream-text/openai/timeout.ts17 print('Finish reason:', await result.finishReason);
HIGH…ons/src/stream-text/openai/include-request-messages.ts20 print('Request metadata:', await result.request);
HIGH…s/ai-functions/src/stream-text/openai/timeout-chunk.ts16 print('Usage:', await result.usage);
HIGH…s/ai-functions/src/stream-text/openai/timeout-chunk.ts17 print('Finish reason:', await result.finishReason);
HIGH…s/ai-functions/src/stream-text/openai/gpt-5-3-codex.ts18 print('Usage:', await result.usage);
HIGH…s/ai-functions/src/stream-text/openai/gpt-5-3-codex.ts19 print('Finish reason:', await result.finishReason);
HIGH…/ai-functions/src/agent/anthropic/cache-instruction.ts36 print('Result:', result.content);
HIGH…/ai-functions/src/agent/anthropic/cache-instruction.ts37 print('Metadata:', result.providerMetadata?.anthropic);
HIGH…/ai-functions/src/agent/anthropic/cache-instruction.ts38 print('Request:', result.request.body);
HIGH…functions/src/agent/anthropic/generate-output-array.ts25 print('Output:', output);
HIGH…s/ai-functions/src/agent/openai/stream-call-options.ts45 print('REQUEST:', request.body);
HIGH…ions/src/agent/openai/stream-output-array-websearch.ts39 print('REQUEST:', request.body);
HIGH…ai-functions/src/agent/openai/generate-call-options.ts44 print('REQUEST:', request.body);
HIGH…ai-functions/src/agent/openai/generate-call-options.ts59 print('CONTENT:', result.content);
HIGHexamples/ai-functions/src/agent/openai/generate.ts16 print('CONTENT:', result.content);
HIGH…ai-functions/src/agent/openai/generate-output-array.ts34 print('Output:', output);
HIGHexamples/ai-functions/src/lib/run.ts11 print('Request body:', error.requestBodyValues);
HIGHexamples/ai-functions/src/lib/run.ts12 print('Response body:', error.responseBody);
HIGH…ate-text/google/vertex-anthropic-output-array-tools.ts23 print('Output:', result.output);
HIGH…nctions/src/generate-text/google/output-object-zod4.ts24 print('Output:', result.output);
HIGH…nctions/src/generate-text/google/output-object-zod4.ts25 print('Request:', result.request.body);
HIGH…-functions/src/generate-text/deepseek/output-object.ts29 print('Output:', result.output);
HIGH…-functions/src/generate-text/deepseek/output-object.ts30 print('Request:', result.request.body);
HIGH…s/ai-functions/src/generate-text/deepseek/tool-call.ts15 print('Content:', result.content);
HIGH…amples/ai-functions/src/generate-text/deepseek/chat.ts12 print('Content:', result.content);
HIGH…amples/ai-functions/src/generate-text/deepseek/chat.ts13 print('Usage:', result.usage);
HIGH…amples/ai-functions/src/generate-text/deepseek/chat.ts14 print('Finish reason:', result.finishReason);
HIGH…es/ai-functions/src/generate-text/deepseek/reasoner.ts12 print('Content:', result.content);
114 more matches not shown…
Hyper-Verbose Identifiers318 hits · 324 pts
SeverityFileLineSnippet
LOWtools/analyze-downloads/src/analyze-ui-frameworks.ts30function aggregateDownloadsForLastNMajorReleases(
LOWcontributing/testing.md91function prepareChunksFixtureResponse(filename: string) {
LOWcontributing/testing.md109function prepareChunksFixtureResponse(filename: string) {
LOW…es/ai-functions/src/benchmark/stream-text-benchmark.ts139async function benchmarkConcurrentStreams() {
LOW…es/ai-functions/src/benchmark/stream-text-benchmark.ts185async function benchmarkStreamWithToolCalls() {
LOWexamples/ai-functions/src/stream-text/gateway/auth.ts107async function testAuthenticationScenario(scenario: (typeof testScenarios)[0]) {
LOW…ai-functions/src/lib/download-openai-container-file.ts4export async function downloadOpenaiContainerFile(
LOWexamples/ai-functions/src/lib/delete-uploaded-skill.ts1export async function deleteUploadedOpenAISkill({
LOWexamples/ai-functions/src/lib/delete-uploaded-skill.ts26export async function deleteUploadedAnthropicSkill({
LOW…/ai-functions/src/lib/download-azure-container-file.ts4export async function downloadAzureContainerFile(
LOW…ons/src/generate-text/mock/return-await-stack-trace.ts41function createWrappedModelWithoutAwait() {
LOW…ons/src/generate-text/mock/return-await-stack-trace.ts44 async function wrappedDoGenerateWithoutAwait(
LOW…ons/src/generate-text/mock/return-await-stack-trace.ts55function createWrappedModelWithAwait() {
LOW…ons/src/generate-text/mock/return-await-stack-trace.ts58 async function wrappedDoGenerateWithAwait(
LOW…ons/src/generate-text/mock/return-await-stack-trace.ts81async function sdkMiddlewareWithoutAwait() {
LOW…ons/src/generate-text/mock/return-await-stack-trace.ts93async function sdkModelBoundaryWithoutAwait() {
LOW…ons/src/generate-text/mock/return-await-stack-trace.ts100async function sdkModelBoundaryWithAwait() {
LOWexamples/next-fastapi/api/utils/prompt.py14def convert_to_openai_messages(messages: List[ClientMessage]):
LOWexamples/next-workflow/workflow/telemetry-agent.ts66function createTelemetryIntegration(telemetryRunId: string) {
LOWexamples/next-workflow/lib/telemetry-store.ts54export function getTelemetryRunIdForWorkflowRun(workflowRunId: string) {
LOW…e2e-next/app/chat/test-azure-image-generation/page.tsx9export default function TestOpenAIImageGeneration() {
LOW…ai-e2e-next/app/chat/anthropic-code-execution/page.tsx10export default function TestAnthropicCodeExecution() {
LOWexamples/ai-e2e-next/app/chat/anthropic-mcp/page.tsx10export default function TestAnthropicCodeExecution() {
LOW…e-next/app/chat/openai-shell-container-skills/page.tsx8export default function ChatOpenAIShellContainerSkills() {
LOW…st-azure-code-interpreter-annotation-download/page.tsx10export default function TestAzureOpenAICodeInterpreter() {
LOW…t/app/chat/test-openai-responses-mcp-approval/page.tsx13export default function TestOpenAIResponsesMCPApproval() {
LOW…app/chat/anthropic-code-execution-file-upload/page.tsx46export default function AnthropicCodeExecutionFileUploadPage() {
LOWexamples/ai-e2e-next/app/chat/anthropic-tools/page.tsx10export default function TestAnthropicCodeExecution() {
LOW…i-e2e-next/app/chat/openai-tool-search-client/page.tsx10export default function TestOpenAIToolSearchClient() {
LOW…e2e-next/app/chat/openai-previous-response-id/page.tsx15export default function OpenPreviousResponseIdPage() {
LOW…2e-next/app/chat/openai-pdf-fetch-custom-tool/page.tsx9export default function TestOpenAIFileGenerationPDF() {
LOW…/app/chat/anthropic-programmatic-tool-calling/page.tsx10export default function ChatAnthropicProgrammaticToolCalling() {
LOW…api/chat/anthropic-code-execution-file-upload/route.ts13function removeCodeExecutionToolParts(
LOW…next/app/api/chat/mcp-elicitation/elicitation-store.ts93export function resolvePendingElicitation(
LOW…amples/ai-e2e-next/app/api/chat/mcp-with-auth/route.ts34function setPendingAuthorizationUrl(url: string | null): void {
LOWexamples/ai-e2e-next/agent/anthropic/microsoft-agent.ts4export function createAnthropicMicrosoftAgent() {
LOWexamples/ai-e2e-next/components/tool/responses-text.tsx12function extractProviderAndAnnotations(
LOW…next/components/tool/anthropic-code-execution-view.tsx5export default function AnthropicCodeExecutionView({
LOWexamples/ai-e2e-next/lib/apply-diff.ts362export function parseDiffForVisualization(diff: string): {
LOWpackages/llamaindex/src/stream-callbacks.ts38export function createCallbacksTransformer(
LOWpackages/cohere/src/convert-to-cohere-chat-prompt.ts20export async function convertToCohereChatPrompt(
LOWpackages/cohere/src/cohere-embedding-model.test.ts19function prepareJsonFixtureResponse(
LOWpackages/cohere/src/cohere-chat-language-model.test.ts25function prepareJsonFixtureResponse(
LOWpackages/cohere/src/cohere-chat-language-model.test.ts38function prepareChunksFixtureResponse(
LOWpackages/cohere/src/cohere-chat-language-model.test.ts58function prepareChunkLinesResponse(chunks: Array<Record<string, unknown>>) {
LOW…es/cohere/src/reranking/cohere-reranking-model.test.ts15 function prepareJsonFixtureResponse(filename: string) {
LOWpackages/quiverai/src/quiverai-image-model.ts154function getGenerateReferenceLimit(modelId: string) {
LOWpackages/prodia/src/prodia-image-model.ts179function createMultipartResponseHandler() {
LOWpackages/prodia/src/prodia-language-model.ts357function createLanguageMultipartResponseHandler() {
LOWpackages/prodia/src/prodia-video-model.ts168function createVideoMultipartResponseHandler() {
LOWpackages/prodia/src/prodia-video-model.test.ts30function createVideoMultipartResponse(
LOWpackages/prodia/src/prodia-language-model.test.ts28function createLanguageMultipartResponse(
LOWpackages/prodia/src/prodia-api.ts50export function buildProdiaProviderMetadata(jobResult: ProdiaJobResult) {
LOW…ckages/moonshotai/src/convert-moonshotai-chat-usage.ts3export function convertMoonshotAIChatUsage(
LOW…herai/src/reranking/togetherai-reranking-model.test.ts15 function prepareJsonFixtureResponse(filename: string) {
LOWpackages/langchain/src/adapter.test.ts2135 async function assertAdapterOutputIsValidForClient(
LOWpackages/langchain/src/utils.ts840export function extractReasoningFromContentBlocks(
LOWpackages/langchain/src/utils.ts904export function extractReasoningFromValuesMessage(
LOWpackages/langchain/src/stream-callbacks.ts44export function createCallbacksTransformer(
LOWpackages/azure/src/azure-openai-provider.test.ts25function prepareJsonFixtureResponse(
258 more matches not shown…
Magic Placeholder Names18 hits · 118 pts
SeverityFileLineSnippet
HIGHcontributing/add-new-tool-to-registry.md35 apiKeyEnvName: 'YOUR_API_KEY', // Optional: environment variable name for API key
HIGHcontributing/add-new-tool-to-registry.md56 apiKeyUrl: 'https://your-api-key-url.com',
HIGH…/src/stream-text/azure/responses-web-search-preview.ts9 * AZURE_API_KEY="<your_api_key>"
HIGH…unctions/src/stream-text/azure/responses-web-search.ts9 * AZURE_API_KEY="<your_api_key>"
HIGH…i-functions/src/stream-text/azure/responses-file-id.ts9 * AZURE_API_KEY="<your_api_key>"
HIGH…ns/src/stream-text/azure/responses-code-interpreter.ts14 * AZURE_API_KEY="<your_api_key>"
HIGH…nctions/src/stream-text/azure/responses-file-search.ts9 * AZURE_API_KEY="<your_api_key>"
HIGH…ions/src/stream-text/openai/compatible-abort-reason.ts9 apiKey: process.env.DEEPSEEK_API_KEY ?? 'YOUR_API_KEY',
HIGH…rc/generate-text/azure/responses-web-search-preview.ts9 * AZURE_API_KEY="<your_api_key>"
HIGH…ctions/src/generate-text/azure/responses-web-search.ts9 * AZURE_API_KEY="<your_api_key>"
HIGH…functions/src/generate-text/azure/responses-file-id.ts9 * AZURE_API_KEY="<your_api_key>"
HIGH…/src/generate-text/azure/responses-code-interpreter.ts14 * AZURE_API_KEY="<your_api_key>"
HIGH…tions/src/generate-text/azure/responses-file-search.ts9 * AZURE_API_KEY="<your_api_key>"
HIGH…-functions/src/generate-text/amazon-bedrock/api-key.ts38 process.env.AWS_BEARER_TOKEN_BEDROCK || 'your-api-key-here';
HIGHpackages/amazon-bedrock/README.md45export AWS_BEARER_TOKEN_BEDROCK=your-api-key-here
HIGHpackages/amazon-bedrock/src/amazon-bedrock-provider.ts48 * apiKey: 'your-api-key-here',
HIGHpackages/bytedance/README.md187ARK_API_KEY=your-api-key
HIGHpackages/bytedance/README.md196 apiKey: 'your-api-key',
Verbosity Indicators39 hits · 68 pts
SeverityFileLineSnippet
LOWexamples/ai-functions/src/generate-video/xai/extend.ts12 // Step 1: Generate a short source video.
LOWexamples/ai-functions/src/generate-video/xai/extend.ts35 // Step 2: Extend the video with a new scene.
LOW…ai-functions/src/generate-video/xai/edit-concurrent.ts8 // Step 1: Apply first edit
LOW…ai-functions/src/generate-video/xai/edit-concurrent.ts35 // Step 2: Apply two more edits concurrently, building on step 1
LOWpackages/alibaba/src/alibaba-video-model.ts231 // Step 1: Create task
LOWpackages/alibaba/src/alibaba-video-model.ts262 // Step 2: Poll for task completion
LOWpackages/xai/src/xai-video-model.ts261 // Step 1: Create video generation/edit/extension request
LOWpackages/xai/src/xai-video-model.ts282 // Step 2: Poll for completion
LOWpackages/ai/src/generate-text/generate-text.test.ts2016 // Step 0: no previous steps
LOWpackages/ai/src/generate-text/generate-text.test.ts2019 // Step 1: has step 0's result
LOWpackages/ai/src/generate-text/generate-text.test.ts2029 // Step 2: has step 0 and step 1's results
LOWpackages/ai/src/generate-text/generate-text.test.ts7371 // Step 1: text + server_tool_use (code_execution) + 2 rollDie calls
LOWpackages/ai/src/generate-text/generate-text.test.ts7426 // Step 2: 2 rollDie calls (round 2)
LOWpackages/ai/src/generate-text/generate-text.test.ts7470 // Step 3: 2 rollDie calls (round 3)
LOWpackages/ai/src/generate-text/generate-text.test.ts7514 // Step 4: 2 rollDie calls (round 4 - final round)
LOWpackages/ai/src/generate-text/generate-text.test.ts7558 // Step 5: code_execution_tool_result + final text
LOWpackages/ai/src/generate-text/generate-text.test.ts8457 // Step 0: just the initial user message
LOWpackages/ai/src/generate-text/generate-text.test.ts8460 // Step 1: user message + assistant message + tool message
LOWpackages/ai/src/generate-text/generate-text.test.ts8463 // Step 2: user message + assistant + tool + assistant + tool
LOWpackages/ai/src/generate-text/generate-text.test.ts8466 // Step 3: continued accumulation
LOWpackages/ai/src/generate-text/generate-text.test.ts8469 // Step 4: continued accumulation
LOWpackages/ai/src/generate-text/stream-text.test.ts23364 // Step 1: text + server_tool_use (code_execution) + rollDie call
LOWpackages/ai/src/generate-text/stream-text.test.ts23421 // Step 2: rollDie call (player2)
LOWpackages/ai/src/generate-text/stream-text.test.ts23463 // Step 3: rollDie calls (round 2)
LOWpackages/ai/src/generate-text/stream-text.test.ts23505 // Step 4: more rollDie calls
LOWpackages/ai/src/generate-text/stream-text.test.ts23547 // Step 5: code_execution_tool_result + final text
LOWpackages/ai/src/generate-text/stream-text.test.ts24350 // Step 0: just the initial user message
LOWpackages/ai/src/generate-text/stream-text.test.ts24353 // Step 1: user message + assistant message + tool message
LOWpackages/ai/src/generate-text/stream-text.test.ts24356 // Step 2: user message + assistant + tool + assistant + tool
LOWpackages/ai/src/generate-text/stream-text.test.ts24359 // Step 3: continued accumulation
LOWpackages/ai/src/generate-text/stream-text.test.ts24362 // Step 4: continued accumulation
LOWpackages/ai/src/generate-text/stream-text.test.ts25072 // Step 1: tool call without result
LOWpackages/ai/src/generate-text/stream-text.test.ts25097 // Step 2: tool-error arrives
LOWpackages/workflow/src/workflow-agent.test.ts1018 // Step 1: tool call (executed), Step 2: text completion (no tools)
LOWpackages/klingai/src/klingai-video-model.ts174 // Step 1: Create the task
LOWpackages/klingai/src/klingai-video-model.ts199 // Step 2: Poll for task completion
LOW…__fixtures__/anthropic-combined-context-editing.1.json14 "text": "# 25 × 37\n\nLet me break this down into easier parts:\n\n## Method: Split 37 into 30 + 7\n\n**25 × 37 =
LOW…d/src/codemods/v5/rename-reasoning-to-reasoningText.ts15 // Step 1: Find destructuring from `generateText()`
LOW…d/src/codemods/v5/rename-reasoning-to-reasoningText.ts120 // Step 3: Rename `reasoning` to `reasoningText` in the identified paths
Decorative Section Separators11 hits · 30 pts
SeverityFileLineSnippet
MEDIUM…c/stream-text/anthropic/fine-grained-tool-streaming.ts47 // ── stream events ─────────────────────────────────────────────────────────
MEDIUM…c/stream-text/anthropic/fine-grained-tool-streaming.ts142 // ── diagnosis ─────────────────────────────────────────────────────────────
MEDIUM…mazon-bedrock/anthropic-fine-grained-tool-streaming.ts128 // ── diagnosis ─────────────────────────────────────────────────────────────
MEDIUMpackages/xai/src/xai-video-model-options.ts90// ── Runtime schemas ───────────────────────────────────────────────────
MEDIUMpackages/xai/src/xai-video-options.test-d.ts5 // ── Explicit modes accepted ────────────────────────────────────────
MEDIUMpackages/xai/src/xai-video-options.test-d.ts51 // ── Plain generation + legacy no-mode compatibility ────────────────
MEDIUMpackages/xai/src/xai-video-options.test-d.ts111 // ── Discriminated union: illegal combos rejected ───────────────────
MEDIUMpackages/xai/src/xai-video-options.test-d.ts146 // ── Required companion fields ──────────────────────────────────────
MEDIUM…c/__fixtures__/anthropic-advisor-20250301.1.chunks.txt7{"type":"content_block_start","index":1,"content_block":{"type":"advisor_tool_result","tool_use_id":"srvtoolu_01R6zRtm9V
MEDIUM…c/__fixtures__/anthropic-advisor-20250301.1.chunks.txt83{"type":"content_block_delta","index":2,"delta":{"type":"text_delta","text":" below.\n}\n\n// ─── Results ──────────────
MEDIUM…pic/src/__fixtures__/anthropic-advisor-20260301.1.json23 "text": "Great guidance. Here is the full design outline followed by a clean, well-commented Go implementation.\n\
Hallucination Indicators2 hits · 20 pts
SeverityFileLineSnippet
CRITICALpackages/ai/src/ui/chat.ts509 this.activeResponse.state.message.parts.map(updatePart);
CRITICALpackages/ai/src/ui/chat.ts558 this.activeResponse.state.message.parts.map(updatePart);
Over-Commented Block13 hits · 13 pts
SeverityFileLineSnippet
LOWexamples/ai-functions/src/stream-text/google/caching.ts41 // e.g.
LOW…mples/ai-functions/src/generate-text/google/caching.ts21 // thoughtsTokenCount: 634,
LOW…mples/ai-functions/src/generate-text/google/caching.ts41 // cachedContentTokenCount: 2027,
LOW…s/src/generate-text/anthropic/cache-control-beta-1h.ts101 // cache_creation: { ephemeral_5m_input_tokens: 0, ephemeral_1h_input_tokens: 0 },
LOW…rate-text/anthropic/cache-control-beta-1h-streaming.ts101 console.log(
LOW…functions/src/generate-text/huggingface/temperature.ts21 // temperature: 1.5,
LOWpackages/provider-utils/src/secure-json-parse.test.ts1// Licensed under BSD-3-Clause (this file only)
LOWpackages/provider-utils/src/secure-json-parse.ts1// Licensed under BSD-3-Clause (this file only)
LOWpackages/devtools/src/viewer/server.ts41// We rely exclusively on an explicit env flag to avoid false positives in
LOWpackages/ai/src/util/deep-partial.ts1// License for this File only:
LOWpackages/ai/src/util/value-of.ts1// License for this File only:
LOW.github/workflows/update-model-settings.yml1# Update Gateway Model Settings
LOW.github/workflows/backport.yml521 run: |
Self-Referential Comments4 hits · 12 pts
SeverityFileLineSnippet
MEDIUM…/__fixtures__/anthropic-code-execution-20250825.2.json18 "file_text": "import pandas as pd\nimport os\n\ndef fibonacci(n):\n \"\"\"\n Calculate the nth Fibonacci n
MEDIUM.github/workflows/update-model-settings.yml149 # Create the remote branch at the base tip (or reset an orphaned
MEDIUM.github/workflows/backport.yml456 # Create a new branch from the latest release branch for the backport
MEDIUM.github/workflows/backport.yml633 # Create the backport PR
AI Slop Vocabulary4 hits · 8 pts
SeverityFileLineSnippet
MEDIUM…ages/deepseek/src/chat/__fixtures__/deepseek-text.json11 "content": "## **Holiday Name: Gratitude of Small Things Day (GST Day)**\n\n**Date:** The first Saturday after t
MEDIUM…ai/src/responses/__fixtures__/xai-x-search-tool.1.json20 "text": "### What People Are Saying About AI on X (as of Late October 2025)\n\nBased on recent posts on X (for
MEDIUM…ai/src/responses/__fixtures__/xai-x-search-tool.1.json20 "text": "### What People Are Saying About AI on X (as of Late October 2025)\n\nBased on recent posts on X (for
MEDIUM…anthropic/src/__fixtures__/anthropic-compaction.1.json9 "content": "## Summary of Conversation\n\n### Task Context\nThe user shared a very large reference document about
Fake / Example Data6 hits · 6 pts
SeverityFileLineSnippet
LOWpackages/langchain/src/utils.test.ts1794 arguments: { to: 'user@example.com' },
LOWpackages/langchain/src/utils.test.ts1844 input: { to: 'user@example.com' },
LOW…nteractions/google-interactions-language-model.test.ts347 "text": "{"name":"John Doe","age":30}",
LOWpackages/ai/src/prompt/create-tool-model-output.test.ts328 name: 'John Doe',
LOWpackages/ai/src/prompt/create-tool-model-output.test.ts367 "name": "John Doe",
LOW…responses/huggingface-responses-language-model.test.ts1087 text: '{"name": "John Doe", "age": 30}',
Slop Phrases2 hits · 5 pts
SeverityFileLineSnippet
MEDIUM…-functions/src/generate-text/amazon-bedrock/api-key.ts36 // For demonstration purposes - in real applications, load from secure environment
MEDIUM…c/src/__fixtures__/anthropic-web-fetch-tool.error.json29 "text": "I'm unable to access the PDF document at that URL as the web_fetch tool is currently unavailable. To help
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippet
LOW…/__fixtures__/anthropic-code-execution-20250825.2.json18 "file_text": "import pandas as pd\nimport os\n\ndef fibonacci(n):\n \"\"\"\n Calculate the nth Fibonacci n
LOW.github/workflows/slack-team-review-notification.yml20 # Check if ai-sdk team is in the requested teams
Deep Nesting2 hits · 2 pts
SeverityFileLineSnippet
LOWexamples/next-fastapi/api/index.py31
LOWexamples/next-fastapi/api/utils/prompt.py14
Overly Generic Function Names1 hit · 2 pts
SeverityFileLineSnippet
LOWpackages/ai/src/util/value-of.ts40 * export function getData(name: string): ValueOf<typeof data> {