File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
packages/core/src/tracing/vercel-ai Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ import {
2424import type { ProviderMetadata } from './vercel-ai-attributes' ;
2525import {
2626 AI_MODEL_ID_ATTRIBUTE ,
27- AI_MODEL_PROVIDER_ATTRIBUTE ,
2827 AI_PROMPT_MESSAGES_ATTRIBUTE ,
2928 AI_PROMPT_TOOLS_ATTRIBUTE ,
3029 AI_RESPONSE_OBJECT_ATTRIBUTE ,
@@ -65,12 +64,10 @@ function onVercelAiSpanStart(span: Span): void {
6564 return ;
6665 }
6766
68- // The AI and Provider must be defined for generate, stream, and embed spans.
69- // The id of the model
67+ // The AI model ID must be defined for generate, stream, and embed spans.
68+ // The provider is optional and may not always be present.
7069 const aiModelId = attributes [ AI_MODEL_ID_ATTRIBUTE ] ;
71- // the provider of the model
72- const aiModelProvider = attributes [ AI_MODEL_PROVIDER_ATTRIBUTE ] ;
73- if ( typeof aiModelId !== 'string' || typeof aiModelProvider !== 'string' || ! aiModelId || ! aiModelProvider ) {
70+ if ( typeof aiModelId !== 'string' || ! aiModelId ) {
7471 return ;
7572 }
7673
You can’t perform that action at this time.
0 commit comments