THUDM / ChatGLM-6B

ChatGLM-6B: An Open Bilingual Dialogue Language Model | 开源双语对话语言模型
Apache License 2.0
39.96k stars 5.15k forks source link

[BUG/Help] 调用API时报错405:Method Not Allowed #1472

Open AlyssaZyt opened 3 months ago

AlyssaZyt commented 3 months ago

Is there an existing issue for this?

Current Behavior

调用API时报错:405 Method Not Allowed 。从服务器进入url页面后,呈现结果如下: { "detail": "Method Not Allowed" }

Expected Behavior

No response

Steps To Reproduce

  1. I have already installed all the dependencies in README.md.
  2. python api.py
  3. run
  4. see this error

Environment

- OS:20.04
- Python:3.8
- Transformers:4。26.1
- PyTorch:1.12
- CUDA Support (`python -c "import torch; print(torch.cuda.is_available())"`) :True

Anything else?

No response