Skip to content

Commit

Permalink
Merge pull request #23 from wandb/fix/weave-logging
Browse files Browse the repository at this point in the history
Fix ollama, better logging, improved README
  • Loading branch information
vanpelt authored Apr 3, 2024
2 parents 70b14b4 + 8dd8dcc commit 42eaba2
Show file tree
Hide file tree
Showing 33 changed files with 409 additions and 380 deletions.
3 changes: 3 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@
}
},

// Install Ollama in the prebuild step
"onCreateCommand": "curl -fsSL https://ollama.com/install.sh | sh",
"postCreateCommand": "bash ./.devcontainer/postCreateCommand.sh",
"postStartCommand": "nohup bash -c 'ollama serve &'",

"secrets": {
"OPENAI_API_KEY": {
Expand Down
6 changes: 3 additions & 3 deletions .devcontainer/postCreateCommand.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
mkdir -p $HOME/.cache
sudo chown -R $USER $HOME/.cache

# Ollama time
curl -fsSL https://ollama.com/install.sh | sh

# Install node packages
cd /workspaces/openui/frontend
pnpm install
Expand All @@ -15,6 +12,9 @@ pnpm install
cd /workspaces/openui/backend
pip install -e .[test]

# Pull a model for ollama, using llava for now as it's multi-modal
ollama pull llava

# addressing warning...
git config --unset-all core.hooksPath
pre-commit install --allow-missing-config
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ npm run dev

This should open another service on port 5173, that's the service you'll want to visit. All changes to both the frontend and backend will automatically be reloaded and reflected in your browser.

### Ollama

The codespace should have ollama running and automatically downloads the `llava` model. You can select this model from the settings gear icon in the upper left corner of the application. Any models you pull i.e. `ollama pull llama` will show up in the settings modal.

### Resources

See the readmes in the [frontend](./frontend/README.md) and [backend](./backend/README.md) directories.

Large diffs are not rendered by default.

73 changes: 0 additions & 73 deletions backend/openui/dist/assets/CodeEditor-68n03aha.js

This file was deleted.

74 changes: 74 additions & 0 deletions backend/openui/dist/assets/CodeEditor-CD55KwgY.js

Large diffs are not rendered by default.

13 changes: 0 additions & 13 deletions backend/openui/dist/assets/SyntaxHighlighter-qlnMxUBv.js

This file was deleted.

13 changes: 13 additions & 0 deletions backend/openui/dist/assets/SyntaxHighlighter-zfn4dlGl.js

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions backend/openui/dist/assets/babel-EJU0dXwZ.js

Large diffs are not rendered by default.

16 changes: 0 additions & 16 deletions backend/openui/dist/assets/babel-nhLfYeWA.js

This file was deleted.

20 changes: 20 additions & 0 deletions backend/openui/dist/assets/html-D7SVdXI-.js

Large diffs are not rendered by default.

20 changes: 0 additions & 20 deletions backend/openui/dist/assets/html-i1xo8y4u.js

This file was deleted.

7 changes: 0 additions & 7 deletions backend/openui/dist/assets/index-2-rOUq-J.js

This file was deleted.

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions backend/openui/dist/assets/index-AkjPv2zL.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions backend/openui/dist/assets/index-BsqTatlD.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions backend/openui/dist/assets/index-DrMS6Spr.css

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion backend/openui/dist/assets/index-OfmkY5JK.css

This file was deleted.

11 changes: 0 additions & 11 deletions backend/openui/dist/assets/index-VsdO9OoH.js

This file was deleted.

Loading

0 comments on commit 42eaba2

Please sign in to comment.