-
Notifications
You must be signed in to change notification settings - Fork 320
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor with new framework #267
Merged
+157,679
−7,847
Merged
Changes from 112 commits
Commits
Show all changes
125 commits
Select commit
Hold shift + click to select a range
9090538
update
wangyijunlyy 3fce704
update
wangyijunlyy 649c3ae
add style_repaint
wangyijunlyy 3b48baf
恢复
wangyijunlyy 5d73f22
恢复
wangyijunlyy 9259188
解决合并冲突
wangyijunlyy e2c8a67
add style_repaint tool
wangyijunlyy c67430d
modify style_repaint
wangyijunlyy df77577
fix error
wangyijunlyy 81ac82c
fix
wangyijunlyy cbe8236
fix rate limit
wangyijunlyy 092a914
improve stability
wangyijunlyy b2ebd10
use dashscope to convert url
wangyijunlyy 81866ff
update
wangyijunlyy a0cf87f
modify and better
wangyijunlyy 6d29120
fix
wangyijunlyy f375ff0
refact framework: add base class for llm, tool, and agent
tuhahaha 0d0dc8d
refact llm
tuhahaha 31aeb30
refact llm for custom
tuhahaha 4609cb2
add role_play agent
tuhahaha 80cfa38
add unittest for role-play agent
tuhahaha b60db37
refactor/tool/image_gen
fd6537e
fix pre-commit
d4b68fc
add agent_builder agent
tuhahaha 4689856
revert modelscope_agent/agent.py
b4bb3b8
Merge pull request #247 from suluyana/refactor/tool/image_gen
tuhahaha 388e152
update agent and add react prompt
tuhahaha 6cb1217
adapt agentbuilder in apps
tuhahaha 41f6854
Merge remote-tracking branch 'upstream/refactor0103' into new_version
wangyijunlyy 10c78f1
update style_repaint
wangyijunlyy 4ad14ca
update style_repaint
wangyijunlyy 053ad15
Merge pull request #250 from wangyijunlyy/new_version
tuhahaha b5f2a0b
change pipeline plugin tool (#248)
mushenL deba841
refactor ms agent
3e38201
save system to history
ddbf6e4
avoid duplicated system in roleplay
716aec8
builder with history running
079e85a
test case
wangyijunlyy 5fbaf67
update tool
wangyijunlyy 316931b
update
wangyijunlyy 0c966d0
modify import method
wangyijunlyy 812fe8d
Merge pull request #251 from wangyijunlyy/new_version
tuhahaha 181b07d
code interpreter and knowledge
a3bf326
running code interpreter with file
c3efe6b
Refactor/citest (#257)
zzhangpurdue 2a3b43d
add modelscope tool (#258)
mushenL 7abdbd3
unittest-web search web browser
d968bf0
Merge branch 'refactor0103' of github.com:modelscope/modelscope-agent…
5dd2975
update tool and unittest
5346fe2
Refactor/gradio4 (#260)
suluyana 9f97e1a
update reame and tool cfg
tuhahaha 42f94cd
Merge branch 'refactor0103' of https://github.com/modelscope/modelsco…
tuhahaha 92467e1
Refactor/unittest (#264)
zzhangpurdue ef7711f
Merge remote-tracking branch 'origin/master' into refactor0103
148a423
merge origin master
ace5831
fix bugs
17d9a0d
fix video-to-image
09dc91d
add qwen-max
408bd92
fix apps/agentfabric & update release version
fefdf54
apps/agentfabric/user_core.py
d0e11f1
fix pre-commit
79cfacc
Merge branch 'refactor0103' into release/0.3.0
2e72081
fix bugs & add video play for code interpreter
f5f4a89
comment out translate
3ccf308
Refactor log (#268)
lylalala 9500ec7
Refactor/knowledgeretrieval (#271)
zzhangpurdue 694154a
Merge remote-tracking branch 'origin/release/0.3.0' into refactor0103
5fce22c
add logger (#272)
zzhangpurdue 36d250f
pass code unittest
7ecaf91
Merge branch 'release/0.3.0' into refactor0103
3b0f236
fix publish for missing MODELSCOPE_API_TOKEN alert & rm translation tool
8c8b611
fix bugs
deb2825
update log
93e2cda
fix bugs
c69bc5c
fix instruction
8437504
fix tool log
7dc36d1
fix bugs
a042aa0
fix pre-commit
517ff5f
Zhipu-glm4 (#276)
suluyana 2bb40f3
add zhipuai to requirements.txt
caa1af9
make sure .md file is parsed by nltk
zzhangpurdue 84c38e3
Update demo 20240118 (#275)
mushenL e671b63
add zhipuai
zzhangpurdue c23d191
Merge branch 'release/0.3.0' into refactor0103
zzhangpurdue be9777b
update retrieval knowledge logic to not load in agent fabric
zzhangpurdue 53f92ca
update name
zzhangpurdue 9097520
Merge branch 'release/0.3.0' of github.com:modelscope/modelscope-agen…
c275142
fix bugs
43ed672
fix pre-commit
5979950
fix ci
786a947
update max_token setting
zzhangpurdue 2df7096
Merge remote-tracking branch 'origin/release/0.3.0' into release/0.3.0
zzhangpurdue da9e7e4
fix doc list extend method
zzhangpurdue 6b91f14
fix ci
zzhangpurdue 6388e69
fix ci
zzhangpurdue 53d40c8
add docstr
tuhahaha befd8c5
rm useless agent: function call, react, react_chat
tuhahaha 5ebc687
bugfix
tuhahaha 1094f14
bugfix
tuhahaha 5f7292e
bugfix: change _detect_tool for role_play
tuhahaha 00515dc
remove uuid related log in ms
zzhangpurdue 6c38563
fix publish avatar
6c1d023
version 0.3.0rc0
7e3bb66
fix bugs
zzhangpurdue 938aac2
fix bug
bbc572b
fix audio->video
ad8abbc
Merge remote-tracking branch 'origin/release/0.3.0' into refactor0103
zzhangpurdue 209d3da
update demo
zzhangpurdue e0a232a
bug fixed by comment
zzhangpurdue 3a930ff
lint pass
zzhangpurdue 82aefed
bug fixed
zzhangpurdue 5cc2110
bug fixed
zzhangpurdue 760d4dd
merge master
wenmengzhou df1415f
fix ci (not complete)
5d06ba4
add hf tool unit test
zzhangpurdue 8a7451e
Openapi (#287)
suluyana db4354c
bug fixed
zzhangpurdue 2287855
pass lint
zzhangpurdue ea81126
fix ci
858170c
update ci_env
dbe53a2
fix ci
53ffd1e
fix ci
3d696ad
fix pre-commit
e15391b
update ci
7808cc7
fix pre-commit
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
|
||
# install dependencies for ci | ||
pip install torch | ||
export CODE_INTERPRETER_WORK_DIR=${GITHUB_WORKSPACE} | ||
echo "${CODE_INTERPRETER_WORK_DIR}" | ||
|
||
# cp file | ||
cp tests/samples/luoli15.jpg "${CODE_INTERPRETER_WORK_DIR}/luoli15.jpg" | ||
ls "${CODE_INTERPRETER_WORK_DIR}" | ||
|
||
# run ci | ||
pytest |
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,72 @@ | ||
name: citest | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- "release/**" | ||
paths-ignore: | ||
- "setup.*" | ||
- "requirements.txt" | ||
- "apps/**" | ||
- "docs/**" | ||
- "demo/**" | ||
- "config/**" | ||
- "resource/**" | ||
- "README.md" | ||
- "README_zh-CN.md" | ||
- "NOTICE" | ||
- ".github/workflows/lint.yaml" | ||
|
||
pull_request: | ||
paths-ignore: | ||
- "setup.*" | ||
- "requirements.txt" | ||
- "apps/**" | ||
- "docs/**" | ||
- "demo/**" | ||
- "config/**" | ||
- "resource/**" | ||
- "README.md" | ||
- "README_zh-CN.md" | ||
- "NOTICE" | ||
- ".github/workflows/lint.yaml" | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
unittest: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 20 | ||
environment: testci | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
# - name: Cache Python dependencies | ||
# uses: actions/cache@v3 | ||
# id: cache | ||
# with: | ||
# path: ~/.cache/pip | ||
# key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }} | ||
|
||
- name: Set up Python 3.10.13 | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: "3.10.13" | ||
|
||
- name: Install dependencies | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
run: pip install -r requirements.txt | ||
|
||
- name: Run tests | ||
env: | ||
AMAP_TOKEN: ${{ secrets.AMAP_TOKEN }} | ||
BING_SEARCH_V7_SUBSCRIPTION_KEY: ${{ secrets.BING_SEARCH_V7_SUBSCRIPTION_KEY }} | ||
DASHSCOPE_API_KEY: ${{ secrets.DASHSCOPE_API_KEY }} | ||
MODELSCOPE_API_TOKEN: ${{ secrets.MODELSCOPE_API_TOKEN }} | ||
|
||
shell: bash | ||
run: bash .dev_scripts/dockerci.sh |
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 |
---|---|---|
|
@@ -27,6 +27,8 @@ wheels/ | |
*.egg | ||
/package | ||
/temp | ||
**/tmp/ | ||
/apps/agentfabric/tmp/ | ||
MANIFEST | ||
|
||
# PyInstaller | ||
|
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 |
---|---|---|
@@ -1 +1,3 @@ | ||
recursive-include modelscope_agent/tools/code_interpreter_utils *.ttf | ||
recursive-include modelscope_agent/tools/code_interpreter *.ttf | ||
recursive-include modelscope_agent/utils *.tiktoken | ||
recursive-include modelscope_agent/utils/nltk *.zip |
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 |
---|---|---|
@@ -1,4 +0,0 @@ | ||
from .builder_prompt import BuilderPromptGenerator | ||
from .builder_prompt_zh import ZhBuilderPromptGenerator | ||
from .custom_prompt import CustomPromptGenerator | ||
from .custom_prompt_zh import ZhCustomPromptGenerator | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change the demo to agentfabric/agentscope