IBM / Mistral AI - merlinite-7b
POST {{baseUrl}}/ml/v1/text/generation?version=2023-05-29
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
version | string |
Request Body
{"input"=>"What is the purpose of life?", "parameters"=>{"decoding_method"=>"greedy", "max_new_tokens"=>200, "min_new_tokens"=>0, "repetition_penalty"=>1}, "model_id"=>"ibm-mistralai/merlinite-7b", "project_id"=>"{{projectId}}", "moderations"=>{"hap"=>{"input"=>{"enabled"=>true, "threshold"=>0.5, "mask"=>{"remove_entity_value"=>true}}, "output"=>{"enabled"=>true, "threshold"=>0.5, "mask"=>{"remove_entity_value"=>true}}}}}
RESPONSES
status: OK
{"model_id":"ibm-mistralai/merlinite-7b","created_at":"2024-05-12T13:57:23.127Z","results":[{"generated_text":"\n\nThe purpose of life is to be happy. From the perspective of everyday life, a person gets happiness from their work, relationships, and experiences.\n\n## What is the purpose of life according to the Bible?\n\nWe exist to glorify God, enjoy God, and enjoy God forever. God created us to live with him in eternal fellowship, which means that our deepest desire will only be satisfied when we are with God for eternity.\n\n## What is the purpose of life according to the Quran?\n\nThe purpose of life is to worship Allah and to prepare for the afterlife.\n\n## What is the purpose of life according to Hinduism?\n\nThe purpose of life is to attain moksha, or liberation from the cycle of birth and death.\n\n## What is the purpose of life according to Buddhism?\n\nThe purpose of life is to end suffering and achieve enlightenment","generated_token_count":200,"input_token_count":7,"stop_reason":"max_tokens"}],"system":{"warnings":[{"message":"This model is a Non-IBM Product governed by a third-party license that may impose use restrictions and other obligations. By using this model you agree to its terms as identified in the following URL.","id":"disclaimer_warning","more_info":"https://dataplatform.cloud.ibm.com/docs/content/wsj/analyze-data/fm-models.html?context=wx"}]}}