Commit Graph

18 Commits

Author SHA1 Message Date
fundon
d8b3a0b6d5 fix: improve make it real action (#6830) 2024-05-09 08:15:34 +00:00
darkskygit
8194cb7773 chore: update prompts (#6782) 2024-05-06 12:42:12 +00:00
pengx17
4ea31cbb35 fix: update prompts (#6779)
fix AFF-1021
2024-05-06 10:58:56 +00:00
pengx17
1303a6a8b4 fix: update prompts (find actions) (#6773)
fix AFF-1019
2024-05-06 08:29:51 +00:00
pengx17
eb7904bf62 fix(core): prompt message tunning (#6747)
fix AFF-1003
2024-04-30 13:18:20 +08: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
darkskygit
ea3f427918 fix: large transaction (#6695) 2024-04-25 08:33:21 +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
pengx17
71a5be5385 fix(server): update prompts (#6664)
fix AFF-921
2024-04-22 14:09:53 +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
3d15e8353b feat: refresh prompts (#6568) 2024-04-16 10:26:54 +00:00
pengx17
9b620ecbc9 fix(core): use backend prompts (#6542) 2024-04-12 21:29:14 +08:00
darkskygit
fc51b68674 fix: pick copilot provider depend on model (#6540) 2024-04-12 12:01:39 +00:00
regischen
244e3fd71b fix: change action (#6519) 2024-04-12 05:17:10 +00:00
fundon
13b39fc5f3 feat(core): ai images (#6506) 2024-04-12 03:58:33 +00:00
darkskygit
9f349a2300 feat: text to image impl (#6437)
fix CLOUD-18
fix CLOUD-28
fix CLOUD-29
2024-04-10 12:13:39 +00:00
darkskygit
46a368d7f1 feat: add session impl (#6254) 2024-04-10 11:15:25 +00:00