discourse-ai/app/models
Sam a3c827efcc
FEATURE: allow personas to supply top_p and temperature params (#459)
* FEATURE: allow personas to supply top_p and temperature params

Code assistance generally are more focused at a lower temperature
This amends it so SQL Helper runs at 0.2 temperature vs the more
common default across LLMs of 1.0.

Reduced temperature leads to more focused, concise and predictable
answers for the SQL Helper

* fix tests

* This is not perfect, but far better than what we do today

Instead of fishing for

1. Draft sequence
2. Draft body

We skip (2), this means the composer "only" needs 1 http request to
open, we also want to eliminate (1) but it is a bit of a trickier
core change, may figure out how to pull it off (defer it to first draft save)

Value of bot drafts < value of opening bot conversations really fast
2024-02-03 07:09:34 +11:00
..
ai_api_audit_log.rb Mixtral (#376) 2023-12-26 14:49:55 -03:00
ai_persona.rb FEATURE: allow personas to supply top_p and temperature params (#459) 2024-02-03 07:09:34 +11:00
classification_result.rb DEV: Dedicated table for saving classification results (#1) 2023-02-27 16:21:40 -03:00
completion_prompt.rb REFACTOR: Represent generic prompts with an Object. (#416) 2024-01-12 14:36:44 -03:00
model_accuracy.rb REFACTOR: Store prompts in a dedicated table. (#14) 2023-03-17 15:14:19 -03:00
post_custom_prompt.rb FEATURE: add support for GPT <-> Forum integration 2023-05-20 17:45:54 +10:00
reviewable_ai_chat_message.rb FIX: 500 error when reviewable has a missing message (#397) 2024-01-03 11:49:47 -03:00
reviewable_ai_post.rb REFACTOR: Store prompts in a dedicated table. (#14) 2023-03-17 15:14:19 -03:00