LazyDoc.Providers.GithubAi (lazy_doc v0.2.0)
Summary
Functions
@spec get_docs_from_response(Req.Response.t()) :: binary()
Parameters
response - a %Req.Response struct containing the response from an HTTP request. Description Parses the body of the HTTP response and extracts the message content from it.
Returns the content of the message extracted from the response body.
Parameters
model - a symbol representing the model type. Description Maps the provided model symbol to its corresponding string representation.
Returns the string representation of the specified model.
@spec request_prompt(binary(), binary(), binary()) :: {:ok, Req.Response.t()} | {:error, Exception.t()}
Parameters
prompt - the input message to be processed by the model. model - the identifier for the specific AI model to be used. token - the authorization token for accessing the AI service.
Description Sends a prompt to an AI model and returns the generated response.
Returns the response generated by the AI model based on the provided prompt.