This commit is contained in:
aaron 2025-05-06 12:27:29 +08:00
parent 3602a15280
commit 36c662f3d9
3 changed files with 7 additions and 7 deletions

View File

@ -32,10 +32,10 @@ crypto:
base_currencies:
- "BTC"
- "ETH"
# - "SOL"
# - "SUI"
# - "DOGE"
# - "LTC"
- "SOL"
- "SUI"
- "DOGE"
- "LTC"
quote_currency: "USDT"
time_interval: "4h" # 可选: 1m, 5m, 15m, 30m, 1h, 4h, 1d
historical_days: 90

View File

@ -35,7 +35,7 @@ class AgentFeedResponse(BaseModel):
content: str
create_time: datetime
@router.post("/", response_model=Dict[str, Any], status_code=status.HTTP_201_CREATED)
@router.post("", response_model=Dict[str, Any], status_code=status.HTTP_201_CREATED)
async def create_feed(feed: AgentFeedCreate) -> Dict[str, Any]:
"""
创建新的AI Agent信息流
@ -75,7 +75,7 @@ async def create_feed(feed: AgentFeedCreate) -> Dict[str, Any]:
detail=f"创建信息流失败: {str(e)}"
)
@router.get("/", response_model=List[AgentFeedResponse])
@router.get("", response_model=List[AgentFeedResponse])
async def get_feeds(
agent_name: Optional[str] = Query(None, description="AI Agent名称可选"),
limit: int = Query(20, description="返回的最大记录数默认20条"),

View File

@ -29,7 +29,7 @@ services:
cryptoai-api:
build: .
container_name: cryptoai-api
image: cryptoai-api:0.0.2
image: cryptoai-api:0.0.3
restart: always
ports:
- "8000:8000"