from openai import OpenAI client = OpenAI(base_url="http://localhost:8000/v1", api_key="EMPTY") messages = [ { "role": "user", "content":[ { "type": "image_url", "image_url": { "url": "https://example.com/anime_character_design.jpg" } }, { "type": "text", "text": "Analyze this character's design. Based on typical Japanese sub-culture tropes, what kind of personality (e.g., Tsundere, Yandere, Chuunibyou) do they likely have, and what kind of magic would they use in a fantasy setting?" } ] }] chat_response = client.chat.completions.create( model="Local-Novel-LLM-project/Qwen3.5-Hasutsubomi-9B", messages=messages, max_tokens=2048, temperature=0.7,)print("Chat response:", chat_response.choices[0].message.content)