Skip to content

[TRANSLATION] Translate unit1 to Korean: Fix the unavailable HfApiModel import#571

Merged
sergiopaniego merged 1 commit intohuggingface:mainfrom
denven:ko/unit1
Jul 14, 2025
Merged

[TRANSLATION] Translate unit1 to Korean: Fix the unavailable HfApiModel import#571
sergiopaniego merged 1 commit intohuggingface:mainfrom
denven:ko/unit1

Conversation

@denven
Copy link
Copy Markdown
Contributor

@denven denven commented Jul 13, 2025

What does this PR do?

importing the HfApiModel from smolagents library is not available and will cause runtime error

from smolagents import CodeAgent,DuckDuckGoSearchTool, HfApiModel,load_tool,tool
ImportError: cannot import name 'HfApiModel' from 'smolagents'

because it was renamed to InferenceClientModel since April, 2025, see pr huggingface/smolagents#1198

Who can review?

@Jwaminju, @sim-so, @jungnerd, @choincnp @ahnjj

@jungnerd
Copy link
Copy Markdown
Contributor

Thanks for fixing the issue! LGTM 👍

@HuggingFaceDocBuilderDev
Copy link
Copy Markdown
Collaborator

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Copy link
Copy Markdown
Member

@sergiopaniego sergiopaniego left a comment

Choose a reason for hiding this comment

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

Thanks!

@sergiopaniego sergiopaniego merged commit d59b61d into huggingface:main Jul 14, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants