tweaks to open llm implementation

testing mistral at the moment and did the minimum to get it going
This commit is contained in:
Sam Saffron 2023-10-04 17:20:46 +11:00
parent d76309fa17
commit 13fca098d1
No known key found for this signature in database
GPG Key ID: B9606168D2FFD9F5
3 changed files with 3 additions and 5 deletions

View File

@ -88,6 +88,7 @@ en:
gpt-3:
5-turbo: "GPT-3.5"
claude-2: "Claude 2"
open-llm: "Open LLM"
review:
types:

View File

@ -228,6 +228,7 @@ discourse_ai:
- gpt-3.5-turbo
- gpt-4
- claude-2
- open-llm
ai_bot_enabled_chat_commands:
type: list
default: "categories|google|image|search|tags|time|read"

View File

@ -42,10 +42,6 @@ module DiscourseAi
private
def populate_functions(partial, function)
# nothing to do here, no proper function support quite yet
end
def build_message(poster_username, content, system: false, function: nil)
{ bot: poster_username == bot_user.username, username: poster_username, content: content }
end
@ -69,7 +65,7 @@ module DiscourseAi
prompt,
model_for,
temperature: 0.4,
max_tokens: 600,
max_tokens: 1000,
&blk
)
end