Add env and entrypoint
This commit is contained in:
parent
a1a4bceb9a
commit
2a490edff5
10
.env
Normal file
10
.env
Normal file
@ -0,0 +1,10 @@
|
||||
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
2
.gitignore
vendored
@ -0,0 +1,2 @@
|
||||
*.pyc
|
||||
__pycache__/
|
||||
1
entrypoint.sh
Normal file
1
entrypoint.sh
Normal file
@ -0,0 +1 @@
|
||||
uvicorn src.main:app --host 0.0.0.0 --port 8000
|
||||
1
src/api/__init__.py
Normal file
1
src/api/__init__.py
Normal file
@ -0,0 +1 @@
|
||||
# This file is intentionally left blank.
|
||||
@ -1,7 +1,6 @@
|
||||
from fastapi import FastAPI
|
||||
import sys
|
||||
sys.path.append('..')
|
||||
from api.endpoints import router as api_router
|
||||
from .api.endpoints import router as api_router
|
||||
|
||||
app = FastAPI(
|
||||
title="AI Accident Information Collection API",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user