Skip to content

Commit

Permalink
Clear error if a GPT model changed
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanBluefox committed Jun 4, 2024
1 parent bf229ca commit 8fa2272
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/src/OpenAi/OpenAiDialog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ Do not import any libraries as all functions are already imported.`,
value={model}
onChange={e => {
window.localStorage.setItem('openai-model', e.target.value);
error && setError(false);
setModel(e.target.value);
}}
>
Expand Down

0 comments on commit 8fa2272

Please sign in to comment.