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
596 matches across 14 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | …ns/src/middleware/embedding/google-default-settings.ts | 35 | print('Embedding length:', result.embedding.length); |
| HIGH | …ctions/src/stream-text/google/vertex-combined-tools.ts | 39 | print('Request body:', (await result.request).body); |
| HIGH | …ctions/src/stream-text/google/vertex-combined-tools.ts | 40 | print('Raw response chunks:', rawChunks); |
| HIGH | …ctions/src/stream-text/google/vertex-combined-tools.ts | 41 | print('Response metadata:', await result.response); |
| HIGH | …es/ai-functions/src/stream-text/anthropic/fast-mode.ts | 23 | print('Usage:', await result.usage); |
| HIGH | …es/ai-functions/src/stream-text/anthropic/fast-mode.ts | 24 | print('Finish reason:', await result.finishReason); |
| HIGH | …-functions/src/stream-text/anthropic/tool-call-8516.ts | 104 | print('Request body:', (await result.request).body); |
| HIGH | …s/src/stream-text/anthropic/subagent-with-telemetry.ts | 53 | print('Usage:', await result.usage); |
| HIGH | …s/src/stream-text/anthropic/subagent-with-telemetry.ts | 54 | print('Finish reason:', await result.finishReason); |
| HIGH | examples/ai-functions/src/stream-text/anthropic/mcp.ts | 30 | print('Request body:', (await result.request).body); |
| HIGH | examples/ai-functions/src/stream-text/anthropic/mcp.ts | 31 | print('Warnings:', await result.warnings); |
| HIGH | …amples/ai-functions/src/stream-text/anthropic/basic.ts | 16 | print('Usage:', await result.usage); |
| HIGH | …amples/ai-functions/src/stream-text/anthropic/basic.ts | 17 | print('Finish reason:', await result.finishReason); |
| HIGH | …amples/ai-functions/src/stream-text/anthropic/basic.ts | 18 | print('Raw finish reason:', await result.rawFinishReason); |
| HIGH | …mples/ai-functions/src/stream-text/anthropic/skills.ts | 36 | print('container', anthropicContainer); |
| HIGH | …s/src/stream-text/anthropic/mid-conversation-system.ts | 40 | print('Usage:', await result.usage); |
| HIGH | …s/ai-functions/src/stream-text/openai/timeout-total.ts | 16 | print('Usage:', await result.usage); |
| HIGH | …s/ai-functions/src/stream-text/openai/timeout-total.ts | 17 | print('Finish reason:', await result.finishReason); |
| HIGH | …s/ai-functions/src/stream-text/openai/output-object.ts | 42 | print('Output:', await result.output); |
| HIGH | …es/ai-functions/src/stream-text/openai/timeout-step.ts | 31 | print('Usage:', await result.usage); |
| HIGH | …es/ai-functions/src/stream-text/openai/timeout-step.ts | 32 | print('Finish reason:', await result.finishReason); |
| HIGH | …es/ai-functions/src/stream-text/openai/timeout-step.ts | 33 | print('Steps:', (await result.steps).length); |
| HIGH | …i-functions/src/stream-text/openai/step-performance.ts | 48 | print('Tool result:', chunk.output); |
| HIGH | …i-functions/src/stream-text/openai/step-performance.ts | 54 | print('Usage:', chunk.usage); |
| HIGH | …i-functions/src/stream-text/openai/step-performance.ts | 65 | print( |
| HIGH | …i-functions/src/stream-text/openai/step-performance.ts | 69 | print('Final step performance:', (await result.finalStep).performance); |
| HIGH | …i-functions/src/stream-text/openai/step-performance.ts | 70 | print('Total usage:', await result.usage); |
| HIGH | examples/ai-functions/src/stream-text/openai/basic.ts | 16 | print('Usage:', await result.usage); |
| HIGH | examples/ai-functions/src/stream-text/openai/basic.ts | 17 | print('Finish reason:', await result.finishReason); |
| HIGH | examples/ai-functions/src/stream-text/openai/basic.ts | 18 | print('Raw finish reason:', await result.rawFinishReason); |
| HIGH | …/ai-functions/src/stream-text/openai/output-default.ts | 20 | print('Output:', await result.output); |
| HIGH | examples/ai-functions/src/stream-text/openai/timeout.ts | 16 | print('Usage:', await result.usage); |
| HIGH | examples/ai-functions/src/stream-text/openai/timeout.ts | 17 | print('Finish reason:', await result.finishReason); |
| HIGH | …ons/src/stream-text/openai/include-request-messages.ts | 20 | print('Request metadata:', await result.request); |
| HIGH | …s/ai-functions/src/stream-text/openai/timeout-chunk.ts | 16 | print('Usage:', await result.usage); |
| HIGH | …s/ai-functions/src/stream-text/openai/timeout-chunk.ts | 17 | print('Finish reason:', await result.finishReason); |
| HIGH | …s/ai-functions/src/stream-text/openai/gpt-5-3-codex.ts | 18 | print('Usage:', await result.usage); |
| HIGH | …s/ai-functions/src/stream-text/openai/gpt-5-3-codex.ts | 19 | print('Finish reason:', await result.finishReason); |
| HIGH | …/ai-functions/src/agent/anthropic/cache-instruction.ts | 36 | print('Result:', result.content); |
| HIGH | …/ai-functions/src/agent/anthropic/cache-instruction.ts | 37 | print('Metadata:', result.providerMetadata?.anthropic); |
| HIGH | …/ai-functions/src/agent/anthropic/cache-instruction.ts | 38 | print('Request:', result.request.body); |
| HIGH | …functions/src/agent/anthropic/generate-output-array.ts | 25 | print('Output:', output); |
| HIGH | …s/ai-functions/src/agent/openai/stream-call-options.ts | 45 | print('REQUEST:', request.body); |
| HIGH | …ions/src/agent/openai/stream-output-array-websearch.ts | 39 | print('REQUEST:', request.body); |
| HIGH | …ai-functions/src/agent/openai/generate-call-options.ts | 44 | print('REQUEST:', request.body); |
| HIGH | …ai-functions/src/agent/openai/generate-call-options.ts | 59 | print('CONTENT:', result.content); |
| HIGH | examples/ai-functions/src/agent/openai/generate.ts | 16 | print('CONTENT:', result.content); |
| HIGH | …ai-functions/src/agent/openai/generate-output-array.ts | 34 | print('Output:', output); |
| HIGH | examples/ai-functions/src/lib/run.ts | 11 | print('Request body:', error.requestBodyValues); |
| HIGH | examples/ai-functions/src/lib/run.ts | 12 | print('Response body:', error.responseBody); |
| HIGH | …ate-text/google/vertex-anthropic-output-array-tools.ts | 23 | print('Output:', result.output); |
| HIGH | …nctions/src/generate-text/google/output-object-zod4.ts | 24 | print('Output:', result.output); |
| HIGH | …nctions/src/generate-text/google/output-object-zod4.ts | 25 | print('Request:', result.request.body); |
| HIGH | …-functions/src/generate-text/deepseek/output-object.ts | 29 | print('Output:', result.output); |
| HIGH | …-functions/src/generate-text/deepseek/output-object.ts | 30 | print('Request:', result.request.body); |
| HIGH | …s/ai-functions/src/generate-text/deepseek/tool-call.ts | 15 | print('Content:', result.content); |
| HIGH | …amples/ai-functions/src/generate-text/deepseek/chat.ts | 12 | print('Content:', result.content); |
| HIGH | …amples/ai-functions/src/generate-text/deepseek/chat.ts | 13 | print('Usage:', result.usage); |
| HIGH | …amples/ai-functions/src/generate-text/deepseek/chat.ts | 14 | print('Finish reason:', result.finishReason); |
| HIGH | …es/ai-functions/src/generate-text/deepseek/reasoner.ts | 12 | print('Content:', result.content); |
| 114 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tools/analyze-downloads/src/analyze-ui-frameworks.ts | 30 | function aggregateDownloadsForLastNMajorReleases( |
| LOW | contributing/testing.md | 91 | function prepareChunksFixtureResponse(filename: string) { |
| LOW | contributing/testing.md | 109 | function prepareChunksFixtureResponse(filename: string) { |
| LOW | …es/ai-functions/src/benchmark/stream-text-benchmark.ts | 139 | async function benchmarkConcurrentStreams() { |
| LOW | …es/ai-functions/src/benchmark/stream-text-benchmark.ts | 185 | async function benchmarkStreamWithToolCalls() { |
| LOW | examples/ai-functions/src/stream-text/gateway/auth.ts | 107 | async function testAuthenticationScenario(scenario: (typeof testScenarios)[0]) { |
| LOW | …ai-functions/src/lib/download-openai-container-file.ts | 4 | export async function downloadOpenaiContainerFile( |
| LOW | examples/ai-functions/src/lib/delete-uploaded-skill.ts | 1 | export async function deleteUploadedOpenAISkill({ |
| LOW | examples/ai-functions/src/lib/delete-uploaded-skill.ts | 26 | export async function deleteUploadedAnthropicSkill({ |
| LOW | …/ai-functions/src/lib/download-azure-container-file.ts | 4 | export async function downloadAzureContainerFile( |
| LOW | …ons/src/generate-text/mock/return-await-stack-trace.ts | 41 | function createWrappedModelWithoutAwait() { |
| LOW | …ons/src/generate-text/mock/return-await-stack-trace.ts | 44 | async function wrappedDoGenerateWithoutAwait( |
| LOW | …ons/src/generate-text/mock/return-await-stack-trace.ts | 55 | function createWrappedModelWithAwait() { |
| LOW | …ons/src/generate-text/mock/return-await-stack-trace.ts | 58 | async function wrappedDoGenerateWithAwait( |
| LOW | …ons/src/generate-text/mock/return-await-stack-trace.ts | 81 | async function sdkMiddlewareWithoutAwait() { |
| LOW | …ons/src/generate-text/mock/return-await-stack-trace.ts | 93 | async function sdkModelBoundaryWithoutAwait() { |
| LOW | …ons/src/generate-text/mock/return-await-stack-trace.ts | 100 | async function sdkModelBoundaryWithAwait() { |
| LOW | examples/next-fastapi/api/utils/prompt.py | 14 | def convert_to_openai_messages(messages: List[ClientMessage]): |
| LOW | examples/next-workflow/workflow/telemetry-agent.ts | 66 | function createTelemetryIntegration(telemetryRunId: string) { |
| LOW | examples/next-workflow/lib/telemetry-store.ts | 54 | export function getTelemetryRunIdForWorkflowRun(workflowRunId: string) { |
| LOW | …e2e-next/app/chat/test-azure-image-generation/page.tsx | 9 | export default function TestOpenAIImageGeneration() { |
| LOW | …ai-e2e-next/app/chat/anthropic-code-execution/page.tsx | 10 | export default function TestAnthropicCodeExecution() { |
| LOW | examples/ai-e2e-next/app/chat/anthropic-mcp/page.tsx | 10 | export default function TestAnthropicCodeExecution() { |
| LOW | …e-next/app/chat/openai-shell-container-skills/page.tsx | 8 | export default function ChatOpenAIShellContainerSkills() { |
| LOW | …st-azure-code-interpreter-annotation-download/page.tsx | 10 | export default function TestAzureOpenAICodeInterpreter() { |
| LOW | …t/app/chat/test-openai-responses-mcp-approval/page.tsx | 13 | export default function TestOpenAIResponsesMCPApproval() { |
| LOW | …app/chat/anthropic-code-execution-file-upload/page.tsx | 46 | export default function AnthropicCodeExecutionFileUploadPage() { |
| LOW | examples/ai-e2e-next/app/chat/anthropic-tools/page.tsx | 10 | export default function TestAnthropicCodeExecution() { |
| LOW | …i-e2e-next/app/chat/openai-tool-search-client/page.tsx | 10 | export default function TestOpenAIToolSearchClient() { |
| LOW | …e2e-next/app/chat/openai-previous-response-id/page.tsx | 15 | export default function OpenPreviousResponseIdPage() { |
| LOW | …2e-next/app/chat/openai-pdf-fetch-custom-tool/page.tsx | 9 | export default function TestOpenAIFileGenerationPDF() { |
| LOW | …/app/chat/anthropic-programmatic-tool-calling/page.tsx | 10 | export default function ChatAnthropicProgrammaticToolCalling() { |
| LOW | …api/chat/anthropic-code-execution-file-upload/route.ts | 13 | function removeCodeExecutionToolParts( |
| LOW | …next/app/api/chat/mcp-elicitation/elicitation-store.ts | 93 | export function resolvePendingElicitation( |
| LOW | …amples/ai-e2e-next/app/api/chat/mcp-with-auth/route.ts | 34 | function setPendingAuthorizationUrl(url: string | null): void { |
| LOW | examples/ai-e2e-next/agent/anthropic/microsoft-agent.ts | 4 | export function createAnthropicMicrosoftAgent() { |
| LOW | examples/ai-e2e-next/components/tool/responses-text.tsx | 12 | function extractProviderAndAnnotations( |
| LOW | …next/components/tool/anthropic-code-execution-view.tsx | 5 | export default function AnthropicCodeExecutionView({ |
| LOW | examples/ai-e2e-next/lib/apply-diff.ts | 362 | export function parseDiffForVisualization(diff: string): { |
| LOW | packages/llamaindex/src/stream-callbacks.ts | 38 | export function createCallbacksTransformer( |
| LOW | packages/cohere/src/convert-to-cohere-chat-prompt.ts | 20 | export async function convertToCohereChatPrompt( |
| LOW | packages/cohere/src/cohere-embedding-model.test.ts | 19 | function prepareJsonFixtureResponse( |
| LOW | packages/cohere/src/cohere-chat-language-model.test.ts | 25 | function prepareJsonFixtureResponse( |
| LOW | packages/cohere/src/cohere-chat-language-model.test.ts | 38 | function prepareChunksFixtureResponse( |
| LOW | packages/cohere/src/cohere-chat-language-model.test.ts | 58 | function prepareChunkLinesResponse(chunks: Array<Record<string, unknown>>) { |
| LOW | …es/cohere/src/reranking/cohere-reranking-model.test.ts | 15 | function prepareJsonFixtureResponse(filename: string) { |
| LOW | packages/quiverai/src/quiverai-image-model.ts | 154 | function getGenerateReferenceLimit(modelId: string) { |
| LOW | packages/prodia/src/prodia-image-model.ts | 179 | function createMultipartResponseHandler() { |
| LOW | packages/prodia/src/prodia-language-model.ts | 357 | function createLanguageMultipartResponseHandler() { |
| LOW | packages/prodia/src/prodia-video-model.ts | 168 | function createVideoMultipartResponseHandler() { |
| LOW | packages/prodia/src/prodia-video-model.test.ts | 30 | function createVideoMultipartResponse( |
| LOW | packages/prodia/src/prodia-language-model.test.ts | 28 | function createLanguageMultipartResponse( |
| LOW | packages/prodia/src/prodia-api.ts | 50 | export function buildProdiaProviderMetadata(jobResult: ProdiaJobResult) { |
| LOW | …ckages/moonshotai/src/convert-moonshotai-chat-usage.ts | 3 | export function convertMoonshotAIChatUsage( |
| LOW | …herai/src/reranking/togetherai-reranking-model.test.ts | 15 | function prepareJsonFixtureResponse(filename: string) { |
| LOW | packages/langchain/src/adapter.test.ts | 2135 | async function assertAdapterOutputIsValidForClient( |
| LOW | packages/langchain/src/utils.ts | 840 | export function extractReasoningFromContentBlocks( |
| LOW | packages/langchain/src/utils.ts | 904 | export function extractReasoningFromValuesMessage( |
| LOW | packages/langchain/src/stream-callbacks.ts | 44 | export function createCallbacksTransformer( |
| LOW | packages/azure/src/azure-openai-provider.test.ts | 25 | function prepareJsonFixtureResponse( |
| 258 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | contributing/add-new-tool-to-registry.md | 35 | apiKeyEnvName: 'YOUR_API_KEY', // Optional: environment variable name for API key |
| HIGH | contributing/add-new-tool-to-registry.md | 56 | apiKeyUrl: 'https://your-api-key-url.com', |
| HIGH | …/src/stream-text/azure/responses-web-search-preview.ts | 9 | * AZURE_API_KEY="<your_api_key>" |
| HIGH | …unctions/src/stream-text/azure/responses-web-search.ts | 9 | * AZURE_API_KEY="<your_api_key>" |
| HIGH | …i-functions/src/stream-text/azure/responses-file-id.ts | 9 | * AZURE_API_KEY="<your_api_key>" |
| HIGH | …ns/src/stream-text/azure/responses-code-interpreter.ts | 14 | * AZURE_API_KEY="<your_api_key>" |
| HIGH | …nctions/src/stream-text/azure/responses-file-search.ts | 9 | * AZURE_API_KEY="<your_api_key>" |
| HIGH | …ions/src/stream-text/openai/compatible-abort-reason.ts | 9 | apiKey: process.env.DEEPSEEK_API_KEY ?? 'YOUR_API_KEY', |
| HIGH | …rc/generate-text/azure/responses-web-search-preview.ts | 9 | * AZURE_API_KEY="<your_api_key>" |
| HIGH | …ctions/src/generate-text/azure/responses-web-search.ts | 9 | * AZURE_API_KEY="<your_api_key>" |
| HIGH | …functions/src/generate-text/azure/responses-file-id.ts | 9 | * AZURE_API_KEY="<your_api_key>" |
| HIGH | …/src/generate-text/azure/responses-code-interpreter.ts | 14 | * AZURE_API_KEY="<your_api_key>" |
| HIGH | …tions/src/generate-text/azure/responses-file-search.ts | 9 | * AZURE_API_KEY="<your_api_key>" |
| HIGH | …-functions/src/generate-text/amazon-bedrock/api-key.ts | 38 | process.env.AWS_BEARER_TOKEN_BEDROCK || 'your-api-key-here'; |
| HIGH | packages/amazon-bedrock/README.md | 45 | export AWS_BEARER_TOKEN_BEDROCK=your-api-key-here |
| HIGH | packages/amazon-bedrock/src/amazon-bedrock-provider.ts | 48 | * apiKey: 'your-api-key-here', |
| HIGH | packages/bytedance/README.md | 187 | ARK_API_KEY=your-api-key |
| HIGH | packages/bytedance/README.md | 196 | apiKey: 'your-api-key', |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | examples/ai-functions/src/generate-video/xai/extend.ts | 12 | // Step 1: Generate a short source video. |
| LOW | examples/ai-functions/src/generate-video/xai/extend.ts | 35 | // Step 2: Extend the video with a new scene. |
| LOW | …ai-functions/src/generate-video/xai/edit-concurrent.ts | 8 | // Step 1: Apply first edit |
| LOW | …ai-functions/src/generate-video/xai/edit-concurrent.ts | 35 | // Step 2: Apply two more edits concurrently, building on step 1 |
| LOW | packages/alibaba/src/alibaba-video-model.ts | 231 | // Step 1: Create task |
| LOW | packages/alibaba/src/alibaba-video-model.ts | 262 | // Step 2: Poll for task completion |
| LOW | packages/xai/src/xai-video-model.ts | 261 | // Step 1: Create video generation/edit/extension request |
| LOW | packages/xai/src/xai-video-model.ts | 282 | // Step 2: Poll for completion |
| LOW | packages/ai/src/generate-text/generate-text.test.ts | 2016 | // Step 0: no previous steps |
| LOW | packages/ai/src/generate-text/generate-text.test.ts | 2019 | // Step 1: has step 0's result |
| LOW | packages/ai/src/generate-text/generate-text.test.ts | 2029 | // Step 2: has step 0 and step 1's results |
| LOW | packages/ai/src/generate-text/generate-text.test.ts | 7371 | // Step 1: text + server_tool_use (code_execution) + 2 rollDie calls |
| LOW | packages/ai/src/generate-text/generate-text.test.ts | 7426 | // Step 2: 2 rollDie calls (round 2) |
| LOW | packages/ai/src/generate-text/generate-text.test.ts | 7470 | // Step 3: 2 rollDie calls (round 3) |
| LOW | packages/ai/src/generate-text/generate-text.test.ts | 7514 | // Step 4: 2 rollDie calls (round 4 - final round) |
| LOW | packages/ai/src/generate-text/generate-text.test.ts | 7558 | // Step 5: code_execution_tool_result + final text |
| LOW | packages/ai/src/generate-text/generate-text.test.ts | 8457 | // Step 0: just the initial user message |
| LOW | packages/ai/src/generate-text/generate-text.test.ts | 8460 | // Step 1: user message + assistant message + tool message |
| LOW | packages/ai/src/generate-text/generate-text.test.ts | 8463 | // Step 2: user message + assistant + tool + assistant + tool |
| LOW | packages/ai/src/generate-text/generate-text.test.ts | 8466 | // Step 3: continued accumulation |
| LOW | packages/ai/src/generate-text/generate-text.test.ts | 8469 | // Step 4: continued accumulation |
| LOW | packages/ai/src/generate-text/stream-text.test.ts | 23364 | // Step 1: text + server_tool_use (code_execution) + rollDie call |
| LOW | packages/ai/src/generate-text/stream-text.test.ts | 23421 | // Step 2: rollDie call (player2) |
| LOW | packages/ai/src/generate-text/stream-text.test.ts | 23463 | // Step 3: rollDie calls (round 2) |
| LOW | packages/ai/src/generate-text/stream-text.test.ts | 23505 | // Step 4: more rollDie calls |
| LOW | packages/ai/src/generate-text/stream-text.test.ts | 23547 | // Step 5: code_execution_tool_result + final text |
| LOW | packages/ai/src/generate-text/stream-text.test.ts | 24350 | // Step 0: just the initial user message |
| LOW | packages/ai/src/generate-text/stream-text.test.ts | 24353 | // Step 1: user message + assistant message + tool message |
| LOW | packages/ai/src/generate-text/stream-text.test.ts | 24356 | // Step 2: user message + assistant + tool + assistant + tool |
| LOW | packages/ai/src/generate-text/stream-text.test.ts | 24359 | // Step 3: continued accumulation |
| LOW | packages/ai/src/generate-text/stream-text.test.ts | 24362 | // Step 4: continued accumulation |
| LOW | packages/ai/src/generate-text/stream-text.test.ts | 25072 | // Step 1: tool call without result |
| LOW | packages/ai/src/generate-text/stream-text.test.ts | 25097 | // Step 2: tool-error arrives |
| LOW | packages/workflow/src/workflow-agent.test.ts | 1018 | // Step 1: tool call (executed), Step 2: text completion (no tools) |
| LOW | packages/klingai/src/klingai-video-model.ts | 174 | // Step 1: Create the task |
| LOW | packages/klingai/src/klingai-video-model.ts | 199 | // Step 2: Poll for task completion |
| LOW | …__fixtures__/anthropic-combined-context-editing.1.json | 14 | "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.ts | 15 | // Step 1: Find destructuring from `generateText()` |
| LOW | …d/src/codemods/v5/rename-reasoning-to-reasoningText.ts | 120 | // Step 3: Rename `reasoning` to `reasoningText` in the identified paths |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | …c/stream-text/anthropic/fine-grained-tool-streaming.ts | 47 | // ── stream events ───────────────────────────────────────────────────────── |
| MEDIUM | …c/stream-text/anthropic/fine-grained-tool-streaming.ts | 142 | // ── diagnosis ───────────────────────────────────────────────────────────── |
| MEDIUM | …mazon-bedrock/anthropic-fine-grained-tool-streaming.ts | 128 | // ── diagnosis ───────────────────────────────────────────────────────────── |
| MEDIUM | packages/xai/src/xai-video-model-options.ts | 90 | // ── Runtime schemas ─────────────────────────────────────────────────── |
| MEDIUM | packages/xai/src/xai-video-options.test-d.ts | 5 | // ── Explicit modes accepted ──────────────────────────────────────── |
| MEDIUM | packages/xai/src/xai-video-options.test-d.ts | 51 | // ── Plain generation + legacy no-mode compatibility ──────────────── |
| MEDIUM | packages/xai/src/xai-video-options.test-d.ts | 111 | // ── Discriminated union: illegal combos rejected ─────────────────── |
| MEDIUM | packages/xai/src/xai-video-options.test-d.ts | 146 | // ── Required companion fields ────────────────────────────────────── |
| MEDIUM | …c/__fixtures__/anthropic-advisor-20250301.1.chunks.txt | 7 | {"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.txt | 83 | {"type":"content_block_delta","index":2,"delta":{"type":"text_delta","text":" below.\n}\n\n// ─── Results ────────────── |
| MEDIUM | …pic/src/__fixtures__/anthropic-advisor-20260301.1.json | 23 | "text": "Great guidance. Here is the full design outline followed by a clean, well-commented Go implementation.\n\ |
| Severity | File | Line | Snippet |
|---|---|---|---|
| CRITICAL | packages/ai/src/ui/chat.ts | 509 | this.activeResponse.state.message.parts.map(updatePart); |
| CRITICAL | packages/ai/src/ui/chat.ts | 558 | this.activeResponse.state.message.parts.map(updatePart); |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | examples/ai-functions/src/stream-text/google/caching.ts | 41 | // e.g. |
| LOW | …mples/ai-functions/src/generate-text/google/caching.ts | 21 | // thoughtsTokenCount: 634, |
| LOW | …mples/ai-functions/src/generate-text/google/caching.ts | 41 | // cachedContentTokenCount: 2027, |
| LOW | …s/src/generate-text/anthropic/cache-control-beta-1h.ts | 101 | // cache_creation: { ephemeral_5m_input_tokens: 0, ephemeral_1h_input_tokens: 0 }, |
| LOW | …rate-text/anthropic/cache-control-beta-1h-streaming.ts | 101 | console.log( |
| LOW | …functions/src/generate-text/huggingface/temperature.ts | 21 | // temperature: 1.5, |
| LOW | packages/provider-utils/src/secure-json-parse.test.ts | 1 | // Licensed under BSD-3-Clause (this file only) |
| LOW | packages/provider-utils/src/secure-json-parse.ts | 1 | // Licensed under BSD-3-Clause (this file only) |
| LOW | packages/devtools/src/viewer/server.ts | 41 | // We rely exclusively on an explicit env flag to avoid false positives in |
| LOW | packages/ai/src/util/deep-partial.ts | 1 | // License for this File only: |
| LOW | packages/ai/src/util/value-of.ts | 1 | // License for this File only: |
| LOW | .github/workflows/update-model-settings.yml | 1 | # Update Gateway Model Settings |
| LOW | .github/workflows/backport.yml | 521 | run: | |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | …/__fixtures__/anthropic-code-execution-20250825.2.json | 18 | "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.yml | 149 | # Create the remote branch at the base tip (or reset an orphaned |
| MEDIUM | .github/workflows/backport.yml | 456 | # Create a new branch from the latest release branch for the backport |
| MEDIUM | .github/workflows/backport.yml | 633 | # Create the backport PR |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | …ages/deepseek/src/chat/__fixtures__/deepseek-text.json | 11 | "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.json | 20 | "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.json | 20 | "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.json | 9 | "content": "## Summary of Conversation\n\n### Task Context\nThe user shared a very large reference document about |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | packages/langchain/src/utils.test.ts | 1794 | arguments: { to: 'user@example.com' }, |
| LOW | packages/langchain/src/utils.test.ts | 1844 | input: { to: 'user@example.com' }, |
| LOW | …nteractions/google-interactions-language-model.test.ts | 347 | "text": "{"name":"John Doe","age":30}", |
| LOW | packages/ai/src/prompt/create-tool-model-output.test.ts | 328 | name: 'John Doe', |
| LOW | packages/ai/src/prompt/create-tool-model-output.test.ts | 367 | "name": "John Doe", |
| LOW | …responses/huggingface-responses-language-model.test.ts | 1087 | text: '{"name": "John Doe", "age": 30}', |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | …-functions/src/generate-text/amazon-bedrock/api-key.ts | 36 | // For demonstration purposes - in real applications, load from secure environment |
| MEDIUM | …c/src/__fixtures__/anthropic-web-fetch-tool.error.json | 29 | "text": "I'm unable to access the PDF document at that URL as the web_fetch tool is currently unavailable. To help |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | …/__fixtures__/anthropic-code-execution-20250825.2.json | 18 | "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.yml | 20 | # Check if ai-sdk team is in the requested teams |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | examples/next-fastapi/api/index.py | 31 | |
| LOW | examples/next-fastapi/api/utils/prompt.py | 14 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | packages/ai/src/util/value-of.ts | 40 | * export function getData(name: string): ValueOf<typeof data> { |