( model: TModel, apiKey: string, config?: Omit<GrokImageConfig, 'apiKey'>, )
| 325 | * ``` |
| 326 | */ |
| 327 | export function createGrokImage<TModel extends GrokImageModel>( |
| 328 | model: TModel, |
| 329 | apiKey: string, |
| 330 | config?: Omit<GrokImageConfig, 'apiKey'>, |
| 331 | ): GrokImageAdapter<TModel> { |
| 332 | return new GrokImageAdapter({ apiKey, ...config }, model) |
| 333 | } |
| 334 | |
| 335 | /** |
| 336 | * Creates a Grok image adapter with automatic API key detection from environment variables. |
no outgoing calls
no test coverage detected