MeetWq / meme-generator

表情包生成器,用于制作各种沙雕表情包
MIT License
508 stars 72 forks source link

关于API返回的Json的Key不一致的问题 #172

Closed JHue58 closed 1 week ago

JHue58 commented 1 week ago

以info接口为例,在python3.8搭建的api中的响应是这样的

{
  "key": "alike",
  "keywords": [
    "一样"
  ],
  "patterns": [],
  "params": {
    "min_images": 1,
    "max_images": 1,
    "min_texts": 0,
    "max_texts": 0,
    "default_texts": [],
    "args": []
  }
}

如果用python3.11搭建,其中paramsargs的key会改变

{
  "key": "alike",
  "keywords": [
    "一样"
  ],
  "patterns": [],
  "params_tpye": {
    "min_images": 1,
    "max_images": 1,
    "min_texts": 0,
    "max_texts": 0,
    "default_texts": [],
    "args_type": []
  }
}
MeetWq commented 1 week ago

v0.1.x 接口有调整,已不再支持 python3.8