Skip to content

Commit

Permalink
Fix the bug that cannot restore the default endpoint for ChatGPT. fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
bookfere committed Jun 15, 2023
1 parent 20d9df2 commit 3ae6a9a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions setting.py
Original file line number Diff line number Diff line change
Expand Up @@ -846,6 +846,8 @@ def get_engine_config(self):
if prompt != self.current_engine.prompt:
config.update(prompt=prompt)
endpoint = self.chatgpt_endpoint.text()
if 'endpoint' in config:
del config['endpoint']
if endpoint and endpoint != self.current_engine.endpoint:
config.update(endpoint=endpoint)

Expand Down

0 comments on commit 3ae6a9a

Please sign in to comment.