update
This commit is contained in:
parent
3602a15280
commit
36c662f3d9
@ -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
|
||||
|
||||
@ -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条"),
|
||||
|
||||
@ -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"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user