* fix: [#35] - jan containers wont restart * chore: remove keycloak health check https://github.com/keycloak/keycloak/issues/17273 * fix: #53 hasura seeds should not yield error on conflict * fix: #59 hasura image generation action timeout * chore: jan web - fixes error logs of empty href url
34 lines
964 B
YAML
34 lines
964 B
YAML
actions:
|
|
- name: imageGeneration
|
|
definition:
|
|
kind: synchronous
|
|
handler: '{{HASURA_ACTION_STABLE_DIFFUSION_URL}}'
|
|
timeout: 1800
|
|
request_transform:
|
|
body:
|
|
action: transform
|
|
template: |-
|
|
{
|
|
"prompt": {{$body.input.input.prompt}},
|
|
"neg_prompt": {{$body.input.input.neg_prompt}},
|
|
"unet_model": {{$body.input.input.model}},
|
|
"seed": {{$body.input.input.seed}},
|
|
"steps": {{$body.input.input.steps}},
|
|
"width": {{$body.input.input.width}},
|
|
"height": {{$body.input.input.height}}
|
|
}
|
|
method: POST
|
|
query_params: {}
|
|
template_engine: Kriti
|
|
url: '{{$base_url}}/inferences/txt2img'
|
|
version: 2
|
|
permissions:
|
|
- role: user
|
|
custom_types:
|
|
enums: []
|
|
input_objects:
|
|
- name: ImageGenerationInput
|
|
objects:
|
|
- name: ImageGenerationOutput
|
|
scalars: []
|