Skip to content

Commit 2370226

Browse files
committed
update reame
1 parent c8dca23 commit 2370226

7 files changed

Lines changed: 18 additions & 13 deletions

File tree

README.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,9 @@
77
An Open-source Realtime AI Voice Agent Built With Next.js, and OpenAI.
88
</p>
99

10-
This demonstrates:
11-
12-
- Sequential agent handoffs according to a defined agent graph (taking inspiration from [OpenAI Swarm](https://github.com/openai/swarm))
10+
- Sequential agent handoffs according to a defined agent graph (inspiration from [OpenAI Swarm](https://github.com/openai/swarm))
1311
- Background escalation for high-stakes decisions
14-
- Prompting models to follow a state machine, for example to accurately collect things like names and phone numbers with confirmation character by character to authenticate a user.
12+
- Prompting models to follow a state machine, for example to accurately collect things like names and phone numbers with confirmation character by character to authenticate a user
1513

1614
<p align="center">
1715
<a href="#features"><strong>Features</strong></a> ·
@@ -25,22 +23,29 @@ This demonstrates:
2523

2624
- [Next.js](https://nextjs.org) App Router
2725
- Advanced routing for seamless navigation and performance
28-
- React Server Components (RSCs) and Server Actions for server-side rendering and increased performance
26+
- React Server Components (RSCs) for server-side rendering and increased performance
2927
- [OpenAI](https://openai.com/) Integration
3028
- Leverages OpenAI's powerful models for chat generation.
3129
- Direct API calls for text generation and other AI features.
3230
- Web search capabilities through OpenAI's Response API for real-time information retrieval
3331
- [Jina Reader](https://jina.ai/) Integration
3432
- Advanced web scraping capabilities for extracting structured data from websites
3533
- Enhances the AI's ability to process and understand web content
36-
- [shadcn/ui](https://ui.shadcn.com)
34+
- [Shadcn/ui](https://ui.shadcn.com)
3735
- Styling with [Tailwind CSS](https://tailwindcss.com)
3836
- Component primitives from [Radix UI](https://radix-ui.com) for accessibility and flexibility
3937

4038
## Model Provider
4139

4240
This app utilizes the [OpenAI API](https://openai.com/) for its AI capabilities. It is configured to use OpenAI models for generating responses.
4341

42+
- Realtime Model (`gpt-4o-mini-realtime-preview`): Higher quality conversational model with higher latency
43+
- Realtime Mini Model (`gpt-4o-realtime-preview`): Optimized for low-latency conversational responses
44+
- Chat Model (`gpt-4.1`): General purpose GPT-4.1 model
45+
- Chat Mini Model (`gpt-4.1-mini`): Smaller variant of GPT-4.1
46+
- Transcribe Model (`gpt-4o-transcribe`): Optimized for speech-to-text transcription
47+
- Transcribe Mini Model (`gpt-4o-mini-transcribe`): Optimized for low-latency speech-to-text transcription
48+
4449
## Deploy Your Own
4550

4651
You can deploy your own version of the OpenChat to Vercel with one click:

app/api/og/route.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export async function GET() {
3737
fontSize: 20,
3838
}}
3939
>
40-
github.com/muradpm
40+
github.com/murabcd
4141
</span>
4242
</div>
4343
<div

components/agent-configs/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { AllAgentConfigsType } from "@/lib/types";
22

3-
import simpleExample from "@/components/agent-configs/web-search/index";
3+
import webSearch from "@/components/agent-configs/web-search/index";
44
import customerService from "@/components/agent-configs/customer-service/index";
55

66
export const allAgentSets: AllAgentConfigsType = {
7-
simpleExample,
7+
webSearch,
88
customerService,
99
};
1010

11-
export const defaultAgentSetKey = "simpleExample";
11+
export const defaultAgentSetKey = "webSearch";
File renamed without changes.

components/agent-configs/web-search/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import greeter from "./simple-example";
1+
import greeter from "./greeter";
22
import search from "./search";
33
import { injectTransferTools } from "@/lib/utils";
44

components/right-sidebar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ const RightSidebar: React.FC<RightSidebarProps> = ({
6868
htmlFor="audio-playback-sidebar"
6969
className="flex items-center cursor-pointer text-sm pr-2"
7070
>
71-
Audio playback
71+
Playback
7272
</Label>
7373
<Switch
7474
id="audio-playback-sidebar"
@@ -84,7 +84,7 @@ const RightSidebar: React.FC<RightSidebarProps> = ({
8484
htmlFor="logs-sidebar"
8585
className="flex items-center cursor-pointer text-sm pr-2"
8686
>
87-
Logs panel
87+
Logs
8888
</Label>
8989
<Switch
9090
id="logs-sidebar"

public/preview/voice.png

-70.1 KB
Loading

0 commit comments

Comments
 (0)