jupyterlite / jupyterlab-codestral

AI code completions and chat for JupyterLab, Notebook 7 and JupyterLite, powered by MistralAI ✨
http://jupyterlite.github.io/jupyterlab-codestral/
BSD 3-Clause "New" or "Revised" License
6 stars 2 forks source link

Refactoring AIProvider and handling errors #15

Closed brichet closed 2 weeks ago

brichet commented 3 weeks ago

This PR is to prepare adding new providers, see https://github.com/jupyterlite/jupyterlab-codestral/issues/13#issuecomment-2456729648 for context.

Changes

Peek 2024-11-05 17-03

brichet commented 2 weeks ago
  • We may want a better way to display errors (notification, header in the chat...).

AFAIK, the current implementation of the settings panel does not allow custom validator. The only way I can see to display a warning / error message in the settings panel is to add it in the DOM directly.