sagemathinc / cocalc

CoCalc: Collaborative Calculation in the Cloud
https://CoCalc.com
Other
1.14k stars 207 forks source link

frontend/llm: refactor and fix OpenAI vs Custom OpenAI #7604

Closed haraldschilly closed 1 month ago

haraldschilly commented 1 month ago

Description

There is code that's not general enough or simply wrong. That causes the "openai" setting to interfere with the "custom openai" configuration. The goal is to clean this up, name the categories of the custom LLM integrations in a better way, consolide both custom LLM endpoint options under a common category, etc. This also finishes the support for custom icons of these custom LLM endpoints.

PS: there is no need to deploy this, since there is no change for prod.

Checklist: