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

Feature/update hunyuan #25779

Merged
merged 12 commits into from
Sep 2, 2024
Merged

Conversation

xander-art
Copy link
Contributor

@xander-art xander-art commented Aug 27, 2024

Description:
- Add system templates and user templates in integration testing
- initialize the response id field value to request_id
- Adjust the default model to hunyuan-pro
- Remove the default values of Temperature and TopP
- Add SystemMessage

all the integration tests have passed.
1、Execute integration tests for the first time
71ca77a2-e9be-4af6-acdc-4d665002bd9b

2、Run the integration test a second time
image

Issue: None
Dependencies: None
Twitter handle: None

- Remove the default values ​​of Temperature and TopP
- Add SystemMessage
…ng, and initialize the response id field value to request_id
@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Aug 27, 2024
Copy link

vercel bot commented Aug 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
langchain ⬜️ Ignored (Inspect) Visit Preview Sep 2, 2024 3:02am

@dosubot dosubot bot added the community Related to langchain-community label Aug 27, 2024
@@ -112,10 +117,10 @@ def lc_serializable(self) -> bool:
"""What sampling temperature to use."""
top_p: float = 1.0
"""What probability mass to use."""
model: str = "hunyuan-lite"
model: str = "hunyuan-pro"
Copy link
Collaborator

Choose a reason for hiding this comment

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

this will quietly change the model type for anyone relying on the default model, here. Suggest keeping unchanged.

Copy link
Contributor Author

@xander-art xander-art Aug 28, 2024

Choose a reason for hiding this comment

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

ok,Restore Default Model
image

generations.append(ChatGeneration(message=message))

token_usage = response["Usage"]
llm_output = {"token_usage": token_usage}
llm_output = {"token_usage": response.get("Usage", "")}
Copy link
Collaborator

Choose a reason for hiding this comment

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

is empty string the correct type for token usage?

Copy link
Contributor Author

@xander-art xander-art Aug 28, 2024

Choose a reason for hiding this comment

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

ok,Changes have been rolled back
image

libs/community/langchain_community/chat_models/hunyuan.py Outdated Show resolved Hide resolved
@ccurme ccurme self-assigned this Aug 27, 2024
@xander-art xander-art requested a review from ccurme August 28, 2024 03:00
@dosubot dosubot bot added the lgtm PR looks good. Use to confirm that a PR is ready for merging. label Aug 28, 2024
@ccurme ccurme enabled auto-merge (squash) August 28, 2024 13:10
auto-merge was automatically disabled August 29, 2024 07:21

Head branch was pushed to by a user without write access

@xander-art xander-art requested a review from ccurme August 29, 2024 07:25
@ccurme ccurme enabled auto-merge (squash) August 29, 2024 14:07
auto-merge was automatically disabled August 30, 2024 06:12

Head branch was pushed to by a user without write access

@xander-art xander-art requested a review from ccurme August 30, 2024 06:19
@ccurme ccurme enabled auto-merge (squash) September 2, 2024 12:53
@ccurme ccurme merged commit 6cd452d into langchain-ai:master Sep 2, 2024
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Related to langchain-community lgtm PR looks good. Use to confirm that a PR is ready for merging. size:M This PR changes 30-99 lines, ignoring generated files.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants