SystemRole is not sent to Claude when no files are attached

Still reproducible in v1.7.6.0 (TMS AI Studio 2.0.1.1)

The SystemRole is not sent to Claude when no files are attached. In BuildPostData, the "system" field for aiClaude is assigned only inside the if FFiles.Count > 0 then case Service of ... aiClaude: block, so with plain text context ASystemRole stays empty and the request goes out without a system prompt (no error, no warning).

Suggested fix: move the assignment outside the files block, right after the system role handling for the other services:

delphi

if (FSystemRole.Text <> '') and (Service = aiClaude) then
  ASystemRole := '"system": "' + JsonEncode(FSystemRole.Text) + '",';

Tested locally with this change: works as expected.

Thanks for reporting.
We could see & resolve this issue. The next update of TMS AI Studio will address this.