(chat-completion messages {:keys [model] :as params} opts)(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
(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`
(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
(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`
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |