Resolve "ollama_mock: stream etwas schneller beenden lassen"
What is new and why?
- Bugfix: beim Check, ob ein Tag existiert muss bei privaten Repos ein Token zum API-Call hinzugefügt werden:
--header "JOB-TOKEN: $CI_JOB_TOKEN" - RF: Chat-Response und Chat-Reason nutzen nun eine gemeinsame Variable
- sleep zwischen den Chunks im Stream von 0.2s auf 0.1s verringert
- Anzahl Chunks beim Stream reduziert durch reduzieren des Texts
- Codequalität (ruff, reuse, pre-commit) wird nun genutzt und in der CI geprüft. Dafür waren einige Docstrings und Type Annotations nötig
- Lizenzscanner-Job hinzugefügt
Related issues
Link related issues below.
Author's TODOs
-
merged latest version of target branch (e.g., mainordev) into your branch -
check if SPDX identifier MPL-2.0and Copyright-Text2025 Land Baden-Württemberg <InnoLab@stm.bwl.de>exists in newly created and/or hasn't been deleted somehow in existing files -
adapted the readme -
Revised/new code parts have no # noqadirectives -
Optional: Changelog adapted (further information)
Reviewer's TODOs
-
Check if the Author did their checks well enough -
Tried out if the cause of the issue is solved as intended -
Check that code with old # noqadirectives were revised -
Check that no new # noqadirectives are included -
Optional: Changelog adapted (further information)
To keep in mind
-
pre-commitused - added logging output were necessary
- added/adjusted Errorhandling to avoid unwanted crashes and make proper debugging and testing possible
-
Changelog has to be adapted before merging, at latest in the
f13::inAbnahmestep
Closes #1 (closed)
Edited by Robert Brunngräber