Roo-Code/src
lloydchang 9abe3f6916
fix(openai.ts): default to an empty string if undefined
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.
2024-12-11 02:37:26 -08:00
..
api fix(openai.ts): default to an empty string if undefined 2024-12-11 02:37:26 -08:00
core Handle Windows line endings (#62) 2024-12-10 20:24:51 -05:00
exports Chore: Prettier for consistant formatting (#794) 2024-11-21 13:13:54 -08:00
integrations Improvements to apply_diff (#52) 2024-12-08 10:51:40 -05:00
services Chore: Prettier for consistant formatting (#794) 2024-11-21 13:13:54 -08:00
shared Added support for gemini-exp-1206 (#54) 2024-12-09 09:37:38 -05:00
test Chore: Prettier for consistant formatting (#794) 2024-11-21 13:13:54 -08:00
utils Improvements to apply_diff (#52) 2024-12-08 10:51:40 -05:00
extension.ts feat(extension.ts): use rocket icon (#34) 2024-12-01 17:31:58 -05:00