qwen_agent/CLAUDE.md
2025-12-12 18:41:52 +08:00

29 lines
767 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# python环境
本项目的python环境是基于 poetry创建的如果需要运行 py文件需要执行poetry run python xxx.py 来执行。
启动脚本:
```
poetry run uvicorn fastapi_app:app --host 0.0.0.0 --port 8001
```
测试脚本:
```
curl --request POST \
--url http://localhost:8001/api/v2/chat/completions \
--header 'authorization: Bearer a21c99620a8ef61d69563afe05ccce89' \
--header 'content-type: application/json' \
--header 'x-trace-id: 123123123' \
--data '{
"messages": [
{
"role": "user",
"content": "咖啡多少钱一杯"
}
],
"stream": true,
"model": "whatever",
"language": "ja",
"bot_id": "63069654-7750-409d-9a58-a0960d899a20",
"tool_response": true,
"user_identifier": "及川"
}'
```