File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ import {
3838 type GeneratedImage ,
3939 parseImageSize ,
4040} from '../IImageProvider.js' ;
41+ import { ApiKeyPool } from '../../../core/providers/ApiKeyPool.js' ;
4142
4243// ---------------------------------------------------------------------------
4344// Configuration
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ import {
4444 type GeneratedImage ,
4545 parseImageSize ,
4646} from '../IImageProvider.js' ;
47+ import { ApiKeyPool } from '../../../core/providers/ApiKeyPool.js' ;
4748
4849// ---------------------------------------------------------------------------
4950// Configuration
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import {
1212 normalizeOutputFormat ,
1313 type ReplicateImageProviderOptions ,
1414} from '../IImageProvider.js' ;
15+ import { ApiKeyPool } from '../../../core/providers/ApiKeyPool.js' ;
1516
1617export interface ReplicateImageProviderConfig {
1718 apiKey : string ;
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import {
1313 type StabilityImageProviderOptions ,
1414} from '../IImageProvider.js' ;
1515import { bufferToBlobPart } from '../imageToBuffer.js' ;
16+ import { ApiKeyPool } from '../../../core/providers/ApiKeyPool.js' ;
1617
1718export interface StabilityImageProviderConfig {
1819 apiKey : string ;
@@ -122,8 +123,8 @@ export class StabilityImageProvider implements IImageProvider {
122123 public defaultModelId ?: string ;
123124
124125 private config ! : Required < Pick < StabilityImageProviderConfig , 'apiKey' > > &
125- private keyPool ! : ApiKeyPool ;
126126 StabilityImageProviderConfig ;
127+ private keyPool ! : ApiKeyPool ;
127128
128129 async initialize ( config : Record < string , unknown > ) : Promise < void > {
129130 const apiKey = typeof config . apiKey === 'string' ? config . apiKey . trim ( ) : '' ;
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ import type {
3939 ImageToVideoRequest ,
4040 VideoResult ,
4141} from '../types.js' ;
42+ import { ApiKeyPool } from '../../../core/providers/ApiKeyPool.js' ;
4243
4344// ---------------------------------------------------------------------------
4445// Configuration
You can’t perform that action at this time.
0 commit comments