( model: TModel, apiKey: string, config?: Omit<SDKOptions, 'apiKey'>, )
| 33 | * ``` |
| 34 | */ |
| 35 | export function createOpenRouterSummarize<TModel extends OpenRouterTextModels>( |
| 36 | model: TModel, |
| 37 | apiKey: string, |
| 38 | config?: Omit<SDKOptions, 'apiKey'>, |
| 39 | ): ChatStreamSummarizeAdapter< |
| 40 | TModel, |
| 41 | InferTextProviderOptions<OpenRouterTextAdapter<TModel>> |
| 42 | > { |
| 43 | return new ChatStreamSummarizeAdapter( |
| 44 | new OpenRouterTextAdapter({ apiKey, ...config }, model), |
| 45 | model, |
| 46 | 'openrouter', |
| 47 | ) |
| 48 | } |
| 49 | |
| 50 | /** |
| 51 | * Creates an OpenRouter summarize adapter with automatic API key detection from environment variables. |
no outgoing calls
no test coverage detected