EdgeAIG/opencode / .opencode /node_modules /@ai-sdk /provider /src /errors /no-content-generated-error.ts
| import { AISDKError } from './ai-sdk-error'; | |
| const name = 'AI_NoContentGeneratedError'; | |
| const marker = `vercel.ai.error.${name}`; | |
| const symbol = Symbol.for(marker); | |
| /** | |
| * Thrown when the AI provider fails to generate any content. | |
| */ | |
| export class NoContentGeneratedError extends AISDKError { | |
| private readonly [symbol] = true; // used in isInstance | |
| constructor({ | |
| message = 'No content generated.', | |
| }: { message?: string } = {}) { | |
| super({ name, message }); | |
| } | |
| static isInstance(error: unknown): error is NoContentGeneratedError { | |
| return AISDKError.hasMarker(error, marker); | |
| } | |
| } | |
Xet Storage Details
- Size:
- 604 Bytes
- Xet hash:
- ae43eec18abe943980465db7e0e54fb3069d5ec095b3b09c9f988d4b10fe861c
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.