from pathlib import Path import requests lyrics = Path("lyrics.txt").read_text() message = f"""Interpret the core message of these lyrics: {lyrics} """ data = {"messages" : [{"role" : "user", "content" : message}], "model": "mistralai/Mistral-7B-Instruct-v0.2"} # Note: Both the vLLM and Mistral docs don't mention you need the `v1` in the URL. # You'll see a lot of {"detail" : "Not Found"} responses without this r = requests.post("http://localhost:8000/v1/chat/completions", json=data).json() print(r['choices'][0]['message']['content']) # The core message of these lyrics appears to be about the speaker's experience of being in a relationship with someone who has hurt or confused them, and their struggle to decide whether to continue investing their emotions in the relationship or to let go and move on. The speaker expresses their desire for the other person to be open and expressive in their feelings, as they have been trying to be more forgiving and patient. However, they also acknowledge that they have been getting better at letting go of things and not getting too attached, particularly if the other person is not reciprocating their feelings or behavior is inconsistent. The speaker ultimately expresses their reluctance to leave the relationship but also their determination to protect themselves from unnecessary pain. Overall, the lyrics suggest a complex emotional landscape of love, hurt, and ambivalence.