Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/web #23

Merged
merged 54 commits into from
Jul 28, 2023
Merged
Show file tree
Hide file tree
Changes from 47 commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
c1b9796
started working on reading saves
zbigniewsobiecki Jun 4, 2023
dbd6d47
simple backend
zbigniewsobiecki Jun 4, 2023
29feaf4
layout work
zbigniewsobiecki Jun 4, 2023
ba5369e
more styling
zbigniewsobiecki Jun 4, 2023
730f540
header styling
zbigniewsobiecki Jun 4, 2023
a99a58e
more styling
zbigniewsobiecki Jun 4, 2023
28394d9
initial work on diffs
zbigniewsobiecki Jun 4, 2023
c244dab
working on styling and comparisons
zbigniewsobiecki Jun 4, 2023
0c59c8d
more ui
zbigniewsobiecki Jun 5, 2023
db817cc
wip
zbigniewsobiecki Jun 5, 2023
69616ac
ui command introduced
zbigniewsobiecki Jun 6, 2023
84e82a1
introducing monaco editor
zbigniewsobiecki Jun 6, 2023
d8b426c
basic editing works
zbigniewsobiecki Jun 6, 2023
e3bd39a
menu added
zbigniewsobiecki Jun 6, 2023
4c4df44
styling updates
zbigniewsobiecki Jun 6, 2023
036ecc0
more styling
zbigniewsobiecki Jun 6, 2023
293af4a
more styling
zbigniewsobiecki Jun 6, 2023
b291f1c
opening browser window upon ui startup
zbigniewsobiecki Jun 7, 2023
0865aa1
basic run triggering
zbigniewsobiecki Jun 7, 2023
4922512
wip
zbigniewsobiecki Jun 7, 2023
28dea09
uvicorn added
zbigniewsobiecki Jun 7, 2023
5a84d45
styling and other fixes
zbigniewsobiecki Jun 8, 2023
1994887
window title
zbigniewsobiecki Jun 8, 2023
57e1284
ui fixes, ui command refactored
zbigniewsobiecki Jun 21, 2023
d16ed15
refactor wip
zbigniewsobiecki Jun 21, 2023
ec1697b
refactor wip
zbigniewsobiecki Jun 21, 2023
855e013
refactor wip
zbigniewsobiecki Jun 21, 2023
19558b1
refactor, tests, deps update
zbigniewsobiecki Jun 22, 2023
df37212
refactor, updates, styling
zbigniewsobiecki Jun 22, 2023
3f6c15a
more styling updates
zbigniewsobiecki Jun 22, 2023
10b2e2b
fixes and styling
zbigniewsobiecki Jun 22, 2023
918a296
tokens per second, styling, bugfixes
zbigniewsobiecki Jun 22, 2023
5d21a69
wip
zbigniewsobiecki Jun 22, 2023
8d562b3
monaco editor used to show diffs
zbigniewsobiecki Jun 22, 2023
de7c996
quick fixes
zbigniewsobiecki Jun 23, 2023
e8b131a
error experience
zbigniewsobiecki Jun 26, 2023
a55f241
started working on reading saves
zbigniewsobiecki Jun 4, 2023
d57b44c
Merge remote-tracking branch 'refs/remotes/origin/feat/web' into feat…
zbigniewsobiecki Jun 28, 2023
0238ce7
not using diff match patch anymore
zbigniewsobiecki Jun 28, 2023
e5fde84
rebased & fixes
zbigniewsobiecki Jun 28, 2023
86fa365
isort & black
zbigniewsobiecki Jun 28, 2023
c30a50e
fixing tests
zbigniewsobiecki Jun 28, 2023
120268c
tests fixed
zbigniewsobiecki Jun 29, 2023
8f9d11e
refactored saving while running
zbigniewsobiecki Jun 29, 2023
9ababf7
fixes, runner test, test/mock service provider
zbigniewsobiecki Jun 30, 2023
5c02226
more tests
zbigniewsobiecki Jun 30, 2023
7b02a2d
updated readme
zbigniewsobiecki Jun 30, 2023
e51ed7b
add missing elevenlabs dependency
meal Jul 27, 2023
a040c4d
fix check for file existence, remove unused imports
meal Jul 27, 2023
3263ca2
add missing fastapi dependency
meal Jul 27, 2023
7f67950
lint
meal Jul 27, 2023
185b950
third run
zbigniewsobiecki Jul 27, 2023
b976f0e
number 2. xD.
zbigniewsobiecki Jul 27, 2023
be1a363
bump version
meal Jul 28, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Everyone is welcome to contribute!

## Features

- Command-line execution of prompts
- Command-line execution of prompts (now with web UI!)
- Quick iteration on prompt design and paramter refinement with `watch` command
- YAML configuration ties prompts to models and their configurations
- Write prompt-scripts with #!/usr/bin/prr shebang and execute them directly
Expand Down Expand Up @@ -108,6 +108,16 @@ ELEVEN_LABS_API_KEY="9db0...."
DEFAULT_SERVICE="openai/chat/gpt-3.5-turbo"
```

### Running web user interface

Simply run prr with 'ui' command and your prompt path (if it doesn't exist, it will be created), like so:

```sh
$ prr ui ~/Desktop/my-prompt
```

Web browser will be launched with the UI connected to your command that you will use to launch the runs.

#### For Google PaLM, you need to install the following dependencies:
You need to install [Google Cloud SDK](https://cloud.google.com/sdk/docs/install) and you need to have access to a Vertex AI with Generative AI enabled.
`prr` assumes you're logged in into your Google Cloud account and have access to the project you want to use.
Expand Down
28 changes: 14 additions & 14 deletions examples/configured/chihuahua.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
version: 1
prompt:
# more advanced prompt definition.
# you can use either one of the two options
# - content_file
# - messages
#
# using content_file will make prr read the content
# of that template and render it into simple text to use.
# content_file: '_long_prompt_about_chihuahua'
#
# using 'messages' key instead give you finer control
# over what messages are sent with what roles.
# this mimics https://platform.openai.com/docs/guides/chat
# structures currently
messages:
# more advanced prompt definition.
# you can use either one of the two options
# - content_file
# - messages
#
# using content_file will make prr read the content
# of that template and render it into simple text to use.
# content_file: '_long_prompt_about_chihuahua'
#
# using 'messages' key instead give you finer control
# over what messages are sent with what roles.
# this mimics https://platform.openai.com/docs/guides/chat
# structures currently
messages:
- role: 'system'
content: 'You, Henry, are a little Chihuahua dog. That is all you need to know.'
- role: 'assistant'
Expand Down
Loading