(modelId: string)
| 80 | } |
| 81 | |
| 82 | export async function supportsNativeStructuredOutputs(modelId: string): Promise<boolean> { |
| 83 | const capabilities = await getOpenRouterModelCapabilities(modelId) |
| 84 | return capabilities?.supportsStructuredOutputs ?? false |
| 85 | } |
| 86 | |
| 87 | export function createReadableStreamFromOpenAIStream( |
| 88 | openaiStream: AsyncIterable<ChatCompletionChunk>, |
no test coverage detected