71 lines
1.8 KiB
JSON
71 lines
1.8 KiB
JSON
{
|
|
"OpenAI": {
|
|
"OpenAI_T2I": {
|
|
"provider": "OpenAI",
|
|
"service": "OpenAI_T2I",
|
|
"response_handler": "OpenAI_OpenAI_T2I.py",
|
|
"import_modules": [
|
|
"import your_provider_sdk",
|
|
"from your_provider_sdk import types"
|
|
],
|
|
"possible_parameters": {
|
|
"background": [
|
|
"fake_background_value_1",
|
|
"fake_background_value_2"
|
|
],
|
|
"batch": [
|
|
"fake_batch_value_1",
|
|
"fake_batch_value_2"
|
|
],
|
|
"model": [
|
|
"example-model-1",
|
|
"example-model-2"
|
|
],
|
|
"moderation": [
|
|
"fake_moderation_value_1",
|
|
"fake_moderation_value_2"
|
|
],
|
|
"output_compression": [
|
|
"fake_output_compression_value_1",
|
|
"fake_output_compression_value_2"
|
|
],
|
|
"output_format": [
|
|
"fake_output_format_value_1",
|
|
"fake_output_format_value_2"
|
|
],
|
|
"quality": [
|
|
"fake_quality_value_1",
|
|
"fake_quality_value_2"
|
|
],
|
|
"response_format": [
|
|
"fake_response_format_value_1",
|
|
"fake_response_format_value_2"
|
|
],
|
|
"size": [
|
|
"fake_size_value_1",
|
|
"fake_size_value_2"
|
|
]
|
|
},
|
|
"request": {
|
|
"method": "SDK",
|
|
"endpoint": "client.images.generate",
|
|
"sdk_call": {
|
|
"args": [],
|
|
"kwargs": {
|
|
"model": "{{model}}",
|
|
"prompt": "{{prompt}}",
|
|
"n": "{{batch}}",
|
|
"moderation": "{{moderation}}",
|
|
"background": "{{background}}",
|
|
"output_format": "{{output_format}}",
|
|
"output_compression": "{{output_compression}}",
|
|
"size": "{{size}}",
|
|
"quality": "{{quality}}",
|
|
"response_format": "{{response_format}}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|