Skip to content

Commit

Permalink
fix(gpt-runner-vscode): can not save openai config
Browse files Browse the repository at this point in the history
  • Loading branch information
2214962083 committed Jun 28, 2023
1 parent ba0db10 commit f5a720a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gpt-runner-web/client/src/helpers/constant.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export const DEFAULT_CHAT_NAME = 'New Chat'
export const IS_LOCAL_HOST = ['localhost', '127.0.0.1'].includes(window.location.hostname)
export const MAYBE_IDE = ['http:', 'https:'].includes(window.location.protocol)
export const MAYBE_IDE = !['http:', 'https:'].includes(window.location.protocol)

const _BASE_URL = document.querySelector('base')?.href || '/'
export const BASE_URL = _BASE_URL.endsWith('/') ? _BASE_URL.slice(0, -1) : _BASE_URL

0 comments on commit f5a720a

Please sign in to comment.