-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add NekkoAPI executor #71
base: main
Are you sure you want to change the base?
Conversation
# frozen_string_literal: true | ||
|
||
module Clients | ||
class NekkoaiClient |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't need custom client for Nekkoai - it's fully OpenAI compatible. You can use OpenAI client and just change config (URL).
@@ -4,6 +4,7 @@ module ModelVersionsHelper | |||
DEFAULT_CONFIGURATION = { | |||
'openai' => '{"model":"gpt-3.5-turbo","temperature":0.5}', | |||
'ollama' => '{"model":"llama3.1", "stream": false}', | |||
'nekkoai' => '{"model":"llama","max_tokens":200,"top_p":0.3,"stop":["4.","sushi"]}', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything but "model": "llama"
has only meaning in the context of the example it was used in. We definitely don't care about sushi in llamagator, or do we? :)
@@ -2,6 +2,7 @@ import { Controller } from "@hotwired/stimulus" | |||
const DEFAULT_CONFIGURATION = { | |||
openai: '{"model":"gpt-3.5-turbo","temperature":0.5}', | |||
ollama: '{"model":"llama3.1", "stream": false}', | |||
nekkoai: '{"model":"llama","max_tokens":200,"top_p":0.3,"stop":["4.","sushi"]}', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same: please leave just model specifier.
@@ -4,6 +4,7 @@ module ModelVersionsHelper | |||
DEFAULT_CONFIGURATION = { | |||
'openai' => '{"model":"gpt-3.5-turbo","temperature":0.5}', | |||
'ollama' => '{"model":"llama3.1", "stream": false}', | |||
'nekkoai' => '{"model":"llama","max_tokens":200,"top_p":0.3,"stop":["4.","sushi"]}', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure at this moment if nekkoai
is correct name for this connector.
The company is named "Ainekko". The llama.cpp wrapper - NekkoAPI (or nekko-api).
@Sergyenko please advise.
No description provided.