import os
#from mistralai import Mistral
from django.shortcuts import render

# API_KEY = "qYyFMW6l4r2tj12EE0eilZym45oHVzIX"
# Create your views here.

def test_djapp():
	return "OK"

def ia_chat(message):
        return "IA desactive dans cette version"
        client = Mistral(api_key=API_KEY)
        print(message)
        response = client.chat.complete(
                model="mistral-large-latest",
                messages=[{"role": "user", "content": message}],
        )
        return str( response.choices[0].message.content )
