From 167c718eeff6e4246549cf52e6943ba51d9f7540 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Sun, 22 Oct 2023 23:51:19 -0400 Subject: [PATCH] Fixes #2923 adds empty string protection --- CHANGELOG.md | 1 + src/ai/openaiProvider.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4fb178f..6dadb6c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p ### Fixed +- Fixes [#2923](https://github.com/gitkraken/vscode-gitlens/issues/2923) - TypeError: Only absolute URLs are supported - Fixes [#2926](https://github.com/gitkraken/vscode-gitlens/issues/2926) - "Open File at Revision" has incorrect editor label if revision contains path separator - Fixes [#2952](https://github.com/gitkraken/vscode-gitlens/issues/2952) - Inline blame not working because of missing ignoreRevsFile - Fixes [#2814](https://github.com/gitkraken/vscode-gitlens/issues/2814) - GitLens Inspect: "Files Changed" not following when switching between commits in File History diff --git a/src/ai/openaiProvider.ts b/src/ai/openaiProvider.ts index 68fda38..ed57215 100644 --- a/src/ai/openaiProvider.ts +++ b/src/ai/openaiProvider.ts @@ -20,7 +20,7 @@ export class OpenAIProvider implements AIProvider { dispose() {} private get url(): string { - return configuration.get('ai.experimental.openai.url') ?? 'https://api.openai.com/v1/chat/completions'; + return configuration.get('ai.experimental.openai.url') || 'https://api.openai.com/v1/chat/completions'; } async generateCommitMessage(diff: string, options?: { context?: string }): Promise {