<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>DeepSeek API 連携 on Negi AI Lab</title><link>https://ai.negi-lab.com/tags/deepseek-api-%E9%80%A3%E6%90%BA/</link><description>Recent content in DeepSeek API 連携 on Negi AI Lab</description><image><title>Negi AI Lab</title><url>https://ai.negi-lab.com/images/og-default.png</url><link>https://ai.negi-lab.com/images/og-default.png</link></image><generator>Hugo -- 0.154.5</generator><language>ja</language><lastBuildDate>Mon, 06 Apr 2026 00:08:10 +0900</lastBuildDate><atom:link href="https://ai.negi-lab.com/tags/deepseek-api-%E9%80%A3%E6%90%BA/index.xml" rel="self" type="application/rss+xml"/><item><title>QwenやDeepSeekの配布遅延に備える！APIとローカルを自動切替するLLM実装術</title><link>https://ai.negi-lab.com/posts/qwen-deepseek-resilient-llm-wrapper/</link><pubDate>Mon, 06 Apr 2026 00:00:00 +0900</pubDate><guid>https://ai.negi-lab.com/posts/qwen-deepseek-resilient-llm-wrapper/</guid><description>&lt;p&gt;&lt;strong&gt;所要時間:&lt;/strong&gt; 約40分 | &lt;strong&gt;難易度:&lt;/strong&gt; ★★★☆☆&lt;/p&gt;
&lt;h2 id="この記事で作るもの"&gt;この記事で作るもの&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;中国系LLM（Qwen, DeepSeek等）の「API版」と「ローカル版（Ollama等）」を、モデルの公開状況や通信状態に応じて1秒以内に自動で切り替える、可用性の高いPython推論スクリプトを作ります。&lt;/li&gt;
&lt;li&gt;前提知識: Pythonの基本的な文法（関数、例外処理）がわかること。&lt;/li&gt;
&lt;li&gt;必要なもの: Python 3.10以上、DashScope（Qwen）やDeepSeekのAPIキー、ローカル実行用のLLM環境（Ollama等）。&lt;/li&gt;
&lt;/ul&gt;
&lt;div style="border:1px solid #e0e0e0;border-radius:8px;padding:16px;margin:20px 0;background:#fafafa"&gt;
&lt;p style="margin:0 0 4px;font-size:13px;color:#888"&gt;📦 この記事に関連する商品&lt;/p&gt;</description></item></channel></rss>