40e86fbdaf
fix: too many connect error ( #71 )
...
* add fetch all struct
* add other database implement
* rename method name
* adjust the order of functions
* eslint
* eslint
* eslint
* eslint
* eslint
* fix error end when fetch schema batch
2023-05-04 23:36:48 +08:00
498bf156c0
chore: update on Spanish locale file ( #73 )
...
* 🎨 style(es.json): add new keys and values for connection and assistant
🚀 chore(es.json): add new banner messages
The connection object now has new keys and values for the database type, title, host, port, database name, username, and password. The assistant object now has a new key and value for creating a new bot. The banner object now has two new messages, one for warning non-select SQL statements and another for promoting the product launch on Product Hunt.
* 🎨 style(es.json): fix typo in banner.product-hunt message
The message in banner.product-hunt contained a typo. The word "de" was removed to make the message grammatically correct.
* 🌟 feat(es.json): add new translations for edit and execute
🐛 fix(es.json): update conversation title translation
🐛 fix(es.json): add new translations for OpenAI quota overflow
The new translations for "edit" and "execute" have been added to the language file. The translation for "conversation-title" has been updated to "title" for consistency with the application. The translations for "quota-overflow" and "use-my-key" have been added to handle OpenAI quota overflow.
2023-05-03 19:22:10 +08:00
eb4cda6081
chore: reinit schema
2023-05-02 19:46:35 +08:00
5c2410cfba
fix: add model seed data
2023-05-02 17:51:04 +08:00
6ce7d9862c
chore: change USAGE_DATABASE_URL to DATABASE_URL
2023-05-02 17:47:57 +08:00
0306b10902
chore: add enduser column to record enduser info
...
Also pass the enduser info to OpenAI for abuse detection.
2023-05-02 16:51:19 +08:00
5259222b92
chore: add model info to the chat table
2023-05-02 16:22:41 +08:00
69fd60ce76
feat: refactor to consolidate usage collection
...
Also only record the current system prompt instead of recording all previous exchange.
2023-05-02 14:48:54 +08:00
2479521e8d
chore: default upvote should be false
2023-05-02 12:28:30 +08:00
00963f4bf7
fix: should only add message with DONE status
2023-05-02 12:14:45 +08:00
f3476d8d91
chore: fix error message and readable message for openai key missing
2023-05-02 01:46:06 +08:00
bf37d766bc
chore: add env var to ProcessEnv
2023-05-01 14:35:25 +08:00
fa0cbfa381
feat: Use separate /setting route page instead of modal
...
Better extensibility as we may overlay additional modal in setting
2023-04-30 23:45:05 +08:00
620ebdeb0d
chore: minor tweak
2023-04-30 14:08:12 +08:00
ea7a48a26b
chore: use prettier for project and apply to all files
2023-04-29 22:49:07 +08:00
74754e1476
refactor: move connection list into component
2023-04-28 17:20:56 +08:00
d8f1e99192
refactor: move conversation list into component
2023-04-28 17:14:47 +08:00
435e0bffeb
chore: add quota banner and wording update
2023-04-27 16:41:47 +08:00
96724709bd
chore: prevent typescript errors when building docker file
2023-04-26 23:30:51 +08:00
4f02a6f9ad
chore: use explicit prisma-build
...
This is only used for building on vercel. Since there is no prerun hook to execute migration so we have to do the migration on build time.
2023-04-25 22:15:02 +08:00
5427a7f4d1
chore: update favicon with the right scale
2023-04-25 21:13:16 +08:00
1e9b6d6ebc
chore: swap discord and product hunt banner
2023-04-25 17:49:10 +08:00
4fb4786ece
chore: remove producthunt banner
2023-04-25 17:36:49 +08:00
a0972981e2
chore: remove quota overflow banner
2023-04-25 17:35:45 +08:00
49b15d3509
feat: add clear conversation buttion
2023-04-25 15:12:36 +08:00
1562a61e5e
chore: update api key name
2023-04-25 11:43:32 +08:00
7233a50dff
feat: add auth api key header
2023-04-25 11:26:08 +08:00
daac415d35
chore: update dockerfile
2023-04-24 23:57:15 +08:00
0471e40684
feat: optimize fetch database schema ( #65 )
2023-04-24 23:11:32 +08:00
3264797661
chore: add quota banner back, limiting again
2023-04-24 22:21:29 +08:00
455813525a
chore: remove Quota banner
2023-04-24 20:05:41 +08:00
f959cffbbd
chore: hide quota overflow banner
2023-04-24 19:30:24 +08:00
f0965e6b73
chore: update create usage data
2023-04-24 18:57:50 +08:00
75b0000556
chore: update usage message
2023-04-24 18:29:30 +08:00
e1847be56d
feat: add usage api call
2023-04-24 18:24:55 +08:00
00e3040670
chore: update usage database schema
2023-04-24 18:07:13 +08:00
a82308bd8b
feat: make select component scrollable ( #58 )
...
* implmemnt scroll select #56
* limit the max height
* mix two solutio to implment final effect
2023-04-24 14:50:54 +08:00
c74302a4a6
chore: add vercel-build script for CI/CD ( #63 )
...
* chore: update readme
* chore: change to USAGE_DATABASE_URL
* chore: add vercel-build
2023-04-24 01:48:26 +08:00
4a49b9d9c8
chore: change to USAGE_DATABASE_URL ( #62 )
...
* chore: update readme
* chore: change to USAGE_DATABASE_URL
2023-04-24 01:40:20 +08:00
5eb865daac
chore: update readme ( #61 )
2023-04-24 01:37:58 +08:00
aabb9a0ce5
feat: add prisma stub and init schema
2023-04-24 00:48:45 +08:00
f8f089238a
chore: update table list check
2023-04-23 14:50:03 +08:00
06d32e7620
feat: cache database schema ( #54 )
...
* feat: cache database schema #53
* change the pos of cache table list
* eslint
* read database schema from connection state database
* delete dev log
* revert unnecessary chagne
* revert unnecessary chagne
* Update src/store/connection.ts
Co-authored-by: boojack <stevenlgtm@gmail.com>
---------
Co-authored-by: boojack <stevenlgtm@gmail.com>
2023-04-23 14:40:35 +08:00
93388acd23
chore: change the init value of table list in useConnectionStore ( #55 )
2023-04-23 13:47:15 +08:00
2d94bf1079
chore: add quota overflow banner
2023-04-23 11:11:58 +08:00
20389c5b29
chore: update wechat qr code
2023-04-22 17:22:50 +08:00
28188d141c
chore: readme on IP whitelisting
2023-04-21 14:18:48 +08:00
17374763f6
fix: current coversation not respond ( #50 )
...
* fix the change assistant didn't take effect immediately #45
* Update src/store/conversation.ts
Co-authored-by: boojack <stevenlgtm@gmail.com>
* change method name
* change method name
* fix the call method
* add current
* merge
---------
Co-authored-by: boojack <stevenlgtm@gmail.com>
2023-04-21 14:00:18 +08:00
68332f6afe
chore: remove -d in README docker
2023-04-21 02:42:27 +08:00
ec1f7129c5
chore: improve readme
2023-04-21 02:41:28 +08:00