(key, value)
| 886 | |
| 887 | # Define a function to update an individual runoption |
| 888 | async def update_runoption(key, value): |
| 889 | if value is None: |
| 890 | return |
| 891 | await asyncio.to_thread(lambda k=key, v=value: payload.runoptions.__setitem__(k, v)) |
| 892 | logger.debug(f"Set runoption {key}={value}") |
| 893 | |
| 894 | # Set generation options individually |
| 895 | await update_runoption('Format', format_type) |
no test coverage detected