iterativecloud / jupyter-notebook-chatcompletion

Jupyter Notebook ChatCompletion is VSCode extension that brings the power of OpenAI's ChatCompletion API to your Jupyter Notebooks!
https://www.iterative.cloud/
MIT License
7 stars 2 forks source link

Replace hardcoded models with fetch from API #7

Closed AlexandreDeRiemaecker closed 1 year ago

AlexandreDeRiemaecker commented 1 year ago

I received feedback from a user that has access to a non-public model version but needs help to use it with this extension, as the list of models is currently hard-coded.

To improve upon the current behaviour, it would be sufficient to call the appropriate ListModels endpoints and to include those with the "owned_by" attribute set to "openai-internal" and "openai-dev". The challenge here is that there no way to distinguish TextCompletion from ChatCompletion models - but relying on the "gpt" prefix might be enough for now.

The improvement will be implemented in the next release version.