Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateChatRequestPayload ¶
CreateChatRequestPayload constructs a basic chat request, using the config file and user's input https://platform.openai.com/docs/api-reference/chat/create
func CreateImageGenerationPayload ¶ added in v0.0.3
CreateImageGenerationPayload asks the LLM to generate an image. If invoked, the url in config.json must point to the v1/images/generations API. For example: https://platform.openai.com/docs/api-reference/images
func CreateImageRequestPayload ¶
CreateImageRequestPayload downloads an image from URL, and provides it to the LLM via a base64 string it does this because some LLMs don't like downloading images from the internet, especially local LLMs https://platform.openai.com/docs/api-reference/chat/create
Types ¶
This section is empty.