langchain.llms.azureml_endpoint.LlamaContentFormatter¶
- class langchain.llms.azureml_endpoint.LlamaContentFormatter[source]¶
Bases:
ContentFormatterBaseContent formatter for LLaMa
Methods
__init__()escape_special_characters(prompt)Escapes any special characters in prompt
format_request_payload(prompt, model_kwargs)Formats the request according the the chosen api
format_response_payload(output)Formats response
Attributes
The MIME type of the response data returned from the endpoint
The MIME type of the input data passed to the endpoint
- static escape_special_characters(prompt: str) str¶
Escapes any special characters in prompt
- format_request_payload(prompt: str, model_kwargs: Dict) bytes[source]¶
Formats the request according the the chosen api
- accepts: Optional[str] = 'application/json'¶
The MIME type of the response data returned from the endpoint
- content_type: Optional[str] = 'application/json'¶
The MIME type of the input data passed to the endpoint