Commit graph

3873 commits

Author SHA1 Message Date
Max
c8643bbe45 Refactor HookCreate and assistant management in Neo API to improve response handling and streamline assistant creation. Update HookCreate to return structured CreateResponse with AssistantID and ChatID, enhancing error handling. Modify Load function to create the default assistant after querying the assistant list, ensuring proper initialization. Refactor newAssistant methods for better clarity and maintainability, and update types to include CreateResponse struct for improved response management. 2024-12-14 14:53:01 +08:00
Max
6c244d8788 Refactor Neo API to enhance CORS handling and streamline endpoint registration. Introduce OPTIONS handlers for all endpoints, improve CORS middleware logic, and reorganize assistant creation flow in load.go. Additionally, add a delay in the Answer method to ensure proper retrieval of assistant and chat IDs. 2024-12-14 13:03:05 +08:00
Max
79ee5b75f9 Refactor error handling in Neo API to streamline message creation. Replace map-based error responses with a more concise error method in the message struct, enhancing readability and maintainability. Update related functions to ensure consistent error messaging across chat handling and response writing. 2024-12-13 19:49:54 +08:00
Max
2ebc29d6f7 Enhance Neo API and conversation management by adding support for server-sent events (SSE) in chat handling, improving error messaging with structured responses, and refactoring assistant creation logic. Update conversation settings to utilize a new assistant model and implement context management improvements for better performance. Additionally, streamline the DSL structure and enhance test coverage for chat functionalities. 2024-12-13 17:51:13 +08:00
Max
1c078a5d2e Refactor Neo DSL tests and API structure by removing unused handlers, enhancing conversation management, and implementing new test cases for prompts, chat messages, and history saving. Introduce custom response recorder for improved testing and mock AI for simulating responses. 2024-12-13 11:17:00 +08:00
Max
d69247cdbe
Merge pull request #810 from trheyi/main
Update dependencies
2024-12-13 01:13:00 +08:00
Max
cd01149db1 Update dependencies in go.mod and go.sum; upgrade golang.org/x/crypto to v0.31.0, golang.org/x/text to v0.21.0, golang.org/x/sync to v0.10.0, and golang.org/x/sys to v0.28.0. Modify process initialization in cmd/run.go to use context for improved execution management. 2024-12-13 01:02:22 +08:00
Max
de7f5fc9b1 Enhance NewContext function to include ChatID parameter for improved context management 2024-12-12 20:21:02 +08:00
Max
153efc1a49 Refactor command handling and conversation management by removing the command package, updating conversation methods to support chat IDs, and enhancing API functionality for chat history and titles. This includes adjustments to the DSL context and conversation settings for improved data handling. 2024-12-12 16:37:59 +08:00
Max
b698846a35
Merge pull request #809 from trheyi/main
Remove outdated issue templates and update contact links in config.yml
2024-12-09 09:40:58 +08:00
Max
319faff110 Remove outdated issue templates and update contact links in config.yml 2024-12-09 09:40:30 +08:00
Max
149f161a33
Merge pull request #808 from trheyi/main
Update README.md
2024-12-04 18:23:58 +08:00
Max
001d23756f Improve README.md to clarify app creation methods and emphasize programming capabilities 2024-12-04 18:21:47 +08:00
Max
f05c1d3bf8 Revise README.md to enhance clarity and provide a concise overview of Yao's features and capabilities 2024-12-04 18:17:20 +08:00
Max
403d5ad0ba
Merge pull request #807 from trheyi/main
Fix code signing command and update .gitignore to exclude shell scripts
2024-12-04 11:39:22 +08:00
Max
401fd3aa94 Fix code signing command and update .gitignore to exclude shell scripts 2024-12-04 11:38:52 +08:00
Max
46f4d55dc2
Merge pull request #806 from trheyi/main
Update Go version in macOS build workflow to 1.23.4
2024-12-04 09:47:58 +08:00
Max
7ddacd70f9 Update Go version in macOS build workflow to 1.23.4 2024-12-04 09:47:30 +08:00
Max
7f33a540a8
Merge pull request #805 from trheyi/main
Update macOS build workflow
2024-12-03 19:02:50 +08:00
Max
8bd097274c Update macOS build workflow 2024-12-03 19:02:21 +08:00
Max
2de63cb0f9
Merge pull request #804 from trheyi/main
Enhance macOS build workflow with code signing verification and submi…
2024-12-03 18:56:59 +08:00
Max
03d98d9a5a Enhance macOS build workflow with code signing verification and submission to Apple Notary Service 2024-12-03 18:55:59 +08:00
Max
fb2be5db47
Merge pull request #803 from trheyi/main
Translate error messages in login process to English for improved cla…
2024-12-03 17:02:28 +08:00
Max
a420e71118 Translate error messages in login process to English for improved clarity 2024-12-03 16:55:33 +08:00
Max
0bcb56a654
Merge pull request #802 from trheyi/main
Improve error message for missing app.yao file for better clarity
2024-12-03 16:42:12 +08:00
Max
68a97a48e6 Update URL handling in request data to use mapped URL 2024-12-03 16:21:52 +08:00
Max
d4f5a434a8 Improve error message for missing app.yao file for better clarity 2024-12-03 16:10:59 +08:00
Max
a0885c9268
Merge pull request #801 from trheyi/main
Translate captcha and password validation error messages to English f…
2024-12-02 19:16:14 +08:00
Max
e1af3a8a27 Translate captcha and password validation error messages to English for improved clarity 2024-12-02 19:15:44 +08:00
Max
d6f134f084
Merge pull request #800 from trheyi/main
Add option to disable Gzip compression for static files and update he…
2024-11-30 18:24:47 +08:00
Max
2c5b323d7d Add option to disable Gzip compression for static files and update headers 2024-11-30 18:23:21 +08:00
Max
2f88e5c58c
Merge pull request #799 from trheyi/main
Fix endpoint URL formatting to handle default port correctly
2024-11-29 20:51:03 +08:00
Max
1d414bceb8 Fix endpoint URL formatting to handle default port correctly 2024-11-29 20:50:24 +08:00
Max
90b8760a9b
Merge pull request #798 from trheyi/main
Refactor network handling and endpoint retrieval; deprecate unused co…
2024-11-29 20:44:16 +08:00
Max
6b6edab97c Refactor network handling and endpoint retrieval; deprecate unused commands in startup 2024-11-29 20:43:29 +08:00
Max
ce5de70b76
Merge pull request #797 from trheyi/main
Add community link to welcome message and adjust documentation spacing
2024-11-29 19:48:10 +08:00
Max
8388b78a0e Update community link text in welcome message for clarity 2024-11-29 19:47:12 +08:00
Max
d9475988ff Add community link to welcome message and adjust documentation spacing 2024-11-29 19:45:42 +08:00
Max
675a0c40d3
Merge pull request #796 from trheyi/main
Enhance yao start output
2024-11-29 18:44:41 +08:00
Max
c6cdf1115a Enhance startup output by adding runtime, data, and listening information; update frontend and dashboard labels to website and admin 2024-11-29 17:58:29 +08:00
Max
95dc351fa0 Deprecate Yao Studio functionality and comment out related code 2024-11-29 17:43:38 +08:00
Max
d7693a0487 Refactor startup logic to improve directory checks and enhance welcome message display 2024-11-29 17:36:45 +08:00
Max
79f77618d3 Remove setup package and related functionality from the project 2024-11-29 16:44:31 +08:00
Max
656bc167f0
Merge pull request #795 from trheyi/main
Enable Docker Content Trust for all build jobs in workflow files
2024-11-29 15:27:37 +08:00
Max
83fc43cc52 Enable Docker Content Trust for all build jobs in workflow files 2024-11-29 15:27:03 +08:00
Max
6accd97dba
Merge pull request #794 from trheyi/main
Enable Docker Content Trust in build workflows
2024-11-29 15:09:50 +08:00
Max
c78e169fbc Enable Docker Content Trust in build workflows 2024-11-29 15:09:16 +08:00
Max
df44124ffb
Merge pull request #793 from trheyi/main
Update Dockerfiles to use Ubuntu 24.04 and change download source for…
2024-11-29 14:39:41 +08:00
Max
5bf6044cf0 Update Dockerfiles to use Ubuntu 24.04 and change download source for Yao binary 2024-11-29 14:38:41 +08:00
Max
b0b70a8e1b
Merge pull request #792 from trheyi/main
Update build-linux.yml and Dockerfile for environment improvements an…
2024-11-29 13:37:33 +08:00