KAG icon indicating copy to clipboard operation
KAG copied to clipboard

[Bug] [Module Name] Bug title 如何创建api key?

Open mugenggeng opened this issue 5 months ago • 7 comments

Search before asking

  • [x] I had searched in the issues and found no similar issues.

Operating system information

Windows

What happened

我发现6月27日更新了用户手册,HTTP api得到了进一步完善,但是我发现无法创建一个api key

How to reproduce

我发现6月27日更新了用户手册,HTTP api得到了进一步完善,但是我发现无法创建一个api key

Are you willing to submit PR?

  • [x] Yes I am willing to submit a PR!

mugenggeng avatar Jun 30 '25 03:06 mugenggeng

我也没找到

WOWCharlotte avatar Jul 02 '25 00:07 WOWCharlotte

Search before asking

  • [x] I had searched in the issues and found no similar issues.

Operating system information

Windows

What happened

我发现6月27日更新了用户手册,HTTP api得到了进一步完善,但是我发现无法创建一个api key

How to reproduce

我发现6月27日更新了用户手册,HTTP api得到了进一步完善,但是我发现无法创建一个api key

Are you willing to submit PR?

  • [x] Yes I am willing to submit a PR!

Image

caszkgui avatar Jul 02 '25 01:07 caszkgui

接口文档失效了,是 HTTP API 目录么?这个 url 是否要修改成发布的 url?

WOWCharlotte avatar Jul 02 '25 02:07 WOWCharlotte

文档已更新,请查看文档

zivh26 avatar Jul 02 '25 03:07 zivh26

访问成功但是响应报错提示没有acl权限,以下是报错信息

{'_content': b'{"success":false,"errorCode":"KAG_0003","errorMsg":"acl no permission"}\n', '_content_consumed': True, '_next': None, 'status_code': 200, 'headers': {'Access-Control-Allow-Origin': '*', 'Access-Control-Allow-Methods': 'POST, PUT, GET, DELETE', 'Access-Control-Allow-Headers': 'Origin, X-Requested-With, Content-Type, Accept, client_id, uuid, Authorization, credentials', 'Access-Control-Allow-Credentials': 'true', 'Access-Control-Max-Age': '3600', 'Content-Type': 'application/json;charset=UTF-8', 'Transfer-Encoding': 'chunked', 'Date': 'Wed, 02 Jul 2025 06:41:04 GMT', 'Keep-Alive': 'timeout=60', 'Connection': 'keep-alive'}, 'raw': <urllib3.response.HTTPResponse object at 0x00000275931374F0>, 'url': 'http://127.0.0.1:8887/v1/chat/completions/', 'encoding': 'UTF-8', 'history': [], 'reason': '', 'cookies': <RequestsCookieJar[]>, 'elapsed': datetime.timedelta(microseconds=41257), 'request': <PreparedRequest [POST]>, 'connection': <requests.adapters.HTTPAdapter object at 0x0000027593102DD0>} 

WOWCharlotte avatar Jul 02 '25 06:07 WOWCharlotte

I have a new problem. When using the app for Q&A, it doesn't search the knowledge base every time but only occasionally.

mugenggeng avatar Jul 02 '25 06:07 mugenggeng

访问成功但是响应报错提示没有acl权限,以下是报错信息

{'_content': b'{"success":false,"errorCode":"KAG_0003","errorMsg":"acl no permission"}\n', '_content_consumed': True, '_next': None, 'status_code': 200, 'headers': {'Access-Control-Allow-Origin': '*', 'Access-Control-Allow-Methods': 'POST, PUT, GET, DELETE', 'Access-Control-Allow-Headers': 'Origin, X-Requested-With, Content-Type, Accept, client_id, uuid, Authorization, credentials', 'Access-Control-Allow-Credentials': 'true', 'Access-Control-Max-Age': '3600', 'Content-Type': 'application/json;charset=UTF-8', 'Transfer-Encoding': 'chunked', 'Date': 'Wed, 02 Jul 2025 06:41:04 GMT', 'Keep-Alive': 'timeout=60', 'Connection': 'keep-alive'}, 'raw': <urllib3.response.HTTPResponse object at 0x00000275931374F0>, 'url': 'http://127.0.0.1:8887/v1/chat/completions/', 'encoding': 'UTF-8', 'history': [], 'reason': '', 'cookies': <RequestsCookieJar[]>, 'elapsed': datetime.timedelta(microseconds=41257), 'request': <PreparedRequest [POST]>, 'connection': <requests.adapters.HTTPAdapter object at 0x0000027593102DD0>} 
Image 你的问答路径是错的,参考文档

zivh26 avatar Jul 09 '25 07:07 zivh26