Compare commits

..

No commits in common. "a09a035f0ed8c286bd58bfe1423eacad3618d93b" and "a1a4bceb9acba4361d80f1fe788ef87565d44523" have entirely different histories.

7 changed files with 2 additions and 65 deletions

10
.env
View File

@ -1,10 +0,0 @@
DATABASE_URL=sqlite:///./test.db
SECRET_KEY=your_secret_key
DEBUG=True
ANALYSIS_SERVICE_URL=http://101.89.151.141:3000/api/v1/chat/completions
ANALYSIS_AUTH_TOKEN=fastgpt-hSPnXMoBNGVAEpTLkQT3YfAnN26gQSyvLd4ABL1MRDoh68nL4RDlopFHXqmH8
APP_ID=683ea1bc86197e19f71fc1ae
DELETE_SESSION_URL=http://101.89.151.141:3000/api/core/chat/delHistory?chatId={chatId}&appId={appId}
DELETE_CHAT_URL=http://101.89.151.141:3000/api/core/chat/item/delete?contentId={contentId}&chatId={chatId}&appId={appId}
GET_CHAT_RECORDS_URL=http://101.89.151.141:3000/api/core/chat/getPaginationRecords

2
.gitignore vendored
View File

@ -1,2 +0,0 @@
*.pyc
__pycache__/

View File

@ -1 +0,0 @@
uvicorn src.main:app --host 0.0.0.0 --port 8000

View File

@ -1 +0,0 @@
# This file is intentionally left blank.

View File

@ -1,6 +1,7 @@
from fastapi import FastAPI
import sys
from .api.endpoints import router as api_router
sys.path.append('..')
from api.endpoints import router as api_router
app = FastAPI(
title="AI Accident Information Collection API",

View File

@ -1,24 +0,0 @@
GET http://127.0.0.1:8000
HTTP/1.1 200 - OK
date: Fri, 20 Jun 2025 03:07:21 GMT
server: uvicorn
content-length: 32
content-type: application/json
connection: close
###
POST http://127.0.0.1:8000/chat
content-type: application/json
{
"sessionId": "a0012",
"timeStamp": "202503310303",
"text": "可以,继续"
}
HTTP/1.1 200 - OK
date: Fri, 20 Jun 2025 03:07:33 GMT
server: uvicorn
content-length: 220
content-type: application/json
connection: close

View File

@ -1,26 +0,0 @@
GET http://101.89.151.141:3000
###
POST http://101.89.151.141:3000/api/v1/chat/completions
content-type: application/json
Authorization: Bearer fastgpt-xCH4CaEoNEyVtq7fkBEI5UP3O6sABKdpGszTtSYk4R2TVW5VgrPp1YPfuLX1iH
{
"chatId": "a0002",
"stream": false,
"detail": false,
"messages": [
{
"content": "继续",
"role": "user"
}
]
}
HTTP/1.1 200 - OK
vary: Origin, Accept-Encoding
content-type: application/json; charset=utf-8
etag: "s14v22uu1g5f"
content-length: 219
date: Fri, 20 Jun 2025 02:37:16 GMT
connection: close