@@ -30,7 +30,7 @@ def create_agent():
3030 api_key = " your-api-key"
3131 )
3232
33- AgentServiceApp().run(create_agent, port = 8000 )
33+ AgentServiceApp().run(create_agent, port = 9000 )
3434```
3535
3636## Configuration
@@ -99,7 +99,7 @@ def create_agent():
9999
100100app = AgentServiceApp()
101101app.use(auth_middleware)
102- app.run(create_agent, port = 8000 )
102+ app.run(create_agent, port = 9000 )
103103```
104104
105105### User ID Extraction
@@ -278,7 +278,7 @@ app.use(auth_middleware)
278278if __name__ == " __main__" :
279279 app.run(
280280 create_agent,
281- port = int (os.getenv(" PORT" , " 8000 " )),
281+ port = int (os.getenv(" PORT" , " 9000 " )),
282282 host = " 0.0.0.0"
283283 )
284284```
@@ -307,14 +307,14 @@ RUN pip install -r requirements.txt
307307
308308COPY . .
309309
310- ENV PORT=8000
310+ ENV PORT=9000
311311
312312CMD ["python" , "app.py" ]
313313```
314314
315315``` bash
316316docker build -t coze-agent .
317- docker run -p 8000:8000 \
317+ docker run -p 9000:9000 \
318318 -e COZE_BOT_ID=your-bot-id \
319319 -e COZE_API_KEY=your-api-key \
320320 -e JWT_SECRET_KEY=your-secret \
@@ -331,7 +331,7 @@ docker run -p 8000:8000 \
331331 " name " : " coze-agent" ,
332332 " path " : " ./" ,
333333 " runtime " : " Python3.9" ,
334- " port " : 8000 ,
334+ " port " : 9000 ,
335335 " env " : {
336336 " COZE_BOT_ID " : " ${COZE_BOT_ID}" ,
337337 " COZE_API_KEY " : " ${COZE_API_KEY}" ,
0 commit comments