{% extends "base.html" %} {% block title %}Chat - PatChat{% endblock %} {% block content %}
System Prompt
{{ ai_models['gpt-3.5-turbo'].description }} Cost: ${{ "%.4f"|format(ai_models['gpt-3.5-turbo'].cost_per_1k_tokens) }} per 1K tokens
{% if conversation %}
Current Conversation

{{ conversation.title }}

Created: {{ conversation.created_at.strftime('%Y-%m-%d %H:%M') }}

{% endif %}
{% if conversation and conversation.messages %} {% for message in conversation.messages %}
{% if message.role == 'user' %} {% else %} {% endif %}
{{ message.content | nl2br }}
{% endfor %} {% else %}

Start a conversation with AI

{% endif %}
Loading...

AI is thinking...

{% endblock %} {% block extra_js %} {% endblock %}