Update environment configuration and enhance API endpoints

- Changed ANALYSIS_SERVICE_URL to localhost for local development.
- Updated ANALYSIS_AUTH_TOKEN and APP_ID for improved security.
- Added new functions in endpoints.py for form extraction and stage code normalization.
- Enhanced chat handling to support form updates and improved event streaming.
- Updated models to include new fields for form update handling.
This commit is contained in:
Xin Wang
2026-06-17 11:36:42 +08:00
parent 1ea1d86d5a
commit ffd3bf0385
4 changed files with 159 additions and 95 deletions

View File

@@ -3,27 +3,28 @@
GET http://127.0.0.1:8080
HTTP/1.1 200 - OK
connection: close
date: Wed, 17 Jun 2026 00:37:02 GMT
server: uvicorn
content-length: 32
content-type: application/json
date: Thu, 08 Jan 2026 08:58:09 GMT
server: uvicorn
connection: close
###
POST http://127.0.0.1:8080/chat
content-type: application/json
{
"sessionId": "a1002",
"sessionId": "a1100",
"timeStamp": "202503310303",
"text": "【拍摄完成】"
"text": "继续",
"needFormTags": true
}
HTTP/1.1 200 - OK
connection: close
content-length: 205
content-type: application/json
date: Thu, 08 Jan 2026 08:59:37 GMT
date: Wed, 17 Jun 2026 00:37:26 GMT
server: uvicorn
content-length: 274
content-type: application/json
connection: close
###
POST http://127.0.0.1:8080/get_info
content-type: application/json
@@ -35,11 +36,11 @@ content-type: application/json
}
HTTP/1.1 200 - OK
connection: close
content-length: 97
content-type: application/json
date: Thu, 08 Jan 2026 09:27:05 GMT
date: Wed, 17 Jun 2026 00:27:12 GMT
server: uvicorn
content-length: 108
content-type: application/json
connection: close
###
POST http://127.0.0.1:8080/set_info
content-type: application/json