Skip to content

Commit

Permalink
deploy: 07165b3
Browse files Browse the repository at this point in the history
  • Loading branch information
pan-x-c committed Sep 4, 2024
1 parent 879f3e8 commit f7bba9a
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 2 deletions.
Binary file modified en/.doctrees/environment.pickle
Binary file not shown.
Binary file modified en/.doctrees/index.doctree
Binary file not shown.
2 changes: 1 addition & 1 deletion en/_modules/agentscope/models/response.html
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ <h1>Source code for agentscope.models.response</h1><div class="highlight"><pre>
<span class="sd"> field will be updated accordingly.&quot;&quot;&quot;</span>
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">_text</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">stream</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span><span class="p">:</span>
<span class="k">for</span> <span class="n">chunk</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">stream</span><span class="p">:</span>
<span class="k">for</span> <span class="n">_</span><span class="p">,</span> <span class="n">chunk</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">stream</span><span class="p">:</span>
<span class="bp">self</span><span class="o">.</span><span class="n">_text</span> <span class="o">+=</span> <span class="n">chunk</span>
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_text</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.
2 changes: 1 addition & 1 deletion zh_CN/_modules/agentscope/models/response.html
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ <h1>agentscope.models.response 源代码</h1><div class="highlight"><pre>
<span class="sd"> field will be updated accordingly.&quot;&quot;&quot;</span>
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">_text</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">stream</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span><span class="p">:</span>
<span class="k">for</span> <span class="n">chunk</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">stream</span><span class="p">:</span>
<span class="k">for</span> <span class="n">_</span><span class="p">,</span> <span class="n">chunk</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">stream</span><span class="p">:</span>
<span class="bp">self</span><span class="o">.</span><span class="n">_text</span> <span class="o">+=</span> <span class="n">chunk</span>
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_text</span>

Expand Down

0 comments on commit f7bba9a

Please sign in to comment.