Error when configuring large model API KEY: string argument should contain only ASCII characters

Whether copied and pasted or manually entered, the error shown in the image below appears, even without garbled characters or spaces.