LangChain.Providers.NlpCloud (langchainex v0.2.3)

NLP Cloud Provider https://nlpcloud.com/ This module is predominantly used for internal API handling

@models %{ "fast-gpt-j" => "A fast implementation of the GPT-J model.", "finetuned-gpt-neox-20b" =>

"Fine-tuned GPT-NeoX 20B will work better than Fast GPT-J. It supports many non-English languages.",

"dolphin" =>

"Dolphin, an NLP Cloud in-house model, has a great accuracy at an affordable price. It supports many non-English languages.",

"chatdolphin" =>

"ChatDolphin, an NLP Cloud in-house model, has a great accuracy at an affordable price. It supports many non-English languages."

}

Link to this section Summary

Link to this section Functions

Link to this function

get_base(model)

Link to this function

handle_response(model, body)

Link to this function

prepare_body(model, question)

Link to this function

report_price(token_usage)

Used to report the price of a response from Replicate