Commit graph

25 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
cbce39a5dd
feat(settings): fix undefined model for custom OpenAI 2024-07-25 20:34:49 +05:30
ItzCrazyKns
f02393dbe9
feat(providers): add anthropic 2024-07-15 21:20:16 +05:30
WanQuanXie
594106aea3 update(ui): remove useless imports 2024-06-07 16:39:14 +08:00
ItzCrazyKns
7c676479d4
feat(theme-switcher): move to settings menu 2024-06-02 12:19:53 +05:30
ItzCrazyKns
90f9edea95
feat(components): use arrow function 2024-05-30 21:38:37 +05:30
WanQuanXie
2d9ca3835e update(SettingDialog): restore SettingDialog form input and select field dark mode background color 2024-05-29 12:10:24 +08:00
WanQuanXie
c8a16a622e update(ui): remove light-300 color level 2024-05-28 10:55:52 +08:00
WanQuanXie
a5978d544c update(ui): re-manage theme config 2024-05-27 11:49:09 +08:00
WanQuanXie
776d389c1e refactor(SettingDialog): extract reduplicate code to common component
DO NOT REPEAT YOURSELF!
2024-05-24 21:58:14 +08:00
WanQuanXie
996cc1b674 feat: adaptive light mode 2024-05-24 21:18:10 +08:00
Chuck
ac4cba32c8 fix(SettingsDialog): baseURL storage key 2024-05-09 15:53:57 +08:00
WanQuanXie
01fc683d32 fix(SettingDialog): use value instead of selected props in <select>
avoid the browser console warning in devServer mode
2024-05-07 06:35:39 +08:00
ItzCrazyKns
4cb0aeeee3
feat(settings): conditionally pick selected models 2024-05-06 20:00:56 +05:30
ItzCrazyKns
f28257b480
feat(settings): fetch localStorage at state change 2024-05-06 12:34:59 +05:30
ItzCrazyKns
0440a810f5
feat(http-headers): add Content-Type 2024-05-04 15:01:53 +05:30
ItzCrazyKns
9f45ecb98d
feat(providers): separate embedding providers, add custom-openai provider 2024-05-04 10:51:06 +05:30
ItzCrazyKns
1d344266aa
feat(config): fix typo 2024-05-02 15:04:33 +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
3b66808e7d
feat(message-input): prevent message when loading 2024-04-24 10:06:56 +05:30
ItzCrazyKns
571cdc1b4e
feat(settings-dialog): remove excess padding 2024-04-23 17:54:08 +05:30
ItzCrazyKns
7f8c73782c
feat(settings-dialog): remove overflow 2024-04-23 17:53:47 +05:30
ItzCrazyKns
6fe70a70ff
feat(settings-dialog): enhance UI 2024-04-23 17:06:44 +05:30
ItzCrazyKns
b2b1d724ee
feat(ui): add settings page 2024-04-23 16:52:41 +05:30