Update SDK->sdk, and add create_dataset (#1047)

### What problem does this PR solve?

Add create_dataset method, test for it, and update SDK->sdk.

### Type of change

- [x] New Feature (non-breaking change which adds functionality)

Signed-off-by: cecilia-uu <konghui1996@163.com>
This commit is contained in:
cecilia-uu
2024-06-03 20:14:47 +08:00
committed by GitHub
parent 0b15c47d70
commit c74d4d683e
9 changed files with 96 additions and 4 deletions

View File

@ -0,0 +1,12 @@
from test_sdkbase import TestSdk
import ragflow
from ragflow.ragflow import RAGFLow
import pytest
class TestCase(TestSdk):
def test_version(self):
print(ragflow.__version__)
def test_create_dataset(self):
assert ragflow.ragflow.RAGFLow('123', 'url').create_dataset('abc') == 'abc'