Documentation
¶
Overview ¶
Package llm contains the logic for sending requests to the LLM.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Chat ¶
Chat sends the user's prompt to the LLM and writes the response to the provided writer. It also handles tool calls and image data.
func DataURLOfImageFile ¶
DataURLOfImageFile reads an image file and returns a data URL.
func ExtractCodeBlock ¶
ExtractCodeBlock extracts the first code block from the given text. It returns the code block without the backticks.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.