Commit Graph
95 Commits
Author SHA1 Message Date
liwenrui 070486a918 * add exception for the scenario where the second step function call fails. 2023-10-10 09:30:25 +08:00
liwenrui 497f40d55a * fix openai authentication headers. 2023-10-10 08:46:54 +08:00
liwenrui 10d97f4964 * tweak ernie function calling. 2023-10-09 08:39:39 +08:00
liwenrui bc6080c425 * adapt ai methods for baidu ernie. 2023-10-08 17:32:53 +08:00
liwenrui 57271632ec * add specialized function for getting JSON from LLMs without forced function calling feature. 2023-10-08 09:54:02 +08:00
Chenjianyu 6a01a498b0 * refactor, add a method to determine the AI model is configured or not. 2023-08-31 17:15:04 +08:00
Chenjianyu 078d3cfd60 * fix error messages display. 2023-08-30 15:16:21 +08:00
Chenjianyu e7ff8e3b64 * fix try to get related objects. 2023-08-28 14:00:46 +08:00
Chenjianyu 7aec4845ed * fix try to get related objects. 2023-08-28 13:58:25 +08:00
liwenrui 9bc768fbc3 * make assemblePrompt static. 2023-08-28 11:01:10 +08:00
liwenrui 1321b60f44 * skip nonexistent fields. 2023-08-28 10:58:32 +08:00
liwenrui 2953f80383 * make story drafts editable by prompt. 2023-08-28 10:32:17 +08:00
liwenrui 4fd8a589c2 * tweak prompt query and auditing message. 2023-08-28 10:17:52 +08:00
liwenrui 5827685993 * fix querying product in task table. 2023-08-24 15:38:09 +08:00
liwenrui e883a515ef * prevent closing admin app on audit start. 2023-08-23 13:16:54 +08:00
liwenrui 6a721f3930 * add json_last_error_msg polyfill. 2023-08-23 13:09:11 +08:00
Chenjianyu bb971479c1 * show all prompts for the user who has the prompt audit privilege. 2023-08-16 16:18:11 +08:00
Chenjianyu de59656b2a * allow making AI request through azure. 2023-08-15 14:03:15 +08:00
Chenjianyu 6fcfea5ec2 * fix comments. 2023-08-11 11:17:13 +08:00
liwenrui c0e64fa257 * fix unable to fetch properly. 2023-08-11 11:13:37 +08:00
Chenjianyu 6820b86821 * allow user to use system prompts. 2023-08-11 11:03:05 +08:00
liwenrui 5127523615 * fix possible wrong app state on prompt execute. 2023-08-11 10:48:13 +08:00
liwenrui 9370a5394d * return earlier. 2023-08-08 15:21:54 +08:00
liwenrui e5e202c25d * give up execution if required target form vars not set. 2023-08-08 15:01:07 +08:00
liwenrui 8f1bad532a * fix typo. 2023-08-08 13:52:28 +08:00
liwenrui 40452aaf29 * try get related object id when navigating to target form. 2023-08-08 13:44:40 +08:00
Chenjianyu efb17b2f05 * make an exception for waterfall model project. 2023-08-07 17:20:02 +08:00
liwenrui 5e7c566ba3 * refactor. 2023-08-07 10:34:30 +08:00
Chenjianyu 2865160895 * prompt audit go straight to the execution page. 2023-08-03 16:36:58 +08:00
liwenrui 7152c472ed * filter prompts according to form privs, task #98341. 2023-08-02 13:45:01 +08:00
liwenrui ffed8a893f * check for priv prior to executing and auditing prompts. 2023-08-02 10:41:54 +08:00
Chenjianyu d21234c457 * add role CRUD method. 2023-08-01 16:54:14 +08:00
Chenjianyu 22e5f8234f * add create role template and dynamic refresh the role template list. 2023-08-01 16:45:12 +08:00
Chenjianyu a9cf9b60a4 * add get role templates method. 2023-08-01 11:08:10 +08:00
liwenrui 628344b130 * use empty string instead of 0 in target form link vars. 2023-07-31 10:25:13 +08:00
Chenjianyu c729cba4a2 * fix try to get link vars. 2023-07-28 14:26:21 +08:00
Chenjianyu fc467e2ffb * fix try to get link arguments. 2023-07-27 16:52:27 +08:00
Chenjianyu 5329594cb8 * fix get project data for prompt. 2023-07-27 14:52:44 +08:00
liwenrui 17421db95e * convert module and method to lower case as well. 2023-07-27 13:52:31 +08:00
Chenjianyu a19d221e3f * map associative array to indexed array. 2023-07-27 13:50:50 +08:00
liwenrui fa125bc823 * convert schema keys to lower, partly fix bug #36866. 2023-07-27 10:14:11 +08:00
liwenrui 1e2ac0f70f * try get doc from libs of mine as well, bug #36805. 2023-07-27 10:04:26 +08:00
Chenjianyu 6d3bdc5aac * map associative array to indexed array, bug #36886. 2023-07-26 17:25:01 +08:00
Chenjianyu 889625965c * add log for ai request. 2023-07-26 16:41:55 +08:00
liwenrui dd13691ffb * tweak target form related stuff. 2023-07-25 16:08:20 +08:00
liwenrui 5cfcb2267d * make errors verboser. 2023-07-25 15:38:45 +08:00
liwenrui de55de302e * fix schema getting. 2023-07-25 14:54:03 +08:00
liwenrui 91a9944cc1 + prompt delete. 2023-07-25 14:31:17 +08:00
liwenrui 6906adfb6a * fix unable to generate url. 2023-07-25 13:44:04 +08:00
liwenrui a5169afd1e + link vars assembling. 2023-07-25 11:32:56 +08:00