Fix log system prompt (#907)
* restructuring: removing ModelInfo which is useless, to log instead the full ModelConfig object. Also moved some classes around as they were not in the right place
* better management of pydantic to dict for cleaner save
* fixed tests
* fixed doc