Skip to content

Commit

Permalink
fix: image generation supports test mode
Browse files Browse the repository at this point in the history
  • Loading branch information
KernelDeimos committed Nov 22, 2024
1 parent 2d43129 commit f533dca
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ class OpenAIImageGenerationService extends BaseService {
}

static IMPLEMENTS = {
['driver-capabilities']: {
supports_test_mode (iface, method_name) {
return iface === 'puter-image-generation' &&
method_name === 'generate';
}
},
['puter-image-generation']: {
async generate ({ prompt, test_mode }) {
if ( test_mode ) {
Expand Down

0 comments on commit f533dca

Please sign in to comment.