Skip to content

Commit

Permalink
deploy: f60d4c2
Browse files Browse the repository at this point in the history
  • Loading branch information
DavdGao committed Nov 5, 2024
1 parent 4d23ae1 commit b247276
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 6 deletions.
Binary file modified en/.doctrees/environment.pickle
Binary file not shown.
Binary file modified en/.doctrees/index.doctree
Binary file not shown.
10 changes: 9 additions & 1 deletion en/_modules/agentscope/models/dashscope_model.html
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,14 @@ <h1>Source code for agentscope.models.dashscope_model</h1><div class="highlight"

<span class="k">try</span><span class="p">:</span>
<span class="kn">import</span> <span class="nn">dashscope</span>

<span class="n">dashscope_version</span> <span class="o">=</span> <span class="n">dashscope</span><span class="o">.</span><span class="n">version</span><span class="o">.</span><span class="n">__version__</span>
<span class="k">if</span> <span class="n">dashscope_version</span> <span class="o">&lt;</span> <span class="s2">&quot;1.19.0&quot;</span><span class="p">:</span>
<span class="n">logger</span><span class="o">.</span><span class="n">warning</span><span class="p">(</span>
<span class="sa">f</span><span class="s2">&quot;You are using &#39;dashscope&#39; version </span><span class="si">{</span><span class="n">dashscope_version</span><span class="si">}</span><span class="s2">, &quot;</span>
<span class="s2">&quot;which is below the recommended version 1.19.0. &quot;</span>
<span class="s2">&quot;Please consider upgrading to maintain compatibility.&quot;</span><span class="p">,</span>
<span class="p">)</span>
<span class="kn">from</span> <span class="nn">dashscope.api_entities.dashscope_response</span> <span class="kn">import</span> <span class="n">GenerationResponse</span>
<span class="k">except</span> <span class="ne">ImportError</span><span class="p">:</span>
<span class="n">dashscope</span> <span class="o">=</span> <span class="kc">None</span>
Expand Down Expand Up @@ -179,7 +187,7 @@ <h1>Source code for agentscope.models.dashscope_model</h1><div class="highlight"
<span class="k">if</span> <span class="n">dashscope</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
<span class="k">raise</span> <span class="ne">ImportError</span><span class="p">(</span>
<span class="s2">&quot;The package &#39;dashscope&#39; is not installed. Please install it &quot;</span>
<span class="s2">&quot;by running `pip install dashscope==1.14.1`&quot;</span><span class="p">,</span>
<span class="s2">&quot;by running `pip install dashscope&gt;=1.19.0`&quot;</span><span class="p">,</span>
<span class="p">)</span>

<span class="bp">self</span><span class="o">.</span><span class="n">generate_args</span> <span class="o">=</span> <span class="n">generate_args</span> <span class="ow">or</span> <span class="p">{}</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ <h1>Source code for agentscope.service.multi_modality.dashscope_services</h1><di
<span class="k">except</span> <span class="ne">ImportError</span> <span class="k">as</span> <span class="n">e</span><span class="p">:</span>
<span class="k">raise</span> <span class="ne">ImportError</span><span class="p">(</span>
<span class="s2">&quot;The package &#39;dashscope&#39; is not installed. Please install it by &quot;</span>
<span class="s2">&quot;running `pip install dashscope==1.14.1`&quot;</span><span class="p">,</span>
<span class="s2">&quot;running `pip install dashscope&gt;=1.19.0`&quot;</span><span class="p">,</span>
<span class="p">)</span> <span class="kn">from</span> <span class="nn">e</span>

<span class="n">dashscope</span><span class="o">.</span><span class="n">api_key</span> <span class="o">=</span> <span class="n">api_key</span>
Expand Down
2 changes: 1 addition & 1 deletion en/_modules/agentscope/web/gradio/utils.html
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ <h1>Source code for agentscope.web.gradio.utils</h1><div class="highlight"><pre>
<span class="k">except</span> <span class="ne">ImportError</span> <span class="k">as</span> <span class="n">e</span><span class="p">:</span>
<span class="k">raise</span> <span class="ne">ImportError</span><span class="p">(</span>
<span class="s2">&quot;The package dashscope is not found. Please install it by &quot;</span>
<span class="s2">&quot;running `pip install dashscope==1.14.1`&quot;</span><span class="p">,</span>
<span class="s2">&quot;running `pip install dashscope&gt;=1.19.0`&quot;</span><span class="p">,</span>
<span class="p">)</span> <span class="kn">from</span> <span class="nn">e</span>

<span class="n">callback</span> <span class="o">=</span> <span class="n">RecognitionCallback</span><span class="p">()</span>
Expand Down
Binary file modified zh_CN/.doctrees/environment.pickle
Binary file not shown.
Binary file modified zh_CN/.doctrees/index.doctree
Binary file not shown.
10 changes: 9 additions & 1 deletion zh_CN/_modules/agentscope/models/dashscope_model.html
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,14 @@ <h1>agentscope.models.dashscope_model 源代码</h1><div class="highlight"><pre>

<span class="k">try</span><span class="p">:</span>
<span class="kn">import</span> <span class="nn">dashscope</span>

<span class="n">dashscope_version</span> <span class="o">=</span> <span class="n">dashscope</span><span class="o">.</span><span class="n">version</span><span class="o">.</span><span class="n">__version__</span>
<span class="k">if</span> <span class="n">dashscope_version</span> <span class="o">&lt;</span> <span class="s2">&quot;1.19.0&quot;</span><span class="p">:</span>
<span class="n">logger</span><span class="o">.</span><span class="n">warning</span><span class="p">(</span>
<span class="sa">f</span><span class="s2">&quot;You are using &#39;dashscope&#39; version </span><span class="si">{</span><span class="n">dashscope_version</span><span class="si">}</span><span class="s2">, &quot;</span>
<span class="s2">&quot;which is below the recommended version 1.19.0. &quot;</span>
<span class="s2">&quot;Please consider upgrading to maintain compatibility.&quot;</span><span class="p">,</span>
<span class="p">)</span>
<span class="kn">from</span> <span class="nn">dashscope.api_entities.dashscope_response</span> <span class="kn">import</span> <span class="n">GenerationResponse</span>
<span class="k">except</span> <span class="ne">ImportError</span><span class="p">:</span>
<span class="n">dashscope</span> <span class="o">=</span> <span class="kc">None</span>
Expand Down Expand Up @@ -183,7 +191,7 @@ <h1>agentscope.models.dashscope_model 源代码</h1><div class="highlight"><pre>
<span class="k">if</span> <span class="n">dashscope</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
<span class="k">raise</span> <span class="ne">ImportError</span><span class="p">(</span>
<span class="s2">&quot;The package &#39;dashscope&#39; is not installed. Please install it &quot;</span>
<span class="s2">&quot;by running `pip install dashscope==1.14.1`&quot;</span><span class="p">,</span>
<span class="s2">&quot;by running `pip install dashscope&gt;=1.19.0`&quot;</span><span class="p">,</span>
<span class="p">)</span>

<span class="bp">self</span><span class="o">.</span><span class="n">generate_args</span> <span class="o">=</span> <span class="n">generate_args</span> <span class="ow">or</span> <span class="p">{}</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ <h1>agentscope.service.multi_modality.dashscope_services 源代码</h1><div clas
<span class="k">except</span> <span class="ne">ImportError</span> <span class="k">as</span> <span class="n">e</span><span class="p">:</span>
<span class="k">raise</span> <span class="ne">ImportError</span><span class="p">(</span>
<span class="s2">&quot;The package &#39;dashscope&#39; is not installed. Please install it by &quot;</span>
<span class="s2">&quot;running `pip install dashscope==1.14.1`&quot;</span><span class="p">,</span>
<span class="s2">&quot;running `pip install dashscope&gt;=1.19.0`&quot;</span><span class="p">,</span>
<span class="p">)</span> <span class="kn">from</span> <span class="nn">e</span>

<span class="n">dashscope</span><span class="o">.</span><span class="n">api_key</span> <span class="o">=</span> <span class="n">api_key</span>
Expand Down
2 changes: 1 addition & 1 deletion zh_CN/_modules/agentscope/web/gradio/utils.html
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ <h1>agentscope.web.gradio.utils 源代码</h1><div class="highlight"><pre>
<span class="k">except</span> <span class="ne">ImportError</span> <span class="k">as</span> <span class="n">e</span><span class="p">:</span>
<span class="k">raise</span> <span class="ne">ImportError</span><span class="p">(</span>
<span class="s2">&quot;The package dashscope is not found. Please install it by &quot;</span>
<span class="s2">&quot;running `pip install dashscope==1.14.1`&quot;</span><span class="p">,</span>
<span class="s2">&quot;running `pip install dashscope&gt;=1.19.0`&quot;</span><span class="p">,</span>
<span class="p">)</span> <span class="kn">from</span> <span class="nn">e</span>

<span class="n">callback</span> <span class="o">=</span> <span class="n">RecognitionCallback</span><span class="p">()</span>
Expand Down

0 comments on commit b247276

Please sign in to comment.