(config: ConfigObj)
| 63 | |
| 64 | |
| 65 | def destructive_keywords_from_config(config: ConfigObj) -> list[str]: |
| 66 | keywords = config['main'].get('destructive_keywords', 'DROP SHUTDOWN DELETE TRUNCATE ALTER UPDATE') |
| 67 | return [keyword for keyword in keywords.split(' ') if keyword] |
| 68 | |
| 69 | |
| 70 | def llm_prompt_truncation(config: ConfigObj) -> tuple[int, int]: |