Commit graph

12 commits

Author SHA1 Message Date
Andrew Pennington
ec158c0cdf
Added automatic docker build on merge to master
This PR includes:
- Automatic build & push to docker hub when pushing to master, or when triggering a workflow dispatch on master
- Automatic docker build on pull requests to validate changes
- Updated the docker-compose.yaml to use the container images, rather than building locally
- Added support for defining backend settings using the container environment 
  -> All options defined in config.toml can now be loaded instead from the environment
  -> Order of precedence is environment definition, config.toml, and finally default inline configuration defined in config.ts
- Added support for defining frontend settings using the container environment
  -> Added a dynamic api route to load the container environment definitions on the server, and provide them to the client
  -> Added a library function to fetch from the newly created API, caching the response in the session storage
  -> Modified existing calls to `process.env` to use the new library function
  -> Left the initial statically compiled environment definitions in place as a backup definition, if no environment definitions are provided

Remaining tasks todo before able to merge to [ItzCrazyKns/Perplexica](https://github.com/ItzCrazyKns/Perplexica):
- Add secret definitions for `DOCKER_USERNAME` and `DOCKER_PASSWORD` to [ItzCrazyKns/Perplexica](https://github.com/ItzCrazyKns/Perplexica) to ensure push to dockerhub works on base branch
- Update documentation with information about changes
2024-08-21 00:40:34 +01:00
ItzCrazyKns
f02393dbe9
feat(providers): add anthropic 2024-07-15 21:20:16 +05:30
ItzCrazyKns
0993c5a760
feat(app): revert port & network changes 2024-05-13 19:58:17 +05:30
ItzCrazyKns
100872f2d9
feat(docker-compose): revert network changes 2024-05-12 14:04:05 +05:30
ItzCrazyKns
9816eb1d36
feat(server): add bind address 2024-05-12 12:15:25 +05:30
ItzCrazyKns
f618b713af
feat(chatModels): load model from localstorage 2024-05-02 12:14:26 +05:30
ItzCrazyKns
edc40d8fe6
feat(providers): add Groq provider 2024-05-01 19:43:06 +05:30
ItzCrazyKns
9b5548e9f8
feat(sample-settings): update Ollama URL placeholder 2024-04-28 19:52:31 +05:30
ItzCrazyKns
0ea2bec85d
feat(config): Remove preassigned values 2024-04-20 22:12:49 +05:30
ItzCrazyKns
95461154d0
feat(sample-config): change ULR to URL 2024-04-20 18:26:54 +05:30
ItzCrazyKns
d37a1a8020
feat(agents): support local LLMs 2024-04-20 11:18:52 +05:30
ItzCrazyKns
c6a5790d33
feat(config): Use toml instead of env 2024-04-20 09:32:19 +05:30