POST
/
api
/
alph
/
{server_name}
/
mistral
curl --request POST \
  --url https://dashboard.amdatascience.com/api/alph/{server_name}/mistral \
  --header 'Content-Type: application/json' \
  --header 'apiKey: <api-key>' \
  --data '{
  "messages": [
    {
      "content": "hi",
      "role": "user"
    }
  ]
}'
"0:\"Hello\"\n0:\"!\"\n0:\" I\"\n0:\"'\"\n0:\"m\"\n0:\" Agent\"\n0:\" Al\"\n0:\"ph\"\n0:\",\"\n0:\" a\"\n0:\" data\"\n0:\" scientist\"\n0:\" and\"\n0:\" AI\"\n0:\"/\"\n0:\"ML\"\n0:\" engineer\"\n0:\" at\"\n0:\" American\"\n0:\" Data\"\n0:\" Science\"\n0:\".\"\n0:\" I\"\n0:\"'\"\n0:\"m\"\n0:\" here\"\n0:\" to\"\n0:\" help\"\n0:\" you\"\n0:\" analyze\"\n0:\" and\"\n0:\" run\"\n0:\" code\"\n0:\" in\"\n0:\" existing\"\n0:\" notebook\"\n0:\"s\"\n0:\".\"\n0:\" If\"\n0:\" you\"\n0:\" have\"\n0:\" a\"\n0:\" data\"\n0:\"file\"\n0:\" or\"\n0:\" file\"\n0:\" path\"\n0:\",\"\n0:\" please\"\n0:\" provide\"\n0:\" it\"\n0:\",\"\n0:\" and\"\n0:\" I\"\n0:\"'\"\n0:\"ll\"\n0:\" do\"\n0:\" my\"\n0:\" best\"\n0:\" to\"\n0:\" run\"\n0:\" code\"\n0:\" in\"\n0:\" a\"\n0:\" notebook\"\n0:\" to\"\n0:\" load\"\n0:\" and\"\n0:\" analyze\"\n0:\" the\"\n0:\" data\"\n0:\".\"\n0:\"\\n\\nHere\"\n0:\"'\"\n0:\"s\"\n0:\" an\"\n0:\" example\"\n0:\" of\"\n0:\" how\"\n0:\" I\"\n0:\" can\"\n0:\" help\"\n0:\" you\"\n0:\":\"\n0:\"\\n\\n1\"\n0:\".\"\n0:\" Load\"\n0:\" a\"\n0:\" C\"\n0:\"SV\"\n0:\" file\"\n0:\" into\"\n0:\" a\"\n0:\" pand\"\n0:\"as\"\n0:\" Data\"\n0:\"Frame\"\n0:\":\"\n0:\"\\n``\"\n0:\"`\"\n0:\"python\"\n0:\"\\nimport\"\n0:\" pand\"\n0:\"as\"\n0:\" as\"\n0:\" pd\"\n0:\"\\n\\n#\"\n0:\" Re\"\n0:\"place\"\n0:\" '\"\n0:\"file\"\n0:\".\"\n0:\"csv\"\n0:\"'\"\n0:\" with\"\n0:\" your\"\n0:\" file\"\n0:\" path\"\n0:\"\\ndf\"\n0:\" =\"\n0:\" pd\"\n0:\".\"\n0:\"read\"\n0:\"_\"\n0:\"csv\"\n0:\"('\"\n0:\"file\"\n0:\".\"\n0:\"csv\"\n0:\"')\"\n0:\"\\n``\"\n0:\"`\"\n0:\"\\n\\n2\"\n0:\".\"\n0:\" Display\"\n0:\" the\"\n0:\" first\"\n0:\" few\"\n0:\" rows\"\n0:\" of\"\n0:\" the\"\n0:\" Data\"\n0:\"Frame\"\n0:\":\"\n0:\"\\n``\"\n0:\"`\"\n0:\"python\"\n0:\"\\ndf\"\n0:\".\"\n0:\"head\"\n0:\"()\"\n0:\"\\n``\"\n0:\"`\"\n0:\"\\n\\n3\"\n0:\".\"\n0:\" Display\"\n0:\" summary\"\n0:\" statistics\"\n0:\" for\"\n0:\" the\"\n0:\" Data\"\n0:\"Frame\"\n0:\":\"\n0:\"\\n``\"\n0:\"`\"\n0:\"python\"\n0:\"\\ndf\"\n0:\".\"\n0:\"desc\"\n0:\"ribe\"\n0:\"()\"\n0:\"\\n``\"\n0:\"`\"\n0:\"\\n\\n4\"\n0:\".\"\n0:\" Plot\"\n0:\" a\"\n0:\" hist\"\n0:\"ogram\"\n0:\" of\"\n0:\" a\"\n0:\" column\"\n0:\" in\"\n0:\" the\"\n0:\" Data\"\n0:\"Frame\"\n0:\":\"\n0:\"\\n``\"\n0:\"`\"\n0:\"python\"\n0:\"\\nimport\"\n0:\" mat\"\n0:\"plot\"\n0:\"lib\"\n0:\".\"\n0:\"py\"\n0:\"plot\"\n0:\" as\"\n0:\" plt\"\n0:\"\\n\\n#\"\n0:\" Re\"\n0:\"place\"\n0:\" '\"\n0:\"column\"\n0:\"_\"\n0:\"name\"\n0:\"'\"\n0:\" with\"\n0:\" the\"\n0:\" name\"\n0:\" of\"\n0:\" the\"\n0:\" column\"\n0:\" you\"\n0:\" want\"\n0:\" to\"\n0:\" plot\"\n0:\"\\npl\"\n0:\"t\"\n0:\".\"\n0:\"hist\"\n0:\"(\"\n0:\"df\"\n0:\"['\"\n0:\"column\"\n0:\"_\"\n0:\"name\"\n0:\"'])\"\n0:\"\\npl\"\n0:\"t\"\n0:\".\"\n0:\"show\"\n0:\"()\"\n0:\"\\n``\"\n0:\"`\"\n0:\"\\n\\nPlease\"\n0:\" provide\"\n0:\" me\"\n0:\" with\"\n0:\" more\"\n0:\" information\"\n0:\" about\"\n0:\" what\"\n0:\" you\"\n0:\"'\"\n0:\"d\"\n0:\" like\"\n0:\" to\"\n0:\" do\"\n0:\",\"\n0:\" and\"\n0:\" I\"\n0:\"'\"\n0:\"ll\"\n0:\" do\"\n0:\" my\"\n0:\" best\"\n0:\" to\"\n0:\" assist\"\n0:\" you\"\n0:\".\"\n"

Authorizations

apiKey
string
headerrequired

Path Parameters

server_name
string
required

Body

application/json
messages
object[]

Response

200 - text/plain

The response is of type file.