image2text

package
v0.0.0-...-161f7c1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2025 License: MIT Imports: 10 Imported by: 0

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

func InitModelCfg(apiKey, model string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL