Skip to content
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

Add post API for embedding model and fix embedding model wrappers #186

Merged
merged 11 commits into from
May 22, 2024

Conversation

ZiTao-Li
Copy link
Collaborator

@ZiTao-Li ZiTao-Li commented Apr 28, 2024


Add post API for embedding model and fix embedding model wrappers


Description

  • Add post API for embedding model to provide a default choice for some response format.
  • Fix some bugs (which will not be trigger) in the existing embedding models.

By default, now the return of embedding model wrappers are ModelResponse with list of embeddings.

Checklist

Please check the following items before code is ready to be reviewed.

  • Code has passed all tests
  • Docstrings have been added/updated in Google Style
  • Documentation has been updated
  • Code is ready for review

@ZiTao-Li ZiTao-Li requested review from DavdGao, pan-x-c, qbc2016, FredericW, rayrayraykk and garyzhang99 and removed request for DavdGao and pan-x-c April 28, 2024 07:50
Copy link
Collaborator

@DavdGao DavdGao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Plz see inline comments and add example configurations in examples/model_configurations/

src/agentscope/models/dashscope_model.py Show resolved Hide resolved
docs/sphinx_doc/en/source/tutorial/203-model.md Outdated Show resolved Hide resolved
# Conflicts:
#	docs/sphinx_doc/en/source/tutorial/203-model.md
#	docs/sphinx_doc/zh_CN/source/tutorial/203-model.md
@ZiTao-Li ZiTao-Li added ready for review bug Something isn't working labels May 9, 2024
Copy link
Collaborator

@DavdGao DavdGao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

plz fix the typo, others lgtm

# Conflicts:
#	docs/sphinx_doc/en/source/tutorial/203-model.md
Copy link
Collaborator

@qbc2016 qbc2016 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Copy link
Collaborator

@pan-x-c pan-x-c left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ZiTao-Li ZiTao-Li merged commit bbc1657 into modelscope:main May 22, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants