Expose Scriptorium imports and transient retry settings

This commit is contained in:
2026-09-28 03:50:09 +00:00
parent 61dcafe871
commit 2fce529edc
5 changed files with 92 additions and 1 deletions

View File

@@ -1,6 +1,23 @@
{% if scriptorium_prompt_dir is none and scriptorium_profile_dir is none and scriptorium_schema_dir is none and scriptorium_server_addr is none and scriptorium_server_artifact_root is none and scriptorium_server_max_request_bytes is none and scriptorium_server_max_artifact_bytes is none and scriptorium_server_max_response_bytes is none and scriptorium_defaults_render_format is none and scriptorium_backends is none %}
{% if (
scriptorium_configkit_imports is none
and scriptorium_prompt_dir is none
and scriptorium_profile_dir is none
and scriptorium_schema_dir is none
and scriptorium_server_addr is none
and scriptorium_server_artifact_root is none
and scriptorium_server_max_request_bytes is none
and scriptorium_server_max_artifact_bytes is none
and scriptorium_server_max_response_bytes is none
and scriptorium_defaults_render_format is none
and scriptorium_backends is none
and scriptorium_transient_retries is none
) %}
{}
{% else %}
{% if scriptorium_configkit_imports is not none %}
configkit:
imports: {{ scriptorium_configkit_imports | to_json }}
{% endif %}
{% if scriptorium_prompt_dir is not none %}
prompt_dir: {{ scriptorium_prompt_dir | to_json }}
{% endif %}
@@ -35,4 +52,7 @@ defaults:
{% if scriptorium_backends is not none %}
backends: {{ scriptorium_backends | to_json }}
{% endif %}
{% if scriptorium_transient_retries is not none %}
transient_retries: {{ scriptorium_transient_retries | to_json }}
{% endif %}
{% endif %}