安装了Ollama之后,我的RTX4060也能在大模型的领域发光发热了。试用了几款前端,不太满意,于是仿照Open WebUI 用React和Java撸了一套GUI。并试用了Llava模型,效果不错。被它写的故事感动了!
看它编个故事:
这是它编的另外一个版本:
Llava 看图作文:
Once upon a time, in a quiet town where the streets were as smooth as glass and the air was always crisp, there lived a curious cat named Whisker. Whisker had an adventurous spirit, always exploring every nook and cranny of the neighborhood, from the cobblestone alleys to the old brick buildings.
One day, Whisker found herself intrigued by the sight of a wheel attached to a bike parked on the sidewalk. She couldn't understand how such an object could move so effortlessly with a mere turn of the handlebars. Determined to unravel this mystery, Whisker decided to take matters into her own paws.
She approached the bicycle cautiously, her eyes wide with curiosity and a hint of mischief. With a sudden leap, she landed right on top of the wheel, her front paws digging into the spokes as if ready for battle. The bike owner, taken aback by this feline acrobatics, was unable to react in time.
As the world stood still, Whisker began her exploration of this fascinating contraption. She tested the resistance of the spokes with a gentle nudge, then a more forceful push, all the while maintaining her balance on the wheel. The owner, now realizing that their bike was in danger, tried to grab it, but to no avail. Whisker was too quick and agile for them.
The people of the town soon heard about the cat's daring adventure and gathered to watch the spectacle. Some were laughing at the unexpected turn of events, while others admired the cat's determination and skill.
Eventually, the bike owner managed to coax Whisker off the wheel without causing any harm or distress to the feline. The townsfolk cheered for the brave little kitty, who had inadvertently turned an ordinary day into a moment of community celebration.
And so, Whisker's name echoed through the cobblestone streets, and the tale of the adventurous cat was passed down from generation to generation as a reminder that sometimes, curiosity can lead to extraordinary adventures.
通义千问给翻译成中文
从前,在一个宁静的小镇上,铺着玻璃般光滑街道的地方,住着一只好奇的猫咪,名叫“绒毛”。
绒毛有着探索世界的冒险精神,每天都会在镇子的每个角落穿梭,从鹅卵石巷弄到砖砌建筑的每一面。
一天,绒毛偶然发现了一辆停靠在人行道上的自行车,车轮上连着一个可以推动的东西——把手。她对这个陌生的装置感到既好奇又困惑。
为了解开这辆自行车的秘密,绒毛决定采取行动。小心翼翼地,她爬上了自行车的车轮,前爪牢牢抓住了车轮的辐条。
接下来的一幕让镇上的居民都目不转睛。绒毛开始轻轻地推动自行车的手柄,随着她的动作,自行车开始缓慢地向前移动。
镇上的人们纷纷赶来观看这场猫咪与自行车的奇妙互动。有人笑称这是“猫骑士”的诞生,也有人感叹绒毛的好奇心和智慧。
从此以后,绒毛的名字在小镇中传扬开来,她以勇敢、好奇和智慧的形象,成为了这个社区里永恒的记忆。
前端代码:https://github.com/ShanGor/ai-chat-ui
后端代码:https://github.com/ShanGor/react-gateway