Skip to content

Commit

Permalink
Add personas to NaturalFrontendOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
axelpey committed Feb 9, 2024
1 parent b6314be commit c098bee
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion examples/social_network/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,19 @@
app = NaturalFrontend(
app,
openai_api_key=creds["key"],
options=NaturalFrontendOptions(frontend_endpoint=""),
options=NaturalFrontendOptions(
frontend_endpoint="frontend",
personas=[
{
"persona": "Twitter Lover Reader",
"description": "User that loves reading posts on a Twitter-like platform",
},
{
"persona": "Administrator",
"description": "User that can see and change all posts and users",
},
],
),
)


Expand Down

0 comments on commit c098bee

Please sign in to comment.