Skip to content

Instantly share code, notes, and snippets.

View pdenno's full-sized avatar

Peter Denno pdenno

View GitHub Profile
@pdenno
pdenno / gist:c77cf10b5dc7d62c0e3eb157c189dda1
Created March 27, 2024 00:56
assistant stuff from llm.clj
;;;------------------------------------- assistants ----------------------------------------------------
(s/def ::name string?)
(s/def ::instructions string?)
(s/def ::assistant-args (s/keys :req-un [::name ::instructions]))
(defn make-assistant
"Create an assistant with the given parameters. Provide a map like with following keys:
:name - a string, no default.
:instructions - a string, the systems instructions; defaults to 'You are a helpful assistant.',
:model - a string; defaults to 'gpt-4-1106-preview',
:tools - a vector containing maps; defaults to [{:type 'code_interpreter'}]."