discourse-ai/app
Roman Rizzi 4f1a3effe0
REFACTOR: Migrate Vllm/TGI-served models to the OpenAI format. (#588)
Both endpoints provide OpenAI-compatible servers. The only difference is that Vllm doesn't support passing tools as a separate parameter. Even if the tool param is supported, it ultimately relies on the model's ability to handle native functions, which is not the case with the models we have today.

As a part of this change, we are dropping support for StableBeluga/Llama2 models. They don't have a chat_template, meaning the new API can translate them.

These changes let us remove some of our existing dialects and are a first step in our plan to support any LLM by defining them as data-driven concepts.

 I rewrote the "translate" method to use a template method and extracted the tool support strategies into its classes to simplify the code.

Finally, these changes bring support for Ollama when running in dev mode. It only works with Mistral for now, but it will change soon..
2024-05-07 10:02:16 -03:00
..
controllers/discourse_ai FEATURE: support Chat with AI Persona via a DM (#488) 2024-05-06 09:49:02 +10:00
helpers/discourse_ai/ai_bot FIX: expire assets when CSS changes FIX: missing translation on share page (#528) 2024-03-13 20:52:33 +11:00
jobs FEATURE: support Chat with AI Persona via a DM (#488) 2024-05-06 09:49:02 +10:00
mailers FEATURE: support sending AI report to an email address (#368) 2023-12-19 17:51:49 +11:00
models REFACTOR: Migrate Vllm/TGI-served models to the OpenAI format. (#588) 2024-05-07 10:02:16 -03:00
serializers FEATURE: support Chat with AI Persona via a DM (#488) 2024-05-06 09:49:02 +10:00
views UX: Add title suffix to shared AI pages (#531) 2024-03-15 10:31:58 +00:00