mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 04:11:10 -05:00
Change: const urlHost = new URL(this.options.openAiBaseUrl).host; To: const urlHost = new URL(this.options.openAiBaseUrl ?? "").host; because the nullish coalescing operator (??) to default to an empty string if this.options.openAiBaseUrl is undefined. It ensures that the URL constructor always receives a valid string.