forked from baidubce/bce-qianfan-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: refactor package import usage
- Loading branch information
Showing
12 changed files
with
101 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
from qianfan.resources.console.data import Data | ||
from qianfan.resources.console.finetune import FineTune | ||
from qianfan.resources.console.model import Model | ||
from qianfan.resources.console.service import Service | ||
from qianfan.resources.images.text2image import Text2Image | ||
from qianfan.resources.llm.chat_completion import ChatCompletion | ||
from qianfan.resources.llm.completion import Completion | ||
from qianfan.resources.llm.embedding import Embedding | ||
from qianfan.resources.llm.plugin import Plugin | ||
from qianfan.resources.tools.tokenizer import Tokenizer | ||
from qianfan.resources.typing import QfMessages, QfResponse, QfRole | ||
|
||
__all__ = [ | ||
"Data", | ||
"Model", | ||
"Service", | ||
"FineTune", | ||
"ChatCompletion", | ||
"Embedding", | ||
"Completion", | ||
"Plugin", | ||
"Text2Image", | ||
"Tokenizer", | ||
"AK", | ||
"SK", | ||
"Role", | ||
"Messages", | ||
"Response", | ||
"QfRole", | ||
"QfMessages", | ||
"QfResponse", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ | |
""" | ||
|
||
|
||
from qianfan import Model | ||
from qianfan.resources import Model | ||
|
||
|
||
def test_list_model(): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ | |
""" | ||
|
||
|
||
from qianfan import Service | ||
from qianfan.resources import Service | ||
|
||
|
||
def test_create_service(): | ||
|