forehalo
a14194c482
fix(server): blob controller permission ( #6746 )
2024-04-30 03:47:00 +00:00
pengx17
7c5a259e84
fix(core): update prompts ( #6738 )
...
Update prompts:
When sending a message to openai, we actually send two messages.
There are two issues here:
1. the role in the first message shall be user or system
2. the content in the first message is not being interpolated at all.
```
[
{
role: "assistant",
createdAt: "2024-04-27T06:30:34.820Z",
params: {
language: "French",
},
content: "You are a translation expert, please translate the following content into French, and only perform the translation action, keeping the translated content in the same format as the original content:\n\n \"\"\"\"\n\n \n\n \"\"\"\"",
},
{
role: "user",
content: "Basic things you should know:",
attachments: undefined,
params: {
language: "French",
},
createdAt: "2024-04-29T09:42:11.466Z",
},
]
```
In this PR I removed `content` from prompts and let open ai use the second message (user) as the input.
2024-04-29 11:02:16 +00:00
Brooooooklyn
81729703d9
chore(server): use native file-type implementation ( #6686 )
2024-04-29 04:46:26 +00:00
Brooooooklyn
fed2503782
refactor(server): rename @affine/storage to @affine/server-native ( #6682 )
...
- Close https://github.com/toeverything/AFFiNE/issues/6680
2024-04-29 02:14:20 +00:00
darkskygit
b639e52dca
feat: allow custom seed ( #6709 )
2024-04-26 11:40:07 +00:00
darkskygit
850bbee629
test: copilot unit & e2e test ( #6649 )
...
fix CLOUD-31
2024-04-26 09:43:35 +00:00
darkskygit
8bdd940ac8
fix: some event missing with multiple env webhook ( #6705 )
2024-04-26 02:56:09 +00:00
darkskygit
15c1e46680
chore: use default throttler replace strict throttler ( #6698 )
2024-04-26 02:18:20 +00:00
forehalo
2c228a35f8
fix(server): stripe webhook calls in random order ( #6702 )
2024-04-25 12:22:07 +00:00
darkskygit
a0c219e036
feat: use default params if not provided ( #6701 )
2024-04-25 10:59:46 +00:00
forehalo
3297486e31
fix(server): skip throttle for currentUser ( #6700 )
2024-04-25 09:45:31 +00:00
darkskygit
ea3f427918
fix: large transaction ( #6695 )
2024-04-25 08:33:21 +00:00
renovate
6af849e875
chore: bump up supertest version to v7 ( #6690 )
...
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg )](https://renovatebot.com )
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [supertest](https://togithub.com/ladjs/supertest ) | [`^6.3.4` -> `^7.0.0`](https://renovatebot.com/diffs/npm/supertest/6.3.4/7.0.0 ) | [![age](https://developer.mend.io/api/mc/badges/age/npm/supertest/7.0.0?slim=true )](https://docs.renovatebot.com/merge-confidence/ ) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/supertest/7.0.0?slim=true )](https://docs.renovatebot.com/merge-confidence/ ) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/supertest/6.3.4/7.0.0?slim=true )](https://docs.renovatebot.com/merge-confidence/ ) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/supertest/6.3.4/7.0.0?slim=true )](https://docs.renovatebot.com/merge-confidence/ ) |
---
### Release Notes
<details>
<summary>ladjs/supertest (supertest)</summary>
### [`v7.0.0`](https://togithub.com/ladjs/supertest/releases/tag/v7.0.0 )
[Compare Source](https://togithub.com/ladjs/supertest/compare/v6.3.4...v7.0.0 )
- Merge pull request [#​834](https://togithub.com/ladjs/supertest/issues/834 ) from Bruception/master [`225118c`](https://togithub.com/ladjs/supertest/commit/225118c )
- Fix TestAgent not inheriting Agent properties [`f290431`](https://togithub.com/ladjs/supertest/commit/f290431 )
- fix: bump deps, drop Node.js v<14.16.0 [`1e18c20`](https://togithub.com/ladjs/supertest/commit/1e18c20 )
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/ ). View repository job log [here](https://developer.mend.io/github/toeverything/AFFiNE ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMTMuMSIsInVwZGF0ZWRJblZlciI6IjM3LjMxMy4xIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5IiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyJdfQ==-->
2024-04-25 07:32:48 +00:00
pengx17
050efe3749
fix(core): update prompts ( #6693 )
...
update based on latest docs
2024-04-25 05:26:50 +00:00
doouding
6525c99631
feat(server): new prompt for expand mind map ( #6678 )
...
feat(server): new prompt for expand mind map
feat: add migration file
2024-04-24 07:10:11 +00:00
darkskygit
cbe9e10d44
chore: add copilot vision dev mode polyfill ( #6671 )
2024-04-23 07:41:02 +00:00
darkskygit
64ad83f889
feat: handle stream error ( #6653 )
2024-04-23 03:46:46 +00:00
darkskygit
01a0f60d03
fix: history attachment query ( #6670 )
2024-04-23 03:34:59 +00:00
pengx17
71a5be5385
fix(server): update prompts ( #6664 )
...
fix AFF-921
2024-04-22 14:09:53 +00:00
forehalo
94de6f5853
fix(server): always return created timestamp of chat messages ( #6658 )
2024-04-22 08:39:42 +00:00
forehalo
e8bcb75602
fix(server): use post request to consume magic link token ( #6656 )
2024-04-22 07:15:26 +00:00
darkskygit
ae679a937f
fix: copilot storage config ( #6650 )
2024-04-22 03:00:18 +00:00
forehalo
098e717688
chore(server): remove useless free subscription enum ( #6634 )
2024-04-19 13:34:59 +00:00
darkskygit
657a5250ad
feat: update chat prompt ( #6639 )
...
fix AFF-878
fix AFF-852 (maybe)
2024-04-19 12:34:02 +00:00
darkskygit
97669acb40
chore: enable ai feature in dev ( #6618 )
2024-04-19 08:12:53 +00:00
EYHN
5e243de392
feat(server): auto refresh session ( #6613 )
2024-04-19 07:00:12 +00:00
fundon
7772a103fa
fix(server): dev user configuration issue ( #6619 )
2024-04-19 03:40:04 +00:00
darkskygit
3cc3af8d5d
feat: remove message query ( #6622 )
...
related #6620
2024-04-18 16:30:10 +00:00
darkskygit
28f2ff24b9
fix: copilot blob process ( #6612 )
2024-04-18 15:36:30 +00:00
EYHN
08cd940e6b
fix(server): fix unstable test ( #6621 )
2024-04-18 14:53:24 +00:00
darkskygit
b3b9e9a056
chore: cleanup outdated api ( #6604 )
2024-04-18 14:42:46 +00:00
soumyasen10
19f8407d7f
fix: disable default save page as ( #6548 )
...
Co-authored-by: Peng Xiao <pengxiao@outlook.com>
2024-04-18 16:19:03 +08:00
forehalo
d9e6561762
feat(server): add created timestamp to history ( #6607 )
2024-04-18 07:06:47 +00:00
pengx17
5fc56a20ac
feat: adopt createMessage upload api ( #6596 )
2024-04-18 06:55:29 +00:00
DarkSky
ccb3bed91e
feat: add blob upload support for copilot ( #6584 )
2024-04-17 14:05:38 +00:00
liuyi
07aeab6ac8
fix(server): app cannot start in graphql only flavor ( #6598 )
2024-04-17 18:29:04 +08:00
DarkSky
ec186a65e7
fix(server): avoid store unpaid subscriptions ( #6593 )
2024-04-17 16:43:17 +08:00
liuyi
e53d5e2e3d
chore(server): clean up throttler ( #6326 )
2024-04-17 16:32:26 +08:00
forehalo
651a99a48e
fix(server): avoid store unpaid subscriptions
2024-04-17 16:25:03 +08:00
liuyi
5b315bfc81
fix(server): only returns active subscriptions ( #6590 )
2024-04-17 16:19:34 +08:00
EYHN
06fda3b62c
feat(infra): framework
2024-04-17 15:09:09 +08:00
darkskygit
83d8587a45
fix: missing feature upsert ( #6585 )
2024-04-17 02:01:01 +00:00
forehalo
e1c292b8b5
feat(server): support registering ai early access users ( #6565 )
2024-04-16 13:54:08 +00:00
darkskygit
677c4711df
feat: unsplash api proxy ( #6572 )
2024-04-16 13:33:07 +00:00
darkskygit
3d15e8353b
feat: refresh prompts ( #6568 )
2024-04-16 10:26:54 +00:00
darkskygit
1b0864eb60
feat: check quota correctly ( #6561 )
2024-04-16 09:41:48 +00:00
darkskygit
1a3d1a5421
fix: upgrade plan correctly ( #6543 )
2024-04-15 06:20:24 +00:00
pengx17
9b620ecbc9
fix(core): use backend prompts ( #6542 )
2024-04-12 21:29:14 +08:00
darkskygit
2336638996
fix: cannot query chat history ( #6539 )
2024-04-12 12:16:43 +00:00
darkskygit
fc51b68674
fix: pick copilot provider depend on model ( #6540 )
2024-04-12 12:01:39 +00:00