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
3 stars 2 forks source link

Refactoring AIProvider and handling errors #15

Closed brichet closed 16 hours ago

brichet commented 1 day 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 16 hours 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.