mabile friendly
This commit is contained in:
parent
d980b156d9
commit
cc518cd76f
2
Makefile
2
Makefile
|
|
@ -22,7 +22,7 @@ ollama-status:
|
|||
|
||||
# Run the Go server (assumes Ollama is running)
|
||||
run: ollama-pull
|
||||
OPENAI_API_KEY=ollama OPENAI_BASE_URL=http://localhost:11434/v1 OPENAI_MODEL=llama3 go run .
|
||||
OPENAI_API_KEY=ollama OPENAI_BASE_URL=http://localhost:11434/api/chat OPENAI_MODEL=qwen3:latest go run .
|
||||
|
||||
# Run tests
|
||||
.PHONY: test
|
||||
|
|
|
|||
9
ui.html
9
ui.html
|
|
@ -4,14 +4,15 @@
|
|||
<meta charset="UTF-8">
|
||||
<title>Vet Clinic Chat Assistant</title>
|
||||
<script src="https://cdn.tailwindcss.com"></script>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
</head>
|
||||
<body class="bg-gray-50 min-h-screen flex items-center justify-center">
|
||||
<div id="chatbox" class="w-full max-w-md mx-auto bg-white rounded-xl shadow-lg p-6">
|
||||
<div id="chatbox" class="w-full max-w-md md:max-w-lg lg:max-w-xl mx-auto bg-white rounded-xl shadow-lg p-4 sm:p-6">
|
||||
<h2 class="text-2xl font-bold mb-4 text-center text-green-700">Vet Clinic Chat Assistant</h2>
|
||||
<div id="messages" class="border border-gray-300 min-h-[120px] p-3 mb-4 bg-gray-100 rounded-lg overflow-y-auto" style="max-height: 300px;"></div>
|
||||
<div class="flex gap-2">
|
||||
<input id="input" type="text" placeholder="Type your message..." autofocus class="flex-1 px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-green-400" />
|
||||
<button id="send" class="px-4 py-2 bg-green-600 text-white rounded-lg hover:bg-green-700 transition">Send</button>
|
||||
<div class="flex flex-col sm:flex-row gap-2">
|
||||
<input id="input" type="text" placeholder="Type your message..." autofocus class="flex-1 px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-green-400 text-base" />
|
||||
<button id="send" class="px-4 py-3 bg-green-600 text-white rounded-lg hover:bg-green-700 transition text-base">Send</button>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Reference in New Issue