* @brief OpenAI enforces tool names ^[a-zA-Z0-9_-]+; encode dots/colons. */
| 54 | * @brief OpenAI enforces tool names ^[a-zA-Z0-9_-]+; encode dots/colons. |
| 55 | */ |
| 56 | static QString sanitizeName(const QString& original) |
| 57 | { |
| 58 | QString out = original; |
| 59 | out.replace(QChar('.'), QChar('_')); |
| 60 | out.replace(QChar(':'), QChar('_')); |
| 61 | return out; |
| 62 | } |
| 63 | |
| 64 | //-------------------------------------------------------------------------------------------------- |
| 65 | // Construction and provider metadata |
no outgoing calls
no test coverage detected