( model: TModel, config?: Omit<OpenRouterImageConfig, 'apiKey'>, )
| 229 | } |
| 230 | |
| 231 | export function openRouterImage<TModel extends OpenRouterImageModel>( |
| 232 | model: TModel, |
| 233 | config?: Omit<OpenRouterImageConfig, 'apiKey'>, |
| 234 | ): OpenRouterImageAdapter<TModel> { |
| 235 | const apiKey = getOpenRouterApiKeyFromEnv() |
| 236 | return createOpenRouterImage(model, apiKey, config) |
| 237 | } |
no test coverage detected