Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

arturantonnikau
Copy link
Contributor

No description provided.

# frozen_string_literal: true

module Clients
class NekkoaiClient
Copy link
Member

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"]}',
Copy link
Member

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"]}',
Copy link
Member

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"]}',
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants