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

FEAT: Support cogagent-9b #2740

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Conversation

amumu96
Copy link
Contributor

@amumu96 amumu96 commented Jan 6, 2025

image

# Conflicts:
#	xinference/model/llm/llm_family.json
#	xinference/model/llm/llm_family_modelscope.json
#	xinference/model/llm/transformers/core.py
@XprobeBot XprobeBot added this to the v1.x milestone Jan 6, 2025
@@ -430,6 +443,19 @@ class CreateChatModel(BaseModel):
CreateChatCompletionLlamaCpp: BaseModel = CreateCompletionLlamaCpp


class CreateExtraChatCompletion(BaseModel):
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems not used?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

2819 resultful_api.py body = CreateChatCompletion.parse_obj(raw_body) needs this code, or it will throw error of parsing

Copy link
Contributor

@qinxuye qinxuye Jan 7, 2025

Choose a reason for hiding this comment

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

IC. Can this be more flexible? https://github.com/xorbitsai/inference/pull/2673/files introduced extra body, the new format and platform is too specific for cogagent only, is it possible to throw them into extra body?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants