Liking cljdoc? Tell your friends :D

bosquet.llm.openai


->completioncljmultimethod


adaclj


cgpt-35clj


chat-completionclj

(chat-completion messages {:keys [model] :as params} opts)

chat-model?clj

(chat-model? model)

Check if model (name provided as string) is a chat model

Check if `model` (name provided as string) is a chat model
raw docstring

completeclj

(complete prompt)
(complete prompt params)
(complete prompt {:keys [model] :or {model cgpt-35} :as params} opts)

Complete prompt if passed in model is cGPT the completion will be passed to complete-chat

Complete `prompt` if passed in `model` is cGPT the completion will
be passed to `complete-chat`
raw docstring

create-chat-completionclj

(create-chat-completion prompt params opts)

Completion using Chat GPT model. This one is loosing the conversation aspect of the API. It will construct basic system for the conversation and then use prompt as the user in the chat

Completion using Chat GPT model. This one is loosing the conversation
aspect of the API. It will construct basic `system` for the
conversation and then use `prompt` as the `user` in the chat 
raw docstring

create-completionclj

(create-completion prompt params opts)

Create completion (not chat) for prompt based on model params and invocation opts

Create completion (not chat) for `prompt` based on model `params` and invocation `opts`
raw docstring

davinciclj


default-system-promptclj


openaiclj

Service name to refernece OpenAI

Service name to refernece OpenAI
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close