Skip to content

Commit

Permalink
[ai_chat] Add links (#3300)
Browse files Browse the repository at this point in the history
Add links
  • Loading branch information
jolestar authored Feb 11, 2025
1 parent f443183 commit 0b7eaa4
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 11 deletions.
21 changes: 13 additions & 8 deletions examples/onchain_ai_chat/README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
# Onchain AI Chat

A decentralized chat application built on Rooch blockchain with AI integration through Verity Oracle.
A decentralized AI chat platform built on Rooch blockchain with Verity Oracle integration.

## Features

- Create and join chat rooms
- Real-time messaging with other users
- AI-powered chat rooms with GPT-4 integration
- AI-powered chat rooms with GPT-4o integration
- Real-time messaging with context awareness
- On-chain message storage and persistence
- Pagination support for message history
- Real-time message updates
- Automatic conversation summarization
- Paginated message history
- Real-time updates

## Live Demo

Visit [ai.rooch.io](https://ai.rooch.io) to try the application.

## Architecture

Expand Down Expand Up @@ -50,7 +54,6 @@ The application follows these steps:
5. Response is processed through the callback contract
6. Message is stored on-chain and displayed to users


## Future Features
1. Integration with OnChain AI Agent ecosystem
2. Plugin SDK for extending chat functionality
Expand All @@ -63,7 +66,9 @@ The application follows these steps:
- [Rooch](https://rooch.network) development environment
- Node.js v16+ and npm/yarn

## Getting Started
## Development

### Local Setup

1. Clone the repository:
```bash
Expand Down
29 changes: 26 additions & 3 deletions examples/onchain_ai_chat/web/src/components/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,32 @@ export function Layout({ children, showRoomList = false }: LayoutProps) {
return (
<div className="h-screen flex flex-col">
<header className="flex-none flex items-center justify-between px-6 h-16 border-b bg-white">
<Link to="/" className="text-2xl font-bold text-gray-900 hover:text-gray-700 transition-colors">
OnChain AI Chat
</Link>
<div className="flex items-center space-x-6">
<Link to="/" className="text-2xl font-bold text-gray-900 hover:text-gray-700 transition-colors">
OnChain AI Chat
</Link>
<div className="flex items-center space-x-4 text-sm">
<a
href="https://github.com/rooch-network/rooch/tree/main/examples/onchain_ai_chat"
target="_blank"
rel="noopener noreferrer"
className="text-gray-600 hover:text-gray-900 flex items-center space-x-1"
>
<svg className="w-5 h-5" fill="currentColor" viewBox="0 0 24 24" aria-hidden="true">
<path fillRule="evenodd" d="M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z" clipRule="evenodd" />
</svg>
<span>GitHub</span>
</a>
<a
href="https://rooch.network"
target="_blank"
rel="noopener noreferrer"
className="text-gray-600 hover:text-gray-900"
>
Rooch Network
</a>
</div>
</div>
<ConnectButton />
</header>

Expand Down

0 comments on commit 0b7eaa4

Please sign in to comment.