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

Fix llm provider custom variables types #147

Merged
merged 1 commit into from
Jul 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions ellama.el
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
(require 'eieio)
(require 'json)
(require 'llm)
(require 'llm-provider-utils)
(require 'spinner)
(require 'info)
(require 'shr)
Expand Down Expand Up @@ -78,7 +79,7 @@
:chat-model "zephyr" :embedding-model "zephyr"))
"Backend LLM provider."
:group 'ellama
:type '(sexp :validate 'cl-struct-p))
:type '(sexp :validate 'llm-standard-provider-p))

(defcustom ellama-chat-translation-enabled nil
"Enable chat translations."
Expand All @@ -88,12 +89,13 @@
(defcustom ellama-translation-provider nil
"LLM provider for chat translation."
:group 'ellama
:type '(sexp :validate 'cl-struct-p))
:type '(sexp :validate 'llm-standard-provider-p))

(defcustom ellama-providers nil
"LLM provider list for fast switching."
:group 'ellama
:type '(alist :key-type string))
:type '(alist :key-type string
:value-type '(sexp :validate 'llm-standard-provider-p)))

(defcustom ellama-spinner-type 'progress-bar
"Spinner type for ellama."
Expand Down Expand Up @@ -506,7 +508,7 @@ This filter contains only subset of markdown syntax to be good enough."
(defcustom ellama-naming-provider nil
"LLM provider for generating names."
:group 'ellama
:type '(sexp :validate 'cl-struct-p))
:type '(sexp :validate 'llm-standard-provider-p))

(defcustom ellama-always-show-chain-steps nil
"Always show ellama chain buffers."
Expand Down