discourse-ai/spec
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
..
fabricators FEATURE: AI Bot RAG support. (#537) 2024-04-01 13:43:34 -03:00
fixtures FIX: blank metadata leading to errors (#578) 2024-04-17 13:46:40 +10:00
jobs FIX: blank metadata leading to errors (#578) 2024-04-17 13:46:40 +10:00
lib REFACTOR: Migrate Vllm/TGI-served models to the OpenAI format. (#588) 2024-05-07 10:02:16 -03:00
models FEATURE: support Chat with AI Persona via a DM (#488) 2024-05-06 09:49:02 +10:00
requests FEATURE: Enhance AI debugging capabilities and improve interface adjustments (#577) 2024-04-15 23:22:06 +10:00
serializers DEV: Fix new Rubocop offenses 2024-03-06 15:23:29 +01:00
shared FEATURE: Stable diffusion 3 support (#582) 2024-04-19 18:08:16 +10:00
support FIX: typo causing text_embedding_3_large to fail (#460) 2024-02-05 11:16:36 +11:00
system FEATURE: Insert footnote from explained result (#591) 2024-05-03 11:53:17 -07:00
tasks FIX: Filter soft-deleted topics when backfilling sentiment (#527) 2024-03-12 21:01:24 -03:00
plugin_spec.rb DEV: Fix new Rubocop offenses 2024-03-06 15:23:29 +01:00