AGI大作手
AGI大作手
> 我也出现这样的情况,还请有人能否解决一下,尝试了很多次 除非清除数据重新加载 我也遇到了同样的问题,也有好几个帖子报告了这个问题。但是他们拒绝承认这是bug,一直在说等等就好了。我的结论跟你一样,只有清除所有数据才能行
I also encountered this same issue, and it’s present in the online demo version as well. And the docker image version is dev
> it seems that kb_name is none. I have already entered the kb_name parameter through ``` params = {"file": file_content, "kb_name": kb_name, } ``` and `kb_name` is not none And...
> [May this help](https://stackoverflow.com/questions/22567306/how-to-upload-file-with-python-requests) Thank you。 I changed the code to: ``` files = {'file': open(file_path, 'rb')} data = { 'kb_name': kb_name, 'parser_id': 'naive' } req = requests.post(url=self.url_prefix+end_point, headers=self.headers_json, files=files,...
I have fixed it by myself, you should write like this: ``` end_point = "/api/document/upload" header = {"Authorization": "Bearer " + self.api_key} files = {'file': open(file_path, 'rb'), 'kb_name': (None, kb_name),...
> The main branch has fixed this, for now, run `pip install 'openai