Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Image2Text ¶
func Image2Text(ctx context.Context, c *app.RequestContext)
Image2Text is an HTTP handler function that handles image - to - text conversion requests. It expects a JSON request body containing a Base64 - encoded image. After validating the input, it calls the LLM to get a text description of the image.
Parameters:
- ctx: The context for the request.
- c: A pointer to the Hertz `app.RequestContext`, used to handle HTTP requests and responses.
func InitModelCfg ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.