update
This commit is contained in:
parent
3602a15280
commit
36c662f3d9
@ -32,10 +32,10 @@ crypto:
|
|||||||
base_currencies:
|
base_currencies:
|
||||||
- "BTC"
|
- "BTC"
|
||||||
- "ETH"
|
- "ETH"
|
||||||
# - "SOL"
|
- "SOL"
|
||||||
# - "SUI"
|
- "SUI"
|
||||||
# - "DOGE"
|
- "DOGE"
|
||||||
# - "LTC"
|
- "LTC"
|
||||||
quote_currency: "USDT"
|
quote_currency: "USDT"
|
||||||
time_interval: "4h" # 可选: 1m, 5m, 15m, 30m, 1h, 4h, 1d
|
time_interval: "4h" # 可选: 1m, 5m, 15m, 30m, 1h, 4h, 1d
|
||||||
historical_days: 90
|
historical_days: 90
|
||||||
|
|||||||
@ -35,7 +35,7 @@ class AgentFeedResponse(BaseModel):
|
|||||||
content: str
|
content: str
|
||||||
create_time: datetime
|
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]:
|
async def create_feed(feed: AgentFeedCreate) -> Dict[str, Any]:
|
||||||
"""
|
"""
|
||||||
创建新的AI Agent信息流
|
创建新的AI Agent信息流
|
||||||
@ -75,7 +75,7 @@ async def create_feed(feed: AgentFeedCreate) -> Dict[str, Any]:
|
|||||||
detail=f"创建信息流失败: {str(e)}"
|
detail=f"创建信息流失败: {str(e)}"
|
||||||
)
|
)
|
||||||
|
|
||||||
@router.get("/", response_model=List[AgentFeedResponse])
|
@router.get("", response_model=List[AgentFeedResponse])
|
||||||
async def get_feeds(
|
async def get_feeds(
|
||||||
agent_name: Optional[str] = Query(None, description="AI Agent名称,可选"),
|
agent_name: Optional[str] = Query(None, description="AI Agent名称,可选"),
|
||||||
limit: int = Query(20, description="返回的最大记录数,默认20条"),
|
limit: int = Query(20, description="返回的最大记录数,默认20条"),
|
||||||
|
|||||||
@ -29,7 +29,7 @@ services:
|
|||||||
cryptoai-api:
|
cryptoai-api:
|
||||||
build: .
|
build: .
|
||||||
container_name: cryptoai-api
|
container_name: cryptoai-api
|
||||||
image: cryptoai-api:0.0.2
|
image: cryptoai-api:0.0.3
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- "8000:8000"
|
- "8000:8000"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user