dependabot[bot] opened a new pull request, #2046: URL: https://github.com/apache/iceberg-python/pull/2046
Bumps [huggingface-hub](https://github.com/huggingface/huggingface_hub) from 0.31.4 to 0.32.1. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/huggingface/huggingface_hub/releases">huggingface-hub's releases</a>.</em></p> <blockquote> <h2>[v0.32.1]: hot-fix: Fix tiny agents on Windows</h2> <p>Patch release to fix <a href="https://redirect.github.com/huggingface/huggingface_hub/issues/3116">#3116</a></p> <p>Full Changelog: <a href="https://github.com/huggingface/huggingface_hub/compare/v0.32.0...v0.32.1">https://github.com/huggingface/huggingface_hub/compare/v0.32.0...v0.32.1</a></p> <h2>[v0.32.0]: MCP Client, Tiny Agents CLI and more!</h2> <h2>🤖 Powering LLMs with Tools: MCP Client & Tiny Agents CLI</h2> <p>✨ The <code>huggingface_hub</code> library now includes an MCP Client, designed to empower Large Language Models (LLMs) with the ability to interact with external Tools via <a href="https://modelcontextprotocol.io/">Model Context Protocol</a> (MCP). This client extends the <code>InfrenceClient</code> and provides a seamless way to connect LLMs to both local and remote tool servers!</p> <pre lang="bash"><code>pip install -U huggingface_hub[mcp] </code></pre> <p>In the following example, we use the <a href="https://huggingface.co/Qwen/Qwen2.5-72B-Instruct">Qwen/Qwen2.5-72B-Instruct</a> model via the <a href="https://huggingface.co/docs/inference-providers/providers/nebius">Nebius</a> inference provider. We then add a remote MCP server, in this case, an SSE server which makes the Flux image generation tool available to the LLM:</p> <pre lang="python"><code>import os <p>from huggingface_hub import ChatCompletionInputMessage, ChatCompletionStreamOutput, MCPClient</p> <p>async def main(): async with MCPClient( provider="nebius", model="Qwen/Qwen2.5-72B-Instruct", api_key=os.environ["HF_TOKEN"], ) as client: await client.add_mcp_server(type="sse", url="<a href="https://evalstate-flux1-schnell.hf.space/gradio_api/mcp/sse">https://evalstate-flux1-schnell.hf.space/gradio_api/mcp/sse</a>") messages = [ { "role": "user", "content": "Generate a picture of a cat on the moon", } ] async for chunk in client.process_single_turn_with_tools(messages): # Log messages if isinstance(chunk, ChatCompletionStreamOutput): delta = chunk.choices[0].delta if delta.content: print(delta.content, end="")</p> <pre><code> # Or tool calls elif isinstance(chunk, ChatCompletionInputMessage): print( f&quot;\nCalled tool '{chunk.name}'. Result: '{chunk.content if len(chunk.content) &lt; 1000 else chunk.content[:1000] + '...'}'&quot; ) </code></pre> <p>if <strong>name</strong> == "<strong>main</strong>": import asyncio asyncio.run(main()) </code></pre></p> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/huggingface/huggingface_hub/commit/5add97934bca73d651adcbfd553b7f7d16f6662d"><code>5add979</code></a> Release: v0.32.1</li> <li><a href="https://github.com/huggingface/huggingface_hub/commit/7ea6e4858eb218398f21cac7a713980170fa27bf"><code>7ea6e48</code></a> [MCP] fix tiny-agents on Windows (<a href="https://redirect.github.com/huggingface/huggingface_hub/issues/3116">#3116</a>)</li> <li><a href="https://github.com/huggingface/huggingface_hub/commit/a97424f025a1a0141f0a7a8c65dfa5482af560c6"><code>a97424f</code></a> Release: v0.32.0</li> <li><a href="https://github.com/huggingface/huggingface_hub/commit/e9177eb5cc70d848718a70087e4209ce4b496fdb"><code>e9177eb</code></a> Release: v0.32.0.rc1</li> <li><a href="https://github.com/huggingface/huggingface_hub/commit/0b9c9ee6bd66b507b2566470a5c3c2ceca623424"><code>0b9c9ee</code></a> [MCP] better tiny-agents CLI help (<a href="https://redirect.github.com/huggingface/huggingface_hub/issues/3105">#3105</a>)</li> <li><a href="https://github.com/huggingface/huggingface_hub/commit/376584807892936396f45be200c383a3494ae88e"><code>3765848</code></a> Release: v0.32.0.rc0</li> <li><a href="https://github.com/huggingface/huggingface_hub/commit/9f34fb82fc3486ceb16942224d75cf523ccb7fbc"><code>9f34fb8</code></a> Release: v0.32.O.rc0</li> <li><a href="https://github.com/huggingface/huggingface_hub/commit/92619e4229895393ad5f72c25d3db73aa2d869ea"><code>92619e4</code></a> [Internal] make <code>hf-xet</code> (again) a required dependency (<a href="https://redirect.github.com/huggingface/huggingface_hub/issues/3103">#3103</a>)</li> <li><a href="https://github.com/huggingface/huggingface_hub/commit/cadb7a9e2d425c9ee5e893968ec311dfe0742683"><code>cadb7a9</code></a> [MCP] Add documentation (<a href="https://redirect.github.com/huggingface/huggingface_hub/issues/3102">#3102</a>)</li> <li><a href="https://github.com/huggingface/huggingface_hub/commit/417ad897432196087181302faff0e5f64f461bbd"><code>417ad89</code></a> [Inference Providers] Fix structured output schema in chat completion (<a href="https://redirect.github.com/huggingface/huggingface_hub/issues/3082">#3082</a>)</li> <li>Additional commits viewable in <a href="https://github.com/huggingface/huggingface_hub/compare/v0.31.4...v0.32.1">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org