Repository: CIME-Software/perplexipy (language: python)

Issue:
BUG:  trim leading and trailing white space in Codex Playground commands

Update PerplexiPy to use the May official Perplexity models

BUG:  Codex Playground crashes on empty input string - disallow



Discussion / hints:

Fix patch:
diff --git a/README.md b/README.md
index 6f87e5a..85c1769 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-% perplexipy(3) Version 1.0.7 | Perplexity AI high level API documentation
+% perplexipy(3) Version 1.1.1 | Perplexity AI high level API documentation
 
 Name
 ====
diff --git a/codex-README.md b/codex-README.md
index b79c8cc..96f6521 100644
--- a/codex-README.md
+++ b/codex-README.md
@@ -1,4 +1,4 @@
-% Codex(3) Version 1.0.7 | PerplexiPy command line code explainer
+% Codex(3) Version 1.1.1 | PerplexiPy command line code explainer
 
 Name
 ====
diff --git a/docs/perplexipy.html b/docs/perplexipy.html
index b45e3cf..36a9b1c 100644
--- a/docs/perplexipy.html
+++ b/docs/perplexipy.html
@@ -377,62 +377,59 @@ <h1 class="modulename">
 </span><span id="L-255"><a href="#L-255"><span class="linenos">255</span></a><span class="sd">        - `availability`</span>
 </span><span id="L-256"><a href="#L-256"><span class="linenos">256</span></a><span class="sd">        &quot;&quot;&quot;</span>
 </span><span id="L-257"><a href="#L-257"><span class="linenos">257</span></a>        <span class="n">supportedModels</span> <span class="o">=</span> <span class="n">OrderedDict</span><span class="p">({</span>
-</span><span id="L-258"><a href="#L-258"><span class="linenos">258</span></a>            <span class="s1">&#39;codellama-70b-instruct&#39;</span><span class="p">:</span> <span class="n">ModelInfo</span><span class="p">(</span><span class="s1">&#39;70B&#39;</span><span class="p">,</span> <span class="mi">16384</span><span class="p">,</span> <span class="s1">&#39;chat completion&#39;</span><span class="p">,</span> <span class="s1">&#39;open source&#39;</span><span class="p">,),</span>
-</span><span id="L-259"><a href="#L-259"><span class="linenos">259</span></a>            <span class="s1">&#39;llama-3-70b-instruct&#39;</span><span class="p">:</span> <span class="n">ModelInfo</span><span class="p">(</span><span class="s1">&#39;70B&#39;</span><span class="p">,</span> <span class="mi">8192</span><span class="p">,</span> <span class="s1">&#39;chat completion&#39;</span><span class="p">,</span> <span class="s1">&#39;open source&#39;</span><span class="p">),</span>
-</span><span id="L-260"><a href="#L-260"><span class="linenos">260</span></a>            <span class="s1">&#39;llama-3-8b-instruct&#39;</span><span class="p">:</span> <span class="n">ModelInfo</span><span class="p">(</span><span class="s1">&#39;8B&#39;</span><span class="p">,</span> <span class="mi">8192</span><span class="p">,</span> <span class="s1">&#39;chat completion&#39;</span><span class="p">,</span> <span class="s1">&#39;open source&#39;</span><span class="p">),</span>
-</span><span id="L-261"><a href="#L-261"><span class="linenos">261</span></a>            <span class="s1">&#39;llama-3-sonar-large-32k-chat&#39;</span><span class="p">:</span> <span class="n">ModelInfo</span><span class="p">(</span><span class="s1">&#39;8x7B&#39;</span><span class="p">,</span> <span class="mi">32768</span><span class="p">,</span> <span class="s1">&#39;chat completion&#39;</span><span class="p">,</span> <span class="s1">&#39;Perplexity&#39;</span><span class="p">,),</span>
-</span><span id="L-262"><a href="#L-262"><span class="linenos">262</span></a>            <span class="s1">&#39;llama-3-sonar-large-32k-online&#39;</span><span class="p">:</span> <span class="n">ModelInfo</span><span class="p">(</span><span class="s1">&#39;8x7B&#39;</span><span class="p">,</span> <span class="mi">32768</span><span class="p">,</span> <span class="s1">&#39;chat completion&#39;</span><span class="p">,</span> <span class="s1">&#39;Perplexity&#39;</span><span class="p">,),</span>
-</span><span id="L-263"><a href="#L-263"><span class="linenos">263</span></a>            <span class="s1">&#39;llama-3-sonar-small-32k-chat&#39;</span><span class="p">:</span> <span class="n">ModelInfo</span><span class="p">(</span><span class="s1">&#39;7B&#39;</span><span class="p">,</span> <span class="mi">32768</span><span class="p">,</span> <span class="s1">&#39;chat completion&#39;</span><span class="p">,</span> <span class="s1">&#39;Perplexity&#39;</span><span class="p">,),</span>
-</span><span id="L-264"><a href="#L-264"><span class="linenos">264</span></a>            <span class="s1">&#39;llama-3-sonar-small-32k-online&#39;</span><span class="p">:</span> <span class="n">ModelInfo</span><span class="p">(</span><span class="s1">&#39;7B&#39;</span><span class="p">,</span> <span class="mi">32768</span><span class="p">,</span> <span class="s1">&#39;chat completion&#39;</span><span class="p">,</span> <span class="s1">&#39;Perplexity&#39;</span><span class="p">,),</span>
-</span><span id="L-265"><a href="#L-265"><span class="linenos">265</span></a>            <span class="s1">&#39;mistral-7b-instruct&#39;</span><span class="p">:</span> <span class="n">ModelInfo</span><span class="p">(</span><span class="s1">&#39;7B&#39;</span><span class="p">,</span> <span class="mi">16384</span><span class="p">,</span> <span class="s1">&#39;chat completion&#39;</span><span class="p">,</span> <span class="s1">&#39;open source&#39;</span><span class="p">,),</span>
-</span><span id="L-266"><a href="#L-266"><span class="linenos">266</span></a>            <span class="s1">&#39;mixtral-8x7b-instruct&#39;</span><span class="p">:</span> <span class="n">ModelInfo</span><span class="p">(</span><span class="s1">&#39;8x7B&#39;</span><span class="p">,</span> <span class="mi">16384</span><span class="p">,</span> <span class="s1">&#39;chat completion&#39;</span><span class="p">,</span> <span class="s1">&#39;open source&#39;</span><span class="p">,),</span>
-</span><span id="L-267"><a href="#L-267"><span class="linenos">267</span></a>        <span class="p">})</span>
+</span><span id="L-258"><a href="#L-258"><span class="linenos">258</span></a>            <span class="s1">&#39;llama-3-70b-instruct&#39;</span><span class="p">:</span> <span class="n">ModelInfo</span><span class="p">(</span><span class="s1">&#39;70B&#39;</span><span class="p">,</span> <span class="mi">8192</span><span class="p">,</span> <span class="s1">&#39;chat completion&#39;</span><span class="p">,</span> <span class="s1">&#39;open source&#39;</span><span class="p">),</span>
+</span><span id="L-259"><a href="#L-259"><span class="linenos">259</span></a>            <span class="s1">&#39;llama-3-8b-instruct&#39;</span><span class="p">:</span> <span class="n">ModelInfo</span><span class="p">(</span><span class="s1">&#39;8B&#39;</span><span class="p">,</span> <span class="mi">8192</span><span class="p">,</span> <span class="s1">&#39;chat completion&#39;</span><span class="p">,</span> <span class="s1">&#39;open source&#39;</span><span class="p">),</span>
+</span><span id="L-260"><a href="#L-260"><span class="linenos">260</span></a>            <span class="s1">&#39;llama-3-sonar-large-32k-chat&#39;</span><span class="p">:</span> <span class="n">ModelInfo</span><span class="p">(</span><span class="s1">&#39;8x7B&#39;</span><span class="p">,</span> <span class="mi">32768</span><span class="p">,</span> <span class="s1">&#39;chat completion&#39;</span><span class="p">,</span> <span class="s1">&#39;Perplexity&#39;</span><span class="p">,),</span>
+</span><span id="L-261"><a href="#L-261"><span class="linenos">261</span></a>            <span class="s1">&#39;llama-3-sonar-large-32k-online&#39;</span><span class="p">:</span> <span class="n">ModelInfo</span><span class="p">(</span><span class="s1">&#39;8x7B&#39;</span><span class="p">,</span> <span class="mi">32768</span><span class="p">,</span> <span class="s1">&#39;chat completion&#39;</span><span class="p">,</span> <span class="s1">&#39;Perplexity&#39;</span><span class="p">,),</span>
+</span><span id="L-262"><a href="#L-262"><span class="linenos">262</span></a>            <span class="s1">&#39;llama-3-sonar-small-32k-chat&#39;</span><span class="p">:</span> <span class="n">ModelInfo</span><span class="p">(</span><span class="s1">&#39;7B&#39;</span><span class="p">,</span> <span class="mi">32768</span><span class="p">,</span> <span class="s1">&#39;chat completion&#39;</span><span class="p">,</span> <span class="s1">&#39;Perplexity&#39;</span><span class="p">,),</span>
+</span><span id="L-263"><a href="#L-263"><span class="linenos">263</span></a>            <span class="s1">&#39;llama-3-sonar-small-32k-online&#39;</span><span class="p">:</span> <span class="n">ModelInfo</span><span class="p">(</span><span class="s1">&#39;7B&#39;</span><span class="p">,</span> <span class="mi">32768</span><span class="p">,</span> <span class="s1">&#39;chat completion&#39;</span><span class="p">,</span> <span class="s1">&#39;Perplexity&#39;</span><span class="p">,),</span>
+</span><span id="L-264"><a href="#L-264"><span class="linenos">264</span></a>        <span class="p">})</span>
+</span><span id="L-265"><a href="#L-265"><span class="linenos">265</span></a>
+</span><span id="L-266"><a href="#L-266"><span class="linenos">266</span></a>        <span class="k">return</span> <span class="n">supportedModels</span>
+</span><span id="L-267"><a href="#L-267"><span class="linenos">267</span></a>
 </span><span id="L-268"><a href="#L-268"><span class="linenos">268</span></a>
-</span><span id="L-269"><a href="#L-269"><span class="linenos">269</span></a>        <span class="k">return</span> <span class="n">supportedModels</span>
-</span><span id="L-270"><a href="#L-270"><span class="linenos">270</span></a>
-</span><span id="L-271"><a href="#L-271"><span class="linenos">271</span></a>
-</span><span id="L-272"><a href="#L-272"><span class="linenos">272</span></a>    <span class="nd">@property</span>
-</span><span id="L-273"><a href="#L-273"><span class="linenos">273</span></a>    <span class="k">def</span> <span class="nf">model</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">str</span><span class="p">:</span>
-</span><span id="L-274"><a href="#L-274"><span class="linenos">274</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
-</span><span id="L-275"><a href="#L-275"><span class="linenos">275</span></a><span class="sd">        Return the model the client uses for requesting responses from the</span>
-</span><span id="L-276"><a href="#L-276"><span class="linenos">276</span></a><span class="sd">        service provider.  Its default value is:  `PERPLEXITY_DEFAULT_MODEL`.</span>
-</span><span id="L-277"><a href="#L-277"><span class="linenos">277</span></a><span class="sd">        &quot;&quot;&quot;</span>
-</span><span id="L-278"><a href="#L-278"><span class="linenos">278</span></a>        <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_model</span>
-</span><span id="L-279"><a href="#L-279"><span class="linenos">279</span></a>
-</span><span id="L-280"><a href="#L-280"><span class="linenos">280</span></a>    <span class="nd">@model</span><span class="o">.</span><span class="n">setter</span>
-</span><span id="L-281"><a href="#L-281"><span class="linenos">281</span></a>    <span class="k">def</span> <span class="nf">model</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">value</span><span class="p">:</span> <span class="nb">str</span><span class="p">):</span>
-</span><span id="L-282"><a href="#L-282"><span class="linenos">282</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
-</span><span id="L-283"><a href="#L-283"><span class="linenos">283</span></a><span class="sd">        Set the model to use for generating responses.</span>
-</span><span id="L-284"><a href="#L-284"><span class="linenos">284</span></a>
-</span><span id="L-285"><a href="#L-285"><span class="linenos">285</span></a><span class="sd">        Arguments</span>
-</span><span id="L-286"><a href="#L-286"><span class="linenos">286</span></a><span class="sd">        ---------</span>
-</span><span id="L-287"><a href="#L-287"><span class="linenos">287</span></a><span class="sd">            value</span>
-</span><span id="L-288"><a href="#L-288"><span class="linenos">288</span></a><span class="sd">        A string matching one of the supported models.</span>
-</span><span id="L-289"><a href="#L-289"><span class="linenos">289</span></a>
-</span><span id="L-290"><a href="#L-290"><span class="linenos">290</span></a><span class="sd">        Returns</span>
-</span><span id="L-291"><a href="#L-291"><span class="linenos">291</span></a><span class="sd">        -------</span>
-</span><span id="L-292"><a href="#L-292"><span class="linenos">292</span></a><span class="sd">        `None` - setter method decorated as a property.</span>
-</span><span id="L-293"><a href="#L-293"><span class="linenos">293</span></a>
-</span><span id="L-294"><a href="#L-294"><span class="linenos">294</span></a><span class="sd">        Raises</span>
-</span><span id="L-295"><a href="#L-295"><span class="linenos">295</span></a><span class="sd">        ------</span>
-</span><span id="L-296"><a href="#L-296"><span class="linenos">296</span></a><span class="sd">        `perplexipy.PerplexityClientError` if the `value` isn&#39;t included in the list of</span>
-</span><span id="L-297"><a href="#L-297"><span class="linenos">297</span></a><span class="sd">        supported models.</span>
-</span><span id="L-298"><a href="#L-298"><span class="linenos">298</span></a><span class="sd">        &quot;&quot;&quot;</span>
-</span><span id="L-299"><a href="#L-299"><span class="linenos">299</span></a>        <span class="k">if</span> <span class="ow">not</span> <span class="n">value</span><span class="p">:</span>
-</span><span id="L-300"><a href="#L-300"><span class="linenos">300</span></a>            <span class="k">raise</span> <span class="n">PerplexityClientError</span><span class="p">(</span><span class="s1">&#39;value cannot be None&#39;</span><span class="p">)</span>
-</span><span id="L-301"><a href="#L-301"><span class="linenos">301</span></a>
-</span><span id="L-302"><a href="#L-302"><span class="linenos">302</span></a>        <span class="n">models</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">models</span>
-</span><span id="L-303"><a href="#L-303"><span class="linenos">303</span></a>        <span class="k">if</span> <span class="ow">not</span> <span class="bp">self</span><span class="o">.</span><span class="n">_unitTest</span><span class="p">:</span>
-</span><span id="L-304"><a href="#L-304"><span class="linenos">304</span></a>            <span class="k">if</span> <span class="n">value</span> <span class="ow">not</span> <span class="ow">in</span> <span class="n">models</span><span class="p">:</span>
-</span><span id="L-305"><a href="#L-305"><span class="linenos">305</span></a>                <span class="k">raise</span> <span class="n">PerplexityClientError</span><span class="p">(</span><span class="s1">&#39;value = </span><span class="si">%s</span><span class="s1"> error; supported models: </span><span class="si">%s</span><span class="s1">&#39;</span> <span class="o">%</span> <span class="p">(</span><span class="n">value</span><span class="p">,</span> <span class="s1">&#39;, &#39;</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="n">models</span><span class="p">)))</span>
-</span><span id="L-306"><a href="#L-306"><span class="linenos">306</span></a>
-</span><span id="L-307"><a href="#L-307"><span class="linenos">307</span></a>        <span class="bp">self</span><span class="o">.</span><span class="n">_model</span> <span class="o">=</span> <span class="n">value</span>
-</span><span id="L-308"><a href="#L-308"><span class="linenos">308</span></a>
-</span><span id="L-309"><a href="#L-309"><span class="linenos">309</span></a>        <span class="c1"># Validate that the model still works, revert otherwise</span>
-</span><span id="L-310"><a href="#L-310"><span class="linenos">310</span></a>        <span class="k">try</span><span class="p">:</span>
-</span><span id="L-311"><a href="#L-311"><span class="linenos">311</span></a>            <span class="bp">self</span><span class="o">.</span><span class="n">query</span><span class="p">(</span><span class="s1">&#39;Concise answer: what color is the sky?&#39;</span><span class="p">)</span>
-</span><span id="L-312"><a href="#L-312"><span class="linenos">312</span></a>        <span class="k">except</span><span class="p">:</span>
-</span><span id="L-313"><a href="#L-313"><span class="linenos">313</span></a>            <span class="k">raise</span> <span class="n">PerplexityClientError</span><span class="p">(</span><span class="s1">&#39;model </span><span class="si">%s</span><span class="s1"> no longer available in underlying API&#39;</span><span class="p">)</span>
+</span><span id="L-269"><a href="#L-269"><span class="linenos">269</span></a>    <span class="nd">@property</span>
+</span><span id="L-270"><a href="#L-270"><span class="linenos">270</span></a>    <span class="k">def</span> <span class="nf">model</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">str</span><span class="p">:</span>
+</span><span id="L-271"><a href="#L-271"><span class="linenos">271</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
+</span><span id="L-272"><a href="#L-272"><span class="linenos">272</span></a><span class="sd">        Return the model the client uses for requesting responses from the</span>
+</span><span id="L-273"><a href="#L-273"><span class="linenos">273</span></a><span class="sd">        service provider.  Its default value is:  `PERPLEXITY_DEFAULT_MODEL`.</span>
+</span><span id="L-274"><a href="#L-274"><span class="linenos">274</span></a><span class="sd">        &quot;&quot;&quot;</span>
+</span><span id="L-275"><a href="#L-275"><span class="linenos">275</span></a>        <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_model</span>
+</span><span id="L-276"><a href="#L-276"><span class="linenos">276</span></a>
+</span><span id="L-277"><a href="#L-277"><span class="linenos">277</span></a>    <span class="nd">@model</span><span class="o">.</span><span class="n">setter</span>
+</span><span id="L-278"><a href="#L-278"><span class="linenos">278</span></a>    <span class="k">def</span> <span class="nf">model</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">value</span><span class="p">:</span> <span class="nb">str</span><span class="p">):</span>
+</span><span id="L-279"><a href="#L-279"><span class="linenos">279</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
+</span><span id="L-280"><a href="#L-280"><span class="linenos">280</span></a><span class="sd">        Set the model to use for generating responses.</span>
+</span><span id="L-281"><a href="#L-281"><span class="linenos">281</span></a>
+</span><span id="L-282"><a href="#L-282"><span class="linenos">282</span></a><span class="sd">        Arguments</span>
+</span><span id="L-283"><a href="#L-283"><span class="linenos">283</span></a><span class="sd">        ---------</span>
+</span><span id="L-284"><a href="#L-284"><span class="linenos">284</span></a><span class="sd">            value</span>
+</span><span id="L-285"><a href="#L-285"><span class="linenos">285</span></a><span class="sd">        A string matching one of the supported models.</span>
+</span><span id="L-286"><a href="#L-286"><span class="linenos">286</span></a>
+</span><span id="L-287"><a href="#L-287"><span class="linenos">287</span></a><span class="sd">        Returns</span>
+</span><span id="L-288"><a href="#L-288"><span class="linenos">288</span></a><span class="sd">        -------</span>
+</span><span id="L-289"><a href="#L-289"><span class="linenos">289</span></a><span class="sd">        `None` - setter method decorated as a property.</span>
+</span><span id="L-290"><a href="#L-290"><span class="linenos">290</span></a>
+</span><span id="L-291"><a href="#L-291"><span class="linenos">291</span></a><span class="sd">        Raises</span>
+</span><span id="L-292"><a href="#L-292"><span class="linenos">292</span></a><span class="sd">        ------</span>
+</span><span id="L-293"><a href="#L-293"><span class="linenos">293</span></a><span class="sd">        `perplexipy.PerplexityClientError` if the `value` isn&#39;t included in the list of</span>
+</span><span id="L-294"><a href="#L-294"><span class="linenos">294</span></a><span class="sd">        supported models.</span>
+</span><span id="L-295"><a href="#L-295"><span class="linenos">295</span></a><span class="sd">        &quot;&quot;&quot;</span>
+</span><span id="L-296"><a href="#L-296"><span class="linenos">296</span></a>        <span class="k">if</span> <span class="ow">not</span> <span class="n">value</span><span class="p">:</span>
+</span><span id="L-297"><a href="#L-297"><span class="linenos">297</span></a>            <span class="k">raise</span> <span class="n">PerplexityClientError</span><span class="p">(</span><span class="s1">&#39;value cannot be None&#39;</span><span class="p">)</span>
+</span><span id="L-298"><a href="#L-298"><span class="linenos">298</span></a>
+</span><span id="L-299"><a href="#L-299"><span class="linenos">299</span></a>        <span class="n">models</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">models</span>
+</span><span id="L-300"><a href="#L-300"><span class="linenos">300</span></a>        <span class="k">if</span> <span class="ow">not</span> <span class="bp">self</span><span class="o">.</span><span class="n">_unitTest</span><span class="p">:</span>
+</span><span id="L-301"><a href="#L-301"><span class="linenos">301</span></a>            <span class="k">if</span> <span class="n">value</span> <span class="ow">not</span> <span class="ow">in</span> <span class="n">models</span><span class="p">:</span>
+</span><span id="L-302"><a href="#L-302"><span class="linenos">302</span></a>                <span class="k">raise</span> <span class="n">PerplexityClientError</span><span class="p">(</span><span class="s1">&#39;value = </span><span class="si">%s</span><span class="s1"> error; supported models: </span><span class="si">%s</span><span class="s1">&#39;</span> <span class="o">%</span> <span class="p">(</span><span class="n">value</span><span class="p">,</span> <span class="s1">&#39;, &#39;</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="n">models</span><span class="p">)))</span>
+</span><span id="L-303"><a href="#L-303"><span class="linenos">303</span></a>
+</span><span id="L-304"><a href="#L-304"><span class="linenos">304</span></a>        <span class="bp">self</span><span class="o">.</span><span class="n">_model</span> <span class="o">=</span> <span class="n">value</span>
+</span><span id="L-305"><a href="#L-305"><span class="linenos">305</span></a>
+</span><span id="L-306"><a href="#L-306"><span class="linenos">306</span></a>        <span class="c1"># Validate that the model still works, revert otherwise</span>
+</span><span id="L-307"><a href="#L-307"><span class="linenos">307</span></a>        <span class="k">try</span><span class="p">:</span>
+</span><span id="L-308"><a href="#L-308"><span class="linenos">308</span></a>            <span class="bp">self</span><span class="o">.</span><span class="n">query</span><span class="p">(</span><span class="s1">&#39;Concise answer: what color is the sky?&#39;</span><span class="p">)</span>
+</span><span id="L-309"><a href="#L-309"><span class="linenos">309</span></a>        <span class="k">except</span><span class="p">:</span>
+</span><span id="L-310"><a href="#L-310"><span class="linenos">310</span></a>            <span class="k">raise</span> <span class="n">PerplexityClientError</span><span class="p">(</span><span class="s1">&#39;model </span><span class="si">%s</span><span class="s1"> no longer available in underlying API&#39;</span><span class="p">)</span>
 </span></pre></div>
 
 
@@ -832,62 +829,59 @@ <h5>Inherited Members</h5>
 </span><span id="PerplexityClient-256"><a href="#PerplexityClient-256"><span class="linenos">256</span></a><span class="sd">        - `availability`</span>
 </span><span id="PerplexityClient-257"><a href="#PerplexityClient-257"><span class="linenos">257</span></a><span class="sd">        &quot;&quot;&quot;</span>
 </span><span id="PerplexityClient-258"><a href="#PerplexityClient-258"><span class="linenos">258</span></a>        <span class="n">supportedModels</span> <span class="o">=</span> <span class="n">OrderedDict</span><span class="p">({</span>
-</span><span id="PerplexityClient-259"><a href="#PerplexityClient-259"><span class="linenos">259</span></a>            <span class="s1">&#39;codellama-70b-instruct&#39;</span><span class="p">:</span> <span class="n">ModelInfo</span><span class="p">(</span><span class="s1">&#39;70B&#39;</span><span class="p">,</span> <span class="mi">16384</span><span class="p">,</span> <span class="s1">&#39;chat completion&#39;</span><span class="p">,</span> <span class="s1">&#39;open source&#39;</span><span class="p">,),</span>
-</span><span id="PerplexityClient-260"><a href="#PerplexityClient-260"><span class="linenos">260</span></a>            <span class="s1">&#39;llama-3-70b-instruct&#39;</span><span class="p">:</span> <span class="n">ModelInfo</span><span class="p">(</span><span class="s1">&#39;70B&#39;</span><span class="p">,</span> <span class="mi">8192</span><span class="p">,</span> <span class="s1">&#39;chat completion&#39;</span><span class="p">,</span> <span class="s1">&#39;open source&#39;</span><span class="p">),</span>
-</span><span id="PerplexityClient-261"><a href="#PerplexityClient-261"><span class="linenos">261</span></a>            <span class="s1">&#39;llama-3-8b-instruct&#39;</span><span class="p">:</span> <span class="n">ModelInfo</span><span class="p">(</span><span class="s1">&#39;8B&#39;</span><span class="p">,</span> <span class="mi">8192</span><span class="p">,</span> <span class="s1">&#39;chat completion&#39;</span><span class="p">,</span> <span class="s1">&#39;open source&#39;</span><span class="p">),</span>
-</span><span id="PerplexityClient-262"><a href="#PerplexityClient-262"><span class="linenos">262</span></a>            <span class="s1">&#39;llama-3-sonar-large-32k-chat&#39;</span><span class="p">:</span> <span class="n">ModelInfo</span><span class="p">(</span><span class="s1">&#39;8x7B&#39;</span><span class="p">,</span> <span class="mi">32768</span><span class="p">,</span> <span class="s1">&#39;chat completion&#39;</span><span class="p">,</span> <span class="s1">&#39;Perplexity&#39;</span><span class="p">,),</span>
-</span><span id="PerplexityClient-263"><a href="#PerplexityClient-263"><span class="linenos">263</span></a>            <span class="s1">&#39;llama-3-sonar-large-32k-online&#39;</span><span class="p">:</span> <span class="n">ModelInfo</span><span class="p">(</span><span class="s1">&#39;8x7B&#39;</span><span class="p">,</span> <span class="mi">32768</span><span class="p">,</span> <span class="s1">&#39;chat completion&#39;</span><span class="p">,</span> <span class="s1">&#39;Perplexity&#39;</span><span class="p">,),</span>
-</span><span id="PerplexityClient-264"><a href="#PerplexityClient-264"><span class="linenos">264</span></a>            <span class="s1">&#39;llama-3-sonar-small-32k-chat&#39;</span><span class="p">:</span> <span class="n">ModelInfo</span><span class="p">(</span><span class="s1">&#39;7B&#39;</span><span class="p">,</span> <span class="mi">32768</span><span class="p">,</span> <span class="s1">&#39;chat completion&#39;</span><span class="p">,</span> <span class="s1">&#39;Perplexity&#39;</span><span class="p">,),</span>
-</span><span id="PerplexityClient-265"><a href="#PerplexityClient-265"><span class="linenos">265</span></a>            <span class="s1">&#39;llama-3-sonar-small-32k-online&#39;</span><span class="p">:</span> <span class="n">ModelInfo</span><span class="p">(</span><span class="s1">&#39;7B&#39;</span><span class="p">,</span> <span class="mi">32768</span><span class="p">,</span> <span class="s1">&#39;chat completion&#39;</span><span class="p">,</span> <span class="s1">&#39;Perplexity&#39;</span><span class="p">,),</span>
-</span><span id="PerplexityClient-266"><a href="#PerplexityClient-266"><span class="linenos">266</span></a>            <span class="s1">&#39;mistral-7b-instruct&#39;</span><span class="p">:</span> <span class="n">ModelInfo</span><span class="p">(</span><span class="s1">&#39;7B&#39;</span><span class="p">,</span> <span class="mi">16384</span><span class="p">,</span> <span class="s1">&#39;chat completion&#39;</span><span class="p">,</span> <span class="s1">&#39;open source&#39;</span><span class="p">,),</span>
-</span><span id="PerplexityClient-267"><a href="#PerplexityClient-267"><span class="linenos">267</span></a>            <span class="s1">&#39;mixtral-8x7b-instruct&#39;</span><span class="p">:</span> <span class="n">ModelInfo</span><span class="p">(</span><span class="s1">&#39;8x7B&#39;</span><span class="p">,</span> <span class="mi">16384</span><span class="p">,</span> <span class="s1">&#39;chat completion&#39;</span><span class="p">,</span> <span class="s1">&#39;open source&#39;</span><span class="p">,),</span>
-</span><span id="PerplexityClient-268"><a href="#PerplexityClient-268"><span class="linenos">268</span></a>        <span class="p">})</span>
+</span><span id="PerplexityClient-259"><a href="#PerplexityClient-259"><span class="linenos">259</span></a>            <span class="s1">&#39;llama-3-70b-instruct&#39;</span><span class="p">:</span> <span class="n">ModelInfo</span><span class="p">(</span><span class="s1">&#39;70B&#39;</span><span class="p">,</span> <span class="mi">8192</span><span class="p">,</span> <span class="s1">&#39;chat completion&#39;</span><span class="p">,</span> <span class="s1">&#39;open source&#39;</span><span class="p">),</span>
+</span><span id="PerplexityClient-260"><a href="#PerplexityClient-260"><span class="linenos">260</span></a>            <span class="s1">&#39;llama-3-8b-instruct&#39;</span><span class="p">:</span> <span class="n">ModelInfo</span><span class="p">(</span><span class="s1">&#39;8B&#39;</span><span class="p">,</span> <span class="mi">8192</span><span class="p">,</span> <span class="s1">&#39;chat completion&#39;</span><span class="p">,</span> <span class="s1">&#39;open source&#39;</span><span class="p">),</span>
+</span><span id="PerplexityClient-261"><a href="#PerplexityClient-261"><span class="linenos">261</span></a>            <span class="s1">&#39;llama-3-sonar-large-32k-chat&#39;</span><span class="p">:</span> <span class="n">ModelInfo</span><span class="p">(</span><span class="s1">&#39;8x7B&#39;</span><span class="p">,</span> <span class="mi">32768</span><span class="p">,</span> <span class="s1">&#39;chat completion&#39;</span><span class="p">,</span> <span class="s1">&#39;Perplexity&#39;</span><span class="p">,),</span>
+</span><span id="PerplexityClient-262"><a href="#PerplexityClient-262"><span class="linenos">262</span></a>            <span class="s1">&#39;llama-3-sonar-large-32k-online&#39;</span><span class="p">:</span> <span class="n">ModelInfo</span><span class="p">(</span><span class="s1">&#39;8x7B&#39;</span><span class="p">,</span> <span class="mi">32768</span><span class="p">,</span> <span class="s1">&#39;chat completion&#39;</span><span class="p">,</span> <span class="s1">&#39;Perplexity&#39;</span><span class="p">,),</span>
+</span><span id="PerplexityClient-263"><a href="#PerplexityClient-263"><span class="linenos">263</span></a>            <span class="s1">&#39;llama-3-sonar-small-32k-chat&#39;</span><span class="p">:</span> <span class="n">ModelInfo</span><span class="p">(</span><span class="s1">&#39;7B&#39;</span><span class="p">,</span> <span class="mi">32768</span><span class="p">,</span> <span class="s1">&#39;chat completion&#39;</span><span class="p">,</span> <span class="s1">&#39;Perplexity&#39;</span><span class="p">,),</span>
+</span><span id="PerplexityClient-264"><a href="#PerplexityClient-264"><span class="linenos">264</span></a>            <span class="s1">&#39;llama-3-sonar-small-32k-online&#39;</span><span class="p">:</span> <span class="n">ModelInfo</span><span class="p">(</span><span class="s1">&#39;7B&#39;</span><span class="p">,</span> <span class="mi">32768</span><span class="p">,</span> <span class="s1">&#39;chat completion&#39;</span><span class="p">,</span> <span class="s1">&#39;Perplexity&#39;</span><span class="p">,),</span>
+</span><span id="PerplexityClient-265"><a href="#PerplexityClient-265"><span class="linenos">265</span></a>        <span class="p">})</span>
+</span><span id="PerplexityClient-266"><a href="#PerplexityClient-266"><span class="linenos">266</span></a>
+</span><span id="PerplexityClient-267"><a href="#PerplexityClient-267"><span class="linenos">267</span></a>        <span class="k">return</span> <span class="n">supportedModels</span>
+</span><span id="PerplexityClient-268"><a href="#PerplexityClient-268"><span class="linenos">268</span></a>
 </span><span id="PerplexityClient-269"><a href="#PerplexityClient-269"><span class="linenos">269</span></a>
-</span><span id="PerplexityClient-270"><a href="#PerplexityClient-270"><span class="linenos">270</span></a>        <span class="k">return</span> <span class="n">supportedModels</span>
-</span><span id="PerplexityClient-271"><a href="#PerplexityClient-271"><span class="linenos">271</span></a>
-</span><span id="PerplexityClient-272"><a href="#PerplexityClient-272"><span class="linenos">272</span></a>
-</span><span id="PerplexityClient-273"><a href="#PerplexityClient-273"><span class="linenos">273</span></a>    <span class="nd">@property</span>
-</span><span id="PerplexityClient-274"><a href="#PerplexityClient-274"><span class="linenos">274</span></a>    <span class="k">def</span> <span class="nf">model</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">str</span><span class="p">:</span>
-</span><span id="PerplexityClient-275"><a href="#PerplexityClient-275"><span class="linenos">275</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
-</span><span id="PerplexityClient-276"><a href="#PerplexityClient-276"><span class="linenos">276</span></a><span class="sd">        Return the model the client uses for requesting responses from the</span>
-</span><span id="PerplexityClient-277"><a href="#PerplexityClient-277"><span class="linenos">277</span></a><span class="sd">        service provider.  Its default value is:  `PERPLEXITY_DEFAULT_MODEL`.</span>
-</span><span id="PerplexityClient-278"><a href="#PerplexityClient-278"><span class="linenos">278</span></a><span class="sd">        &quot;&quot;&quot;</span>
-</span><span id="PerplexityClient-279"><a href="#PerplexityClient-279"><span class="linenos">279</span></a>        <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_model</span>
-</span><span id="PerplexityClient-280"><a href="#PerplexityClient-280"><span class="linenos">280</span></a>
-</span><span id="PerplexityClient-281"><a href="#PerplexityClient-281"><span class="linenos">281</span></a>    <span class="nd">@model</span><span class="o">.</span><span class="n">setter</span>
-</span><span id="PerplexityClient-282"><a href="#PerplexityClient-282"><span class="linenos">282</span></a>    <span class="k">def</span> <span class="nf">model</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">value</span><span class="p">:</span> <span class="nb">str</span><span class="p">):</span>
-</span><span id="PerplexityClient-283"><a href="#PerplexityClient-283"><span class="linenos">283</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
-</span><span id="PerplexityClient-284"><a href="#PerplexityClient-284"><span class="linenos">284</span></a><span class="sd">        Set the model to use for generating responses.</span>
-</span><span id="PerplexityClient-285"><a href="#PerplexityClient-285"><span class="linenos">285</span></a>
-</span><span id="PerplexityClient-286"><a href="#PerplexityClient-286"><span class="linenos">286</span></a><span class="sd">        Arguments</span>
-</span><span id="PerplexityClient-287"><a href="#PerplexityClient-287"><span class="linenos">287</span></a><span class="sd">        ---------</span>
-</span><span id="PerplexityClient-288"><a href="#PerplexityClient-288"><span class="linenos">288</span></a><span class="sd">            value</span>
-</span><span id="PerplexityClient-289"><a href="#PerplexityClient-289"><span class="linenos">289</span></a><span class="sd">        A string matching one of the supported models.</span>
-</span><span id="PerplexityClient-290"><a href="#PerplexityClient-290"><span class="linenos">290</span></a>
-</span><span id="PerplexityClient-291"><a href="#PerplexityClient-291"><span class="linenos">291</span></a><span class="sd">        Returns</span>
-</span><span id="PerplexityClient-292"><a href="#PerplexityClient-292"><span class="linenos">292</span></a><span class="sd">        -------</span>
-</span><span id="PerplexityClient-293"><a href="#PerplexityClient-293"><span class="linenos">293</span></a><span class="sd">        `None` - setter method decorated as a property.</span>
-</span><span id="PerplexityClient-294"><a href="#PerplexityClient-294"><span class="linenos">294</span></a>
-</span><span id="PerplexityClient-295"><a href="#PerplexityClient-295"><span class="linenos">295</span></a><span class="sd">        Raises</span>
-</span><span id="PerplexityClient-296"><a href="#PerplexityClient-296"><span class="linenos">296</span></a><span class="sd">        ------</span>
-</span><span id="PerplexityClient-297"><a href="#PerplexityClient-297"><span class="linenos">297</span></a><span class="sd">        `perplexipy.PerplexityClientError` if the `value` isn&#39;t included in the list of</span>
-</span><span id="PerplexityClient-298"><a href="#PerplexityClient-298"><span class="linenos">298</span></a><span class="sd">        supported models.</span>
-</span><span id="PerplexityClient-299"><a href="#PerplexityClient-299"><span class="linenos">299</span></a><span class="sd">        &quot;&quot;&quot;</span>
-</span><span id="PerplexityClient-300"><a href="#PerplexityClient-300"><span class="linenos">300</span></a>        <span class="k">if</span> <span class="ow">not</span> <span class="n">value</span><span class="p">:</span>
-</span><span id="PerplexityClient-301"><a href="#PerplexityClient-301"><span class="linenos">301</span></a>            <span class="k">raise</span> <span class="n">PerplexityClientError</span><span class="p">(</span><span class="s1">&#39;value cannot be None&#39;</span><span class="p">)</span>
-</span><span id="PerplexityClient-302"><a href="#PerplexityClient-302"><span class="linenos">302</span></a>
-</span><span id="PerplexityClient-303"><a href="#PerplexityClient-303"><span class="linenos">303</span></a>        <span class="n">models</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">models</span>
-</span><span id="PerplexityClient-304"><a href="#PerplexityClient-304"><span class="linenos">304</span></a>        <span class="k">if</span> <span class="ow">not</span> <span class="bp">self</span><span class="o">.</span><span class="n">_unitTest</span><span class="p">:</span>
-</span><span id="PerplexityClient-305"><a href="#PerplexityClient-305"><span class="linenos">305</span></a>            <span class="k">if</span> <span class="n">value</span> <span class="ow">not</span> <span class="ow">in</span> <span class="n">models</span><span class="p">:</span>
-</span><span id="PerplexityClient-306"><a href="#PerplexityClient-306"><span class="linenos">306</span></a>                <span class="k">raise</span> <span class="n">PerplexityClientError</span><span class="p">(</span><span class="s1">&#39;value = </span><span class="si">%s</span><span class="s1"> error; supported models: </span><span class="si">%s</span><span class="s1">&#39;</span> <span class="o">%</span> <span class="p">(</span><span class="n">value</span><span class="p">,</span> <span class="s1">&#39;, &#39;</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="n">models</span><span class="p">)))</span>
-</span><span id="PerplexityClient-307"><a href="#PerplexityClient-307"><span class="linenos">307</span></a>
-</span><span id="PerplexityClient-308"><a href="#PerplexityClient-308"><span class="linenos">308</span></a>        <span class="bp">self</span><span class="o">.</span><span class="n">_model</span> <span class="o">=</span> <span class="n">value</span>
-</span><span id="PerplexityClient-309"><a href="#PerplexityClient-309"><span class="linenos">309</span></a>
-</span><span id="PerplexityClient-310"><a href="#PerplexityClient-310"><span class="linenos">310</span></a>        <span class="c1"># Validate that the model still works, revert otherwise</span>
-</span><span id="PerplexityClient-311"><a href="#PerplexityClient-311"><span class="linenos">311</span></a>        <span class="k">try</span><span class="p">:</span>
-</span><span id="PerplexityClient-312"><a href="#PerplexityClient-312"><span class="linenos">312</span></a>            <span class="bp">self</span><span class="o">.</span><span class="n">query</span><span class="p">(</span><span class="s1">&#39;Concise answer: what color is the sky?&#39;</span><span class="p">)</span>
-</span><span id="PerplexityClient-313"><a href="#PerplexityClient-313"><span class="linenos">313</span></a>        <span class="k">except</span><span class="p">:</span>
-</span><span id="PerplexityClient-314"><a href="#PerplexityClient-314"><span class="linenos">314</span></a>            <span class="k">raise</span> <span class="n">PerplexityClientError</span><span class="p">(</span><span class="s1">&#39;model </span><span class="si">%s</span><span class="s1"> no longer available in underlying API&#39;</span><span class="p">)</span>
+</span><span id="PerplexityClient-270"><a href="#PerplexityClient-270"><span class="linenos">270</span></a>    <span class="nd">@property</span>
+</span><span id="PerplexityClient-271"><a href="#PerplexityClient-271"><span class="linenos">271</span></a>    <span class="k">def</span> <span class="nf">model</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">str</span><span class="p">:</span>
+</span><span id="PerplexityClient-272"><a href="#PerplexityClient-272"><span class="linenos">272</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
+</span><span id="PerplexityClient-273"><a href="#PerplexityClient-273"><span class="linenos">273</span></a><span class="sd">        Return the model the client uses for requesting responses from the</span>
+</span><span id="PerplexityClient-274"><a href="#PerplexityClient-274"><span class="linenos">274</span></a><span class="sd">        service provider.  Its default value is:  `PERPLEXITY_DEFAULT_MODEL`.</span>
+</span><span id="PerplexityClient-275"><a href="#PerplexityClient-275"><span class="linenos">275</span></a><span class="sd">        &quot;&quot;&quot;</span>
+</span><span id="PerplexityClient-276"><a href="#PerplexityClient-276"><span class="linenos">276</span></a>        <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_model</span>
+</span><span id="PerplexityClient-277"><a href="#PerplexityClient-277"><span class="linenos">277</span></a>
+</span><span id="PerplexityClient-278"><a href="#PerplexityClient-278"><span class="linenos">278</span></a>    <span class="nd">@model</span><span class="o">.</span><span class="n">setter</span>
+</span><span id="PerplexityClient-279"><a href="#PerplexityClient-279"><span class="linenos">279</span></a>    <span class="k">def</span> <span class="nf">model</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">value</span><span class="p">:</span> <span class="nb">str</span><span class="p">):</span>
+</span><span id="PerplexityClient-280"><a href="#PerplexityClient-280"><span class="linenos">280</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
+</span><span id="PerplexityClient-281"><a href="#PerplexityClient-281"><span class="linenos">281</span></a><span class="sd">        Set the model to use for generating responses.</span>
+</span><span id="PerplexityClient-282"><a href="#PerplexityClient-282"><span class="linenos">282</span></a>
+</span><span id="PerplexityClient-283"><a href="#PerplexityClient-283"><span class="linenos">283</span></a><span class="sd">        Arguments</span>
+</span><span id="PerplexityClient-284"><a href="#PerplexityClient-284"><span class="linenos">284</span></a><span class="sd">        ---------</span>
+</span><span id="PerplexityClient-285"><a href="#PerplexityClient-285"><span class="linenos">285</span></a><span class="sd">            value</span>
+</span><span id="PerplexityClient-286"><a href="#PerplexityClient-286"><span class="linenos">286</span></a><span class="sd">        A string matching one of the supported models.</span>
+</span><span id="PerplexityClient-287"><a href="#PerplexityClient-287"><span class="linenos">287</span></a>
+</span><span id="PerplexityClient-288"><a href="#PerplexityClient-288"><span class="linenos">288</span></a><span class="sd">        Returns</span>
+</span><span id="PerplexityClient-289"><a href="#PerplexityClient-289"><span class="linenos">289</span></a><span class="sd">        -------</span>
+</span><span id="PerplexityClient-290"><a href="#PerplexityClient-290"><span class="linenos">290</span></a><span class="sd">        `None` - setter method decorated as a property.</span>
+</span><span id="PerplexityClient-291"><a href="#PerplexityClient-291"><span class="linenos">291</span></a>
+</span><span id="PerplexityClient-292"><a href="#PerplexityClient-292"><span class="linenos">292</span></a><span class="sd">        Raises</span>
+</span><span id="PerplexityClient-293"><a href="#PerplexityClient-293"><span class="linenos">293</span></a><span class="sd">        ------</span>
+</span><span id="PerplexityClient-294"><a href="#PerplexityClient-294"><span class="linenos">294</span></a><span class="sd">        `perplexipy.PerplexityClientError` if the `value` isn&#39;t included in the list of</span>
+</span><span id="PerplexityClient-295"><a href="#PerplexityClient-295"><span class="linenos">295</span></a><span class="sd">        supported models.</span>
+</span><span id="PerplexityClient-296"><a href="#PerplexityClient-296"><span class="linenos">296</span></a><span class="sd">        &quot;&quot;&quot;</span>
+</span><span id="PerplexityClient-297"><a href="#PerplexityClient-297"><span class="linenos">297</span></a>        <span class="k">if</span> <span class="ow">not</span> <span class="n">value</span><span class="p">:</span>
+</span><span id="PerplexityClient-298"><a href="#PerplexityClient-298"><span class="linenos">298</span></a>            <span class="k">raise</span> <span class="n">PerplexityClientError</span><span class="p">(</span><span class="s1">&#39;value cannot be None&#39;</span><span class="p">)</span>
+</span><span id="PerplexityClient-299"><a href="#PerplexityClient-299"><span class="linenos">299</span></a>
+</span><span id="PerplexityClient-300"><a href="#PerplexityClient-300"><span class="linenos">300</span></a>        <span class="n">models</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">models</span>
+</span><span id="PerplexityClient-301"><a href="#PerplexityClient-301"><span class="linenos">301</span></a>        <span class="k">if</span> <span class="ow">not</span> <span class="bp">self</span><span class="o">.</span><span class="n">_unitTest</span><span class="p">:</span>
+</span><span id="PerplexityClient-302"><a href="#PerplexityClient-302"><span class="linenos">302</span></a>            <span class="k">if</span> <span class="n">value</span> <span class="ow">not</span> <span class="ow">in</span> <span class="n">models</span><span class="p">:</span>
+</span><span id="PerplexityClient-303"><a href="#PerplexityClient-303"><span class="linenos">303</span></a>                <span class="k">raise</span> <span class="n">PerplexityClientError</span><span class="p">(</span><span class="s1">&#39;value = </span><span class="si">%s</span><span class="s1"> error; supported models: </span><span class="si">%s</span><span class="s1">&#39;</span> <span class="o">%</span> <span class="p">(</span><span class="n">value</span><span class="p">,</span> <span class="s1">&#39;, &#39;</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="n">models</span><span class="p">)))</span>
+</span><span id="PerplexityClient-304"><a href="#PerplexityClient-304"><span class="linenos">304</span></a>
+</span><span id="PerplexityClient-305"><a href="#PerplexityClient-305"><span class="linenos">305</span></a>        <span class="bp">self</span><span class="o">.</span><span class="n">_model</span> <span class="o">=</span> <span class="n">value</span>
+</span><span id="PerplexityClient-306"><a href="#PerplexityClient-306"><span class="linenos">306</span></a>
+</span><span id="PerplexityClient-307"><a href="#PerplexityClient-307"><span class="linenos">307</span></a>        <span class="c1"># Validate that the model still works, revert otherwise</span>
+</span><span id="PerplexityClient-308"><a href="#PerplexityClient-308"><span class="linenos">308</span></a>        <span class="k">try</span><span class="p">:</span>
+</span><span id="PerplexityClient-309"><a href="#PerplexityClient-309"><span class="linenos">309</span></a>            <span class="bp">self</span><span class="o">.</span><span class="n">query</span><span class="p">(</span><span class="s1">&#39;Concise answer: what color is the sky?&#39;</span><span class="p">)</span>
+</span><span id="PerplexityClient-310"><a href="#PerplexityClient-310"><span class="linenos">310</span></a>        <span class="k">except</span><span class="p">:</span>
+</span><span id="PerplexityClient-311"><a href="#PerplexityClient-311"><span class="linenos">311</span></a>            <span class="k">raise</span> <span class="n">PerplexityClientError</span><span class="p">(</span><span class="s1">&#39;model </span><span class="si">%s</span><span class="s1"> no longer available in underlying API&#39;</span><span class="p">)</span>
 </span></pre></div>
 
 
@@ -1290,18 +1284,15 @@ <h2 id="raises">Raises</h2>
 </span><span id="PerplexityClient.models-256"><a href="#PerplexityClient.models-256"><span class="linenos">256</span></a><span class="sd">        - `availability`</span>
 </span><span id="PerplexityClient.models-257"><a href="#PerplexityClient.models-257"><span class="linenos">257</span></a><span class="sd">        &quot;&quot;&quot;</span>
 </span><span id="PerplexityClient.models-258"><a href="#PerplexityClient.models-258"><span class="linenos">258</span></a>        <span class="n">supportedModels</span> <span class="o">=</span> <span class="n">OrderedDict</span><span class="p">({</span>
-</span><span id="PerplexityClient.models-259"><a href="#PerplexityClient.models-259"><span class="linenos">259</span></a>            <span class="s1">&#39;codellama-70b-instruct&#39;</span><span class="p">:</span> <span class="n">ModelInfo</span><span class="p">(</span><span class="s1">&#39;70B&#39;</span><span class="p">,</span> <span class="mi">16384</span><span class="p">,</span> <span class="s1">&#39;chat completion&#39;</span><span class="p">,</span> <span class="s1">&#39;open source&#39;</span><span class="p">,),</span>
-</span><span id="PerplexityClient.models-260"><a href="#PerplexityClient.models-260"><span class="linenos">260</span></a>            <span class="s1">&#39;llama-3-70b-instruct&#39;</span><span class="p">:</span> <span class="n">ModelInfo</span><span class="p">(</span><span class="s1">&#39;70B&#39;</span><span class="p">,</span> <span class="mi">8192</span><span class="p">,</span> <span class="s1">&#39;chat completion&#39;</span><span class="p">,</span> <span class="s1">&#39;open source&#39;</span><span class="p">),</span>
-</span><span id="PerplexityClient.models-261"><a href="#PerplexityClient.models-261"><span class="linenos">261</span></a>            <span class="s1">&#39;llama-3-8b-instruct&#39;</span><span class="p">:</span> <span class="n">ModelInfo</span><span class="p">(</span><span class="s1">&#39;8B&#39;</span><span class="p">,</span> <span class="mi">8192</span><span class="p">,</span> <span class="s1">&#39;chat completion&#39;</span><span class="p">,</span> <span class="s1">&#39;open source&#39;</span><span class="p">),</span>
-</span><span id="PerplexityClient.models-262"><a href="#PerplexityClient.models-262"><span class="linenos">262</span></a>            <span class="s1">&#39;llama-3-sonar-large-32k-chat&#39;</span><span class="p">:</span> <span class="n">ModelInfo</span><span class="p">(</span><span class="s1">&#39;8x7B&#39;</span><span class="p">,</span> <span class="mi">32768</span><span class="p">,</span> <span class="s1">&#39;chat completion&#39;</span><span class="p">,</span> <span class="s1">&#39;Perplexity&#39;</span><span class="p">,),</span>
-</span><span id="PerplexityClient.models-263"><a href="#PerplexityClient.models-263"><span class="linenos">263</span></a>            <span class="s1">&#39;llama-3-sonar-large-32k-online&#39;</span><span class="p">:</span> <span class="n">ModelInfo</span><span class="p">(</span><span class="s1">&#39;8x7B&#39;</span><span class="p">,</span> <span class="mi">32768</span><span class="p">,</span> <span class="s1">&#39;chat completion&#39;</span><span class="p">,</span> <span class="s1">&#39;Perplexity&#39;</span><span class="p">,),</span>
-</span><span id="PerplexityClient.models-264"><a href="#PerplexityClient.models-264"><span class="linenos">264</span></a>            <span class="s1">&#39;llama-3-sonar-small-32k-chat&#39;</span><span class="p">:</span> <span class="n">ModelInfo</span><span class="p">(</span><span class="s1">&#39;7B&#39;</span><span class="p">,</span> <span class="mi">32768</span><span class="p">,</span> <span class="s1">&#39;chat completion&#39;</span><span class="p">,</span> <span class="s1">&#39;Perplexity&#39;</span><span class="p">,),</span>
-</span><span id="PerplexityClient.models-265"><a href="#PerplexityClient.models-265"><span class="linenos">265</span></a>            <span class="s1">&#39;llama-3-sonar-small-32k-online&#39;</span><span class="p">:</span> <span class="n">ModelInfo</span><span class="p">(</span><span class="s1">&#39;7B&#39;</span><span class="p">,</span> <span class="mi">32768</span><span class="p">,</span> <span class="s1">&#39;chat completion&#39;</span><span class="p">,</span> <span class="s1">&#39;Perplexity&#39;</span><span class="p">,),</span>
-</span><span id="PerplexityClient.models-266"><a href="#PerplexityClient.models-266"><span class="linenos">266</span></a>            <span class="s1">&#39;mistral-7b-instruct&#39;</span><span class="p">:</span> <span class="n">ModelInfo</span><span class="p">(</span><span class="s1">&#39;7B&#39;</span><span class="p">,</span> <span class="mi">16384</span><span class="p">,</span> <span class="s1">&#39;chat completion&#39;</span><span class="p">,</span> <span class="s1">&#39;open source&#39;</span><span class="p">,),</span>
-</span><span id="PerplexityClient.models-267"><a href="#PerplexityClient.models-267"><span class="linenos">267</span></a>            <span class="s1">&#39;mixtral-8x7b-instruct&#39;</span><span class="p">:</span> <span class="n">ModelInfo</span><span class="p">(</span><span class="s1">&#39;8x7B&#39;</span><span class="p">,</span> <span class="mi">16384</span><span class="p">,</span> <span class="s1">&#39;chat completion&#39;</span><span class="p">,</span> <span class="s1">&#39;open source&#39;</span><span class="p">,),</span>
-</span><span id="PerplexityClient.models-268"><a href="#PerplexityClient.models-268"><span class="linenos">268</span></a>        <span class="p">})</span>
-</span><span id="PerplexityClient.models-269"><a href="#PerplexityClient.models-269"><span class="linenos">269</span></a>
-</span><span id="PerplexityClient.models-270"><a href="#PerplexityClient.models-270"><span class="linenos">270</span></a>        <span class="k">return</span> <span class="n">supportedModels</span>
+</span><span id="PerplexityClient.models-259"><a href="#PerplexityClient.models-259"><span class="linenos">259</span></a>            <span class="s1">&#39;llama-3-70b-instruct&#39;</span><span class="p">:</span> <span class="n">ModelInfo</span><span class="p">(</span><span class="s1">&#39;70B&#39;</span><span class="p">,</span> <span class="mi">8192</span><span class="p">,</span> <span class="s1">&#39;chat completion&#39;</span><span class="p">,</span> <span class="s1">&#39;open source&#39;</span><span class="p">),</span>
+</span><span id="PerplexityClient.models-260"><a href="#PerplexityClient.models-260"><span class="linenos">260</span></a>            <span class="s1">&#39;llama-3-8b-instruct&#39;</span><span class="p">:</span> <span class="n">ModelInfo</span><span class="p">(</span><span class="s1">&#39;8B&#39;</span><span class="p">,</span> <span class="mi">8192</span><span class="p">,</span> <span class="s1">&#39;chat completion&#39;</span><span class="p">,</span> <span class="s1">&#39;open source&#39;</span><span class="p">),</span>
+</span><span id="PerplexityClient.models-261"><a href="#PerplexityClient.models-261"><span class="linenos">261</span></a>            <span class="s1">&#39;llama-3-sonar-large-32k-chat&#39;</span><span class="p">:</span> <span class="n">ModelInfo</span><span class="p">(</span><span class="s1">&#39;8x7B&#39;</span><span class="p">,</span> <span class="mi">32768</span><span class="p">,</span> <span class="s1">&#39;chat completion&#39;</span><span class="p">,</span> <span class="s1">&#39;Perplexity&#39;</span><span class="p">,),</span>
+</span><span id="PerplexityClient.models-262"><a href="#PerplexityClient.models-262"><span class="linenos">262</span></a>            <span class="s1">&#39;llama-3-sonar-large-32k-online&#39;</span><span class="p">:</span> <span class="n">ModelInfo</span><span class="p">(</span><span class="s1">&#39;8x7B&#39;</span><span class="p">,</span> <span class="mi">32768</span><span class="p">,</span> <span class="s1">&#39;chat completion&#39;</span><span class="p">,</span> <span class="s1">&#39;Perplexity&#39;</span><span class="p">,),</span>
+</span><span id="PerplexityClient.models-263"><a href="#PerplexityClient.models-263"><span class="linenos">263</span></a>            <span class="s1">&#39;llama-3-sonar-small-32k-chat&#39;</span><span class="p">:</span> <span class="n">ModelInfo</span><span class="p">(</span><span class="s1">&#39;7B&#39;</span><span class="p">,</span> <span class="mi">32768</span><span class="p">,</span> <span class="s1">&#39;chat completion&#39;</span><span class="p">,</span> <span class="s1">&#39;Perplexity&#39;</span><span class="p">,),</span>
+</span><span id="PerplexityClient.models-264"><a href="#PerplexityClient.models-264"><span class="linenos">264</span></a>            <span class="s1">&#39;llama-3-sonar-small-32k-online&#39;</span><span class="p">:</span> <span class="n">ModelInfo</span><span class="p">(</span><span class="s1">&#39;7B&#39;</span><span class="p">,</span> <span class="mi">32768</span><span class="p">,</span> <span class="s1">&#39;chat completion&#39;</span><span class="p">,</span> <span class="s1">&#39;Perplexity&#39;</span><span class="p">,),</span>
+</span><span id="PerplexityClient.models-265"><a href="#PerplexityClient.models-265"><span class="linenos">265</span></a>        <span class="p">})</span>
+</span><span id="PerplexityClient.models-266"><a href="#PerplexityClient.models-266"><span class="linenos">266</span></a>
+</span><span id="PerplexityClient.models-267"><a href="#PerplexityClient.models-267"><span class="linenos">267</span></a>        <span class="k">return</span> <span class="n">supportedModels</span>
 </span></pre></div>
 
 
@@ -1334,13 +1325,13 @@ <h2 id="returns">Returns</h2>
 
     </div>
     <a class="headerlink" href="#PerplexityClient.model"></a>
-            <div class="pdoc-code codehilite"><pre><span></span><span id="PerplexityClient.model-273"><a href="#PerplexityClient.model-273"><span class="linenos">273</span></a>    <span class="nd">@property</span>
-</span><span id="PerplexityClient.model-274"><a href="#PerplexityClient.model-274"><span class="linenos">274</span></a>    <span class="k">def</span> <span class="nf">model</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">str</span><span class="p">:</span>
-</span><span id="PerplexityClient.model-275"><a href="#PerplexityClient.model-275"><span class="linenos">275</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
-</span><span id="PerplexityClient.model-276"><a href="#PerplexityClient.model-276"><span class="linenos">276</span></a><span class="sd">        Return the model the client uses for requesting responses from the</span>
-</span><span id="PerplexityClient.model-277"><a href="#PerplexityClient.model-277"><span class="linenos">277</span></a><span class="sd">        service provider.  Its default value is:  `PERPLEXITY_DEFAULT_MODEL`.</span>
-</span><span id="PerplexityClient.model-278"><a href="#PerplexityClient.model-278"><span class="linenos">278</span></a><span class="sd">        &quot;&quot;&quot;</span>
-</span><span id="PerplexityClient.model-279"><a href="#PerplexityClient.model-279"><span class="linenos">279</span></a>        <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_model</span>
+            <div class="pdoc-code codehilite"><pre><span></span><span id="PerplexityClient.model-270"><a href="#PerplexityClient.model-270"><span class="linenos">270</span></a>    <span class="nd">@property</span>
+</span><span id="PerplexityClient.model-271"><a href="#PerplexityClient.model-271"><span class="linenos">271</span></a>    <span class="k">def</span> <span class="nf">model</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">str</span><span class="p">:</span>
+</span><span id="PerplexityClient.model-272"><a href="#PerplexityClient.model-272"><span class="linenos">272</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
+</span><span id="PerplexityClient.model-273"><a href="#PerplexityClient.model-273"><span class="linenos">273</span></a><span class="sd">        Return the model the client uses for requesting responses from the</span>
+</span><span id="PerplexityClient.model-274"><a href="#PerplexityClient.model-274"><span class="linenos">274</span></a><span class="sd">        service provider.  Its default value is:  `PERPLEXITY_DEFAULT_MODEL`.</span>
+</span><span id="PerplexityClient.model-275"><a href="#PerplexityClient.model-275"><span class="linenos">275</span></a><span class="sd">        &quot;&quot;&quot;</span>
+</span><span id="PerplexityClient.model-276"><a href="#PerplexityClient.model-276"><span class="linenos">276</span></a>        <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_model</span>
 </span></pre></div>
 
 
diff --git a/docs/perplexipy/codex.html b/docs/perplexipy/codex.html
index 3641dbf..d25511d 100644
--- a/docs/perplexipy/codex.html
+++ b/docs/perplexipy/codex.html
@@ -44,9 +44,18 @@ <h2>API Documentation</h2>
                         <li>
                                 <a class="function" href="#CodexREPL.activeModel">activeModel</a>
                         </li>
+                        <li>
+                                <a class="function" href="#CodexREPL.displayModels">displayModels</a>
+                        </li>
                         <li>
                                 <a class="function" href="#CodexREPL.editingMode">editingMode</a>
                         </li>
+                        <li>
+                                <a class="variable" href="#CodexREPL.queryCodeStyle">queryCodeStyle</a>
+                        </li>
+                        <li>
+                                <a class="function" href="#CodexREPL.makeQuery">makeQuery</a>
+                        </li>
                         <li>
                                 <a class="function" href="#CodexREPL.run">run</a>
                         </li>
@@ -89,470 +98,551 @@ <h1 class="modulename">
 </span><span id="L-7"><a href="#L-7"><span class="linenos">  7</span></a><span class="kn">from</span> <span class="nn">prompt_toolkit</span> <span class="kn">import</span> <span class="n">print_formatted_text</span> <span class="k">as</span> <span class="n">printF</span>
 </span><span id="L-8"><a href="#L-8"><span class="linenos">  8</span></a><span class="kn">from</span> <span class="nn">prompt_toolkit.enums</span> <span class="kn">import</span> <span class="n">EditingMode</span>
 </span><span id="L-9"><a href="#L-9"><span class="linenos">  9</span></a>
-</span><span id="L-10"><a href="#L-10"><span class="linenos"> 10</span></a><span class="kn">from</span> <span class="nn">perplexipy</span> <span class="kn">import</span> <span class="n">PerplexityClient</span>
-</span><span id="L-11"><a href="#L-11"><span class="linenos"> 11</span></a><span class="kn">from</span> <span class="nn">perplexipy</span> <span class="kn">import</span> <span class="n">__VERSION__</span>
-</span><span id="L-12"><a href="#L-12"><span class="linenos"> 12</span></a>
-</span><span id="L-13"><a href="#L-13"><span class="linenos"> 13</span></a><span class="kn">import</span> <span class="nn">os</span>
-</span><span id="L-14"><a href="#L-14"><span class="linenos"> 14</span></a><span class="kn">import</span> <span class="nn">select</span>
-</span><span id="L-15"><a href="#L-15"><span class="linenos"> 15</span></a><span class="kn">import</span> <span class="nn">sys</span>
-</span><span id="L-16"><a href="#L-16"><span class="linenos"> 16</span></a>
-</span><span id="L-17"><a href="#L-17"><span class="linenos"> 17</span></a><span class="kn">import</span> <span class="nn">click</span>
-</span><span id="L-18"><a href="#L-18"><span class="linenos"> 18</span></a><span class="kn">import</span> <span class="nn">yaml</span>
-</span><span id="L-19"><a href="#L-19"><span class="linenos"> 19</span></a>
+</span><span id="L-10"><a href="#L-10"><span class="linenos"> 10</span></a><span class="kn">from</span> <span class="nn">perplexipy</span> <span class="kn">import</span> <span class="n">PERPLEXITY_DEFAULT_MODEL</span>
+</span><span id="L-11"><a href="#L-11"><span class="linenos"> 11</span></a><span class="kn">from</span> <span class="nn">perplexipy</span> <span class="kn">import</span> <span class="n">PerplexityClient</span>
+</span><span id="L-12"><a href="#L-12"><span class="linenos"> 12</span></a><span class="kn">from</span> <span class="nn">perplexipy</span> <span class="kn">import</span> <span class="n">__VERSION__</span>
+</span><span id="L-13"><a href="#L-13"><span class="linenos"> 13</span></a>
+</span><span id="L-14"><a href="#L-14"><span class="linenos"> 14</span></a><span class="kn">import</span> <span class="nn">os</span>
+</span><span id="L-15"><a href="#L-15"><span class="linenos"> 15</span></a><span class="kn">import</span> <span class="nn">select</span>
+</span><span id="L-16"><a href="#L-16"><span class="linenos"> 16</span></a><span class="kn">import</span> <span class="nn">sys</span>
+</span><span id="L-17"><a href="#L-17"><span class="linenos"> 17</span></a>
+</span><span id="L-18"><a href="#L-18"><span class="linenos"> 18</span></a><span class="kn">import</span> <span class="nn">click</span>
+</span><span id="L-19"><a href="#L-19"><span class="linenos"> 19</span></a><span class="kn">import</span> <span class="nn">yaml</span>
 </span><span id="L-20"><a href="#L-20"><span class="linenos"> 20</span></a>
-</span><span id="L-21"><a href="#L-21"><span class="linenos"> 21</span></a><span class="c1"># *** constants ***</span>
-</span><span id="L-22"><a href="#L-22"><span class="linenos"> 22</span></a>
-</span><span id="L-23"><a href="#L-23"><span class="linenos"> 23</span></a><span class="n">ARG_REPL</span> <span class="o">=</span> <span class="s1">&#39;repl&#39;</span>
-</span><span id="L-24"><a href="#L-24"><span class="linenos"> 24</span></a><span class="sd">&quot;&quot;&quot;</span>
-</span><span id="L-25"><a href="#L-25"><span class="linenos"> 25</span></a><span class="sd">@private</span>
-</span><span id="L-26"><a href="#L-26"><span class="linenos"> 26</span></a><span class="sd">&quot;&quot;&quot;</span>
-</span><span id="L-27"><a href="#L-27"><span class="linenos"> 27</span></a>
-</span><span id="L-28"><a href="#L-28"><span class="linenos"> 28</span></a><span class="n">CONFIG_PATH</span> <span class="o">=</span> <span class="n">AppDirs</span><span class="p">(</span><span class="n">appname</span> <span class="o">=</span> <span class="s1">&#39;PerplexiPy&#39;</span><span class="p">)</span><span class="o">.</span><span class="n">user_config_dir</span>
-</span><span id="L-29"><a href="#L-29"><span class="linenos"> 29</span></a><span class="sd">&quot;&quot;&quot;</span>
-</span><span id="L-30"><a href="#L-30"><span class="linenos"> 30</span></a><span class="sd">@private</span>
-</span><span id="L-31"><a href="#L-31"><span class="linenos"> 31</span></a><span class="sd">&quot;&quot;&quot;</span>
-</span><span id="L-32"><a href="#L-32"><span class="linenos"> 32</span></a><span class="n">CONFIG_FILE_NAME</span> <span class="o">=</span> <span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="n">CONFIG_PATH</span><span class="p">,</span> <span class="s1">&#39;codex-repl.yaml&#39;</span><span class="p">)</span>
-</span><span id="L-33"><a href="#L-33"><span class="linenos"> 33</span></a><span class="sd">&quot;&quot;&quot;</span>
-</span><span id="L-34"><a href="#L-34"><span class="linenos"> 34</span></a><span class="sd">@private</span>
-</span><span id="L-35"><a href="#L-35"><span class="linenos"> 35</span></a><span class="sd">&quot;&quot;&quot;</span>
-</span><span id="L-36"><a href="#L-36"><span class="linenos"> 36</span></a>
-</span><span id="L-37"><a href="#L-37"><span class="linenos"> 37</span></a><span class="n">DEFAULT_MODEL_NAME</span> <span class="o">=</span> <span class="s1">&#39;mixtral-8x7b-instruct&#39;</span>
-</span><span id="L-38"><a href="#L-38"><span class="linenos"> 38</span></a><span class="n">DEFAULT_VIM_EDIT_MODE</span> <span class="o">=</span> <span class="kc">True</span>
+</span><span id="L-21"><a href="#L-21"><span class="linenos"> 21</span></a>
+</span><span id="L-22"><a href="#L-22"><span class="linenos"> 22</span></a><span class="c1"># *** constants ***</span>
+</span><span id="L-23"><a href="#L-23"><span class="linenos"> 23</span></a>
+</span><span id="L-24"><a href="#L-24"><span class="linenos"> 24</span></a><span class="n">ARG_REPL</span> <span class="o">=</span> <span class="s1">&#39;repl&#39;</span>
+</span><span id="L-25"><a href="#L-25"><span class="linenos"> 25</span></a><span class="sd">&quot;&quot;&quot;</span>
+</span><span id="L-26"><a href="#L-26"><span class="linenos"> 26</span></a><span class="sd">@private</span>
+</span><span id="L-27"><a href="#L-27"><span class="linenos"> 27</span></a><span class="sd">&quot;&quot;&quot;</span>
+</span><span id="L-28"><a href="#L-28"><span class="linenos"> 28</span></a>
+</span><span id="L-29"><a href="#L-29"><span class="linenos"> 29</span></a><span class="n">CONFIG_PATH</span> <span class="o">=</span> <span class="n">AppDirs</span><span class="p">(</span><span class="n">appname</span> <span class="o">=</span> <span class="s1">&#39;PerplexiPy&#39;</span><span class="p">)</span><span class="o">.</span><span class="n">user_config_dir</span>
+</span><span id="L-30"><a href="#L-30"><span class="linenos"> 30</span></a><span class="sd">&quot;&quot;&quot;</span>
+</span><span id="L-31"><a href="#L-31"><span class="linenos"> 31</span></a><span class="sd">@private</span>
+</span><span id="L-32"><a href="#L-32"><span class="linenos"> 32</span></a><span class="sd">&quot;&quot;&quot;</span>
+</span><span id="L-33"><a href="#L-33"><span class="linenos"> 33</span></a><span class="n">CONFIG_FILE_NAME</span> <span class="o">=</span> <span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="n">CONFIG_PATH</span><span class="p">,</span> <span class="s1">&#39;codex-repl.yaml&#39;</span><span class="p">)</span>
+</span><span id="L-34"><a href="#L-34"><span class="linenos"> 34</span></a><span class="sd">&quot;&quot;&quot;</span>
+</span><span id="L-35"><a href="#L-35"><span class="linenos"> 35</span></a><span class="sd">@private</span>
+</span><span id="L-36"><a href="#L-36"><span class="linenos"> 36</span></a><span class="sd">&quot;&quot;&quot;</span>
+</span><span id="L-37"><a href="#L-37"><span class="linenos"> 37</span></a>
+</span><span id="L-38"><a href="#L-38"><span class="linenos"> 38</span></a><span class="n">DEFAULT_MODEL_NAME</span> <span class="o">=</span> <span class="n">PERPLEXITY_DEFAULT_MODEL</span>
 </span><span id="L-39"><a href="#L-39"><span class="linenos"> 39</span></a><span class="sd">&quot;&quot;&quot;</span>
-</span><span id="L-40"><a href="#L-40"><span class="linenos"> 40</span></a><span class="sd">@private</span>
-</span><span id="L-41"><a href="#L-41"><span class="linenos"> 41</span></a><span class="sd">&quot;&quot;&quot;</span>
-</span><span id="L-42"><a href="#L-42"><span class="linenos"> 42</span></a>
-</span><span id="L-43"><a href="#L-43"><span class="linenos"> 43</span></a><span class="n">QUERY_CRISP</span> <span class="o">=</span> <span class="s1">&#39;Concise, code only reply to this prompt: &#39;</span>
+</span><span id="L-40"><a href="#L-40"><span class="linenos"> 40</span></a><span class="sd">@public</span>
+</span><span id="L-41"><a href="#L-41"><span class="linenos"> 41</span></a><span class="sd">Codex Playground default model.</span>
+</span><span id="L-42"><a href="#L-42"><span class="linenos"> 42</span></a><span class="sd">&quot;&quot;&quot;</span>
+</span><span id="L-43"><a href="#L-43"><span class="linenos"> 43</span></a><span class="n">DEFAULT_VIM_EDIT_MODE</span> <span class="o">=</span> <span class="kc">True</span>
 </span><span id="L-44"><a href="#L-44"><span class="linenos"> 44</span></a><span class="sd">&quot;&quot;&quot;</span>
 </span><span id="L-45"><a href="#L-45"><span class="linenos"> 45</span></a><span class="sd">@private</span>
 </span><span id="L-46"><a href="#L-46"><span class="linenos"> 46</span></a><span class="sd">&quot;&quot;&quot;</span>
 </span><span id="L-47"><a href="#L-47"><span class="linenos"> 47</span></a>
-</span><span id="L-48"><a href="#L-48"><span class="linenos"> 48</span></a><span class="n">QUERY_DETAILED</span> <span class="o">=</span> <span class="s1">&#39;Give me a concise coding example and include URL references in reply this prompt: &#39;</span>
+</span><span id="L-48"><a href="#L-48"><span class="linenos"> 48</span></a><span class="n">QUERY_CRISP</span> <span class="o">=</span> <span class="s1">&#39;Concise, code only reply to this prompt: &#39;</span>
 </span><span id="L-49"><a href="#L-49"><span class="linenos"> 49</span></a><span class="sd">&quot;&quot;&quot;</span>
 </span><span id="L-50"><a href="#L-50"><span class="linenos"> 50</span></a><span class="sd">@private</span>
 </span><span id="L-51"><a href="#L-51"><span class="linenos"> 51</span></a><span class="sd">&quot;&quot;&quot;</span>
 </span><span id="L-52"><a href="#L-52"><span class="linenos"> 52</span></a>
-</span><span id="L-53"><a href="#L-53"><span class="linenos"> 53</span></a>
-</span><span id="L-54"><a href="#L-54"><span class="linenos"> 54</span></a><span class="k">def</span> <span class="nf">_die</span><span class="p">(</span><span class="n">msg</span><span class="p">:</span> <span class="nb">str</span><span class="p">,</span> <span class="n">exitCode</span><span class="p">:</span> <span class="nb">int</span> <span class="o">=</span> <span class="mi">99</span><span class="p">):</span>
-</span><span id="L-55"><a href="#L-55"><span class="linenos"> 55</span></a>    <span class="k">if</span> <span class="n">exitCode</span> <span class="o">==</span> <span class="mi">1</span><span class="p">:</span>
-</span><span id="L-56"><a href="#L-56"><span class="linenos"> 56</span></a>        <span class="n">msgColor</span> <span class="o">=</span> <span class="s1">&#39;white&#39;</span>
-</span><span id="L-57"><a href="#L-57"><span class="linenos"> 57</span></a>    <span class="k">else</span><span class="p">:</span>
-</span><span id="L-58"><a href="#L-58"><span class="linenos"> 58</span></a>        <span class="n">msgColor</span> <span class="o">=</span> <span class="s1">&#39;bright_yellow&#39;</span>
-</span><span id="L-59"><a href="#L-59"><span class="linenos"> 59</span></a>    <span class="n">click</span><span class="o">.</span><span class="n">secho</span><span class="p">(</span><span class="n">msg</span><span class="o">+</span><span class="s1">&#39;</span><span class="se">\n</span><span class="s1">&#39;</span><span class="p">,</span> <span class="n">fg</span> <span class="o">=</span> <span class="n">msgColor</span><span class="p">)</span>
-</span><span id="L-60"><a href="#L-60"><span class="linenos"> 60</span></a>    <span class="n">sys</span><span class="o">.</span><span class="n">exit</span><span class="p">(</span><span class="n">exitCode</span><span class="p">)</span>
-</span><span id="L-61"><a href="#L-61"><span class="linenos"> 61</span></a>
-</span><span id="L-62"><a href="#L-62"><span class="linenos"> 62</span></a>
-</span><span id="L-63"><a href="#L-63"><span class="linenos"> 63</span></a><span class="c1"># *** globals ***</span>
-</span><span id="L-64"><a href="#L-64"><span class="linenos"> 64</span></a>
-</span><span id="L-65"><a href="#L-65"><span class="linenos"> 65</span></a><span class="k">try</span><span class="p">:</span>
-</span><span id="L-66"><a href="#L-66"><span class="linenos"> 66</span></a>    <span class="n">_client</span> <span class="o">=</span> <span class="n">PerplexityClient</span><span class="p">(</span><span class="n">key</span> <span class="o">=</span> <span class="n">os</span><span class="o">.</span><span class="n">environ</span><span class="p">[</span><span class="s1">&#39;PERPLEXITY_API_KEY&#39;</span><span class="p">])</span>
-</span><span id="L-67"><a href="#L-67"><span class="linenos"> 67</span></a><span class="k">except</span><span class="p">:</span>
-</span><span id="L-68"><a href="#L-68"><span class="linenos"> 68</span></a>    <span class="n">_die</span><span class="p">(</span><span class="s1">&#39;PERPLEXITY_API_KEY undefined in the environment or .env file&#39;</span><span class="p">,</span> <span class="mi">2</span><span class="p">)</span>
+</span><span id="L-53"><a href="#L-53"><span class="linenos"> 53</span></a><span class="n">QUERY_DETAILED</span> <span class="o">=</span> <span class="s1">&#39;Give me a concise coding example and include URL references in reply this prompt: &#39;</span>
+</span><span id="L-54"><a href="#L-54"><span class="linenos"> 54</span></a><span class="sd">&quot;&quot;&quot;</span>
+</span><span id="L-55"><a href="#L-55"><span class="linenos"> 55</span></a><span class="sd">@private</span>
+</span><span id="L-56"><a href="#L-56"><span class="linenos"> 56</span></a><span class="sd">&quot;&quot;&quot;</span>
+</span><span id="L-57"><a href="#L-57"><span class="linenos"> 57</span></a>
+</span><span id="L-58"><a href="#L-58"><span class="linenos"> 58</span></a>
+</span><span id="L-59"><a href="#L-59"><span class="linenos"> 59</span></a><span class="k">def</span> <span class="nf">_die</span><span class="p">(</span><span class="n">msg</span><span class="p">:</span> <span class="nb">str</span><span class="p">,</span> <span class="n">exitCode</span><span class="p">:</span> <span class="nb">int</span> <span class="o">=</span> <span class="mi">99</span><span class="p">):</span>
+</span><span id="L-60"><a href="#L-60"><span class="linenos"> 60</span></a>    <span class="k">if</span> <span class="n">exitCode</span> <span class="o">==</span> <span class="mi">1</span><span class="p">:</span>
+</span><span id="L-61"><a href="#L-61"><span class="linenos"> 61</span></a>        <span class="n">msgColor</span> <span class="o">=</span> <span class="s1">&#39;white&#39;</span>
+</span><span id="L-62"><a href="#L-62"><span class="linenos"> 62</span></a>    <span class="k">else</span><span class="p">:</span>
+</span><span id="L-63"><a href="#L-63"><span class="linenos"> 63</span></a>        <span class="n">msgColor</span> <span class="o">=</span> <span class="s1">&#39;bright_yellow&#39;</span>
+</span><span id="L-64"><a href="#L-64"><span class="linenos"> 64</span></a>    <span class="n">click</span><span class="o">.</span><span class="n">secho</span><span class="p">(</span><span class="n">msg</span><span class="o">+</span><span class="s1">&#39;</span><span class="se">\n</span><span class="s1">&#39;</span><span class="p">,</span> <span class="n">fg</span> <span class="o">=</span> <span class="n">msgColor</span><span class="p">)</span>
+</span><span id="L-65"><a href="#L-65"><span class="linenos"> 65</span></a>    <span class="n">sys</span><span class="o">.</span><span class="n">exit</span><span class="p">(</span><span class="n">exitCode</span><span class="p">)</span>
+</span><span id="L-66"><a href="#L-66"><span class="linenos"> 66</span></a>
+</span><span id="L-67"><a href="#L-67"><span class="linenos"> 67</span></a>
+</span><span id="L-68"><a href="#L-68"><span class="linenos"> 68</span></a><span class="c1"># *** globals ***</span>
 </span><span id="L-69"><a href="#L-69"><span class="linenos"> 69</span></a>
-</span><span id="L-70"><a href="#L-70"><span class="linenos"> 70</span></a><span class="n">_client</span><span class="o">.</span><span class="n">model</span> <span class="o">=</span> <span class="n">DEFAULT_MODEL_NAME</span>
-</span><span id="L-71"><a href="#L-71"><span class="linenos"> 71</span></a><span class="n">_queryCodeStyle</span> <span class="o">=</span> <span class="kc">True</span>
-</span><span id="L-72"><a href="#L-72"><span class="linenos"> 72</span></a>
-</span><span id="L-73"><a href="#L-73"><span class="linenos"> 73</span></a>
-</span><span id="L-74"><a href="#L-74"><span class="linenos"> 74</span></a><span class="c1"># *** classes and objects ***</span>
-</span><span id="L-75"><a href="#L-75"><span class="linenos"> 75</span></a>
-</span><span id="L-76"><a href="#L-76"><span class="linenos"> 76</span></a><span class="k">class</span> <span class="nc">CodexREPL</span><span class="p">:</span>
+</span><span id="L-70"><a href="#L-70"><span class="linenos"> 70</span></a><span class="k">try</span><span class="p">:</span>
+</span><span id="L-71"><a href="#L-71"><span class="linenos"> 71</span></a>    <span class="n">_client</span> <span class="o">=</span> <span class="n">PerplexityClient</span><span class="p">(</span><span class="n">key</span> <span class="o">=</span> <span class="n">os</span><span class="o">.</span><span class="n">environ</span><span class="p">[</span><span class="s1">&#39;PERPLEXITY_API_KEY&#39;</span><span class="p">])</span>
+</span><span id="L-72"><a href="#L-72"><span class="linenos"> 72</span></a><span class="k">except</span><span class="p">:</span>
+</span><span id="L-73"><a href="#L-73"><span class="linenos"> 73</span></a>    <span class="n">_die</span><span class="p">(</span><span class="s1">&#39;PERPLEXITY_API_KEY undefined in the environment or .env file&#39;</span><span class="p">,</span> <span class="mi">2</span><span class="p">)</span>
+</span><span id="L-74"><a href="#L-74"><span class="linenos"> 74</span></a>
+</span><span id="L-75"><a href="#L-75"><span class="linenos"> 75</span></a><span class="n">_client</span><span class="o">.</span><span class="n">model</span> <span class="o">=</span> <span class="n">DEFAULT_MODEL_NAME</span>
+</span><span id="L-76"><a href="#L-76"><span class="linenos"> 76</span></a><span class="n">_queryCodeStyle</span> <span class="o">=</span> <span class="kc">True</span>
 </span><span id="L-77"><a href="#L-77"><span class="linenos"> 77</span></a>
-</span><span id="L-78"><a href="#L-78"><span class="linenos"> 78</span></a>    <span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
-</span><span id="L-79"><a href="#L-79"><span class="linenos"> 79</span></a>        <span class="bp">self</span><span class="o">.</span><span class="n">_client</span> <span class="o">=</span> <span class="n">PerplexityClient</span><span class="p">(</span><span class="n">key</span> <span class="o">=</span> <span class="n">os</span><span class="o">.</span><span class="n">environ</span><span class="p">[</span><span class="s1">&#39;PERPLEXITY_API_KEY&#39;</span><span class="p">])</span>
-</span><span id="L-80"><a href="#L-80"><span class="linenos"> 80</span></a>        <span class="bp">self</span><span class="o">.</span><span class="n">_client</span><span class="o">.</span><span class="n">model</span> <span class="o">=</span> <span class="n">DEFAULT_MODEL_NAME</span>
-</span><span id="L-81"><a href="#L-81"><span class="linenos"> 81</span></a>        <span class="bp">self</span><span class="o">.</span><span class="n">_queryCodeStyle</span> <span class="o">=</span> <span class="kc">True</span>
+</span><span id="L-78"><a href="#L-78"><span class="linenos"> 78</span></a>
+</span><span id="L-79"><a href="#L-79"><span class="linenos"> 79</span></a><span class="c1"># *** classes and objects ***</span>
+</span><span id="L-80"><a href="#L-80"><span class="linenos"> 80</span></a>
+</span><span id="L-81"><a href="#L-81"><span class="linenos"> 81</span></a><span class="k">class</span> <span class="nc">CodexREPL</span><span class="p">:</span>
 </span><span id="L-82"><a href="#L-82"><span class="linenos"> 82</span></a>
-</span><span id="L-83"><a href="#L-83"><span class="linenos"> 83</span></a>
-</span><span id="L-84"><a href="#L-84"><span class="linenos"> 84</span></a>    <span class="k">def</span> <span class="nf">core</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">userQuery</span><span class="p">:</span> <span class="nb">str</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">str</span><span class="p">:</span>
-</span><span id="L-85"><a href="#L-85"><span class="linenos"> 85</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
-</span><span id="L-86"><a href="#L-86"><span class="linenos"> 86</span></a><span class="sd">        Send a user query to the model for processing.</span>
-</span><span id="L-87"><a href="#L-87"><span class="linenos"> 87</span></a>
-</span><span id="L-88"><a href="#L-88"><span class="linenos"> 88</span></a><span class="sd">        Arguments</span>
-</span><span id="L-89"><a href="#L-89"><span class="linenos"> 89</span></a><span class="sd">        ---------</span>
-</span><span id="L-90"><a href="#L-90"><span class="linenos"> 90</span></a><span class="sd">            userQuery</span>
-</span><span id="L-91"><a href="#L-91"><span class="linenos"> 91</span></a><span class="sd">        A string with the user query, most often a programming question.</span>
-</span><span id="L-92"><a href="#L-92"><span class="linenos"> 92</span></a>
-</span><span id="L-93"><a href="#L-93"><span class="linenos"> 93</span></a><span class="sd">        Returns</span>
-</span><span id="L-94"><a href="#L-94"><span class="linenos"> 94</span></a><span class="sd">        -------</span>
-</span><span id="L-95"><a href="#L-95"><span class="linenos"> 95</span></a><span class="sd">        The result of the query, or `None` if the query was empty.</span>
-</span><span id="L-96"><a href="#L-96"><span class="linenos"> 96</span></a><span class="sd">        &quot;&quot;&quot;</span>
-</span><span id="L-97"><a href="#L-97"><span class="linenos"> 97</span></a>        <span class="n">result</span> <span class="o">=</span> <span class="kc">None</span>
-</span><span id="L-98"><a href="#L-98"><span class="linenos"> 98</span></a>        <span class="k">if</span> <span class="n">userQuery</span><span class="p">:</span>
-</span><span id="L-99"><a href="#L-99"><span class="linenos"> 99</span></a>            <span class="k">if</span> <span class="ow">not</span> <span class="bp">self</span><span class="o">.</span><span class="n">_client</span><span class="p">:</span>
-</span><span id="L-100"><a href="#L-100"><span class="linenos">100</span></a>                <span class="bp">self</span><span class="o">.</span><span class="n">_client</span> <span class="o">=</span> <span class="n">PerplexityClient</span><span class="p">(</span><span class="n">key</span> <span class="o">=</span> <span class="n">os</span><span class="o">.</span><span class="n">environ</span><span class="p">[</span><span class="s1">&#39;PERPLEXITY_API_KEY&#39;</span><span class="p">])</span>
-</span><span id="L-101"><a href="#L-101"><span class="linenos">101</span></a>                <span class="bp">self</span><span class="o">.</span><span class="n">_client</span><span class="o">.</span><span class="n">model</span> <span class="o">=</span> <span class="n">DEFAULT_MODEL_NAME</span>
-</span><span id="L-102"><a href="#L-102"><span class="linenos">102</span></a>            <span class="n">result</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_client</span><span class="o">.</span><span class="n">query</span><span class="p">(</span><span class="n">userQuery</span><span class="p">)</span>
-</span><span id="L-103"><a href="#L-103"><span class="linenos">103</span></a>
-</span><span id="L-104"><a href="#L-104"><span class="linenos">104</span></a>        <span class="k">return</span> <span class="n">result</span>
-</span><span id="L-105"><a href="#L-105"><span class="linenos">105</span></a>
-</span><span id="L-106"><a href="#L-106"><span class="linenos">106</span></a>
-</span><span id="L-107"><a href="#L-107"><span class="linenos">107</span></a>    <span class="k">def</span> <span class="nf">activeModel</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">modelID</span><span class="p">:</span> <span class="nb">int</span> <span class="o">=</span> <span class="mi">0</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">str</span><span class="p">:</span>
-</span><span id="L-108"><a href="#L-108"><span class="linenos">108</span></a>        <span class="k">if</span> <span class="n">modelID</span><span class="p">:</span>
-</span><span id="L-109"><a href="#L-109"><span class="linenos">109</span></a>            <span class="k">try</span><span class="p">:</span>
-</span><span id="L-110"><a href="#L-110"><span class="linenos">110</span></a>                <span class="n">ref</span> <span class="o">=</span> <span class="n">modelID</span><span class="o">-</span><span class="mi">1</span>
-</span><span id="L-111"><a href="#L-111"><span class="linenos">111</span></a>                <span class="n">model</span> <span class="o">=</span> <span class="nb">list</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">_client</span><span class="o">.</span><span class="n">models</span><span class="o">.</span><span class="n">keys</span><span class="p">())[</span><span class="n">ref</span><span class="p">]</span>
-</span><span id="L-112"><a href="#L-112"><span class="linenos">112</span></a>                <span class="bp">self</span><span class="o">.</span><span class="n">_client</span><span class="o">.</span><span class="n">model</span> <span class="o">=</span> <span class="n">model</span>
-</span><span id="L-113"><a href="#L-113"><span class="linenos">113</span></a>            <span class="k">except</span><span class="p">:</span>
-</span><span id="L-114"><a href="#L-114"><span class="linenos">114</span></a>                <span class="n">click</span><span class="o">.</span><span class="n">secho</span><span class="p">(</span><span class="s1">&#39;Invalid model ID = </span><span class="si">%s</span><span class="s1">&#39;</span> <span class="o">%</span> <span class="n">modelID</span><span class="p">,</span> <span class="n">bg</span> <span class="o">=</span> <span class="s1">&#39;red&#39;</span><span class="p">,</span> <span class="n">fg</span> <span class="o">=</span> <span class="s1">&#39;white&#39;</span><span class="p">)</span>
-</span><span id="L-115"><a href="#L-115"><span class="linenos">115</span></a>        <span class="n">click</span><span class="o">.</span><span class="n">secho</span><span class="p">(</span><span class="s1">&#39;Active model: </span><span class="si">%s</span><span class="se">\n</span><span class="s1">&#39;</span> <span class="o">%</span> <span class="bp">self</span><span class="o">.</span><span class="n">_client</span><span class="o">.</span><span class="n">model</span><span class="p">,</span> <span class="n">fg</span> <span class="o">=</span> <span class="s1">&#39;green&#39;</span><span class="p">,</span> <span class="n">bold</span> <span class="o">=</span> <span class="kc">True</span><span class="p">)</span>
-</span><span id="L-116"><a href="#L-116"><span class="linenos">116</span></a>        <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_client</span><span class="o">.</span><span class="n">model</span>
-</span><span id="L-117"><a href="#L-117"><span class="linenos">117</span></a>
-</span><span id="L-118"><a href="#L-118"><span class="linenos">118</span></a>
-</span><span id="L-119"><a href="#L-119"><span class="linenos">119</span></a>
-</span><span id="L-120"><a href="#L-120"><span class="linenos">120</span></a>    <span class="k">def</span> <span class="nf">_displayModels</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">list</span><span class="p">:</span>
-</span><span id="L-121"><a href="#L-121"><span class="linenos">121</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
-</span><span id="L-122"><a href="#L-122"><span class="linenos">122</span></a><span class="sd">        Display the list of models supported by the API.</span>
-</span><span id="L-123"><a href="#L-123"><span class="linenos">123</span></a>
-</span><span id="L-124"><a href="#L-124"><span class="linenos">124</span></a><span class="sd">        Returns</span>
-</span><span id="L-125"><a href="#L-125"><span class="linenos">125</span></a><span class="sd">        =======</span>
-</span><span id="L-126"><a href="#L-126"><span class="linenos">126</span></a><span class="sd">        A list of strings, each corresponding to a model name.</span>
-</span><span id="L-127"><a href="#L-127"><span class="linenos">127</span></a><span class="sd">        &quot;&quot;&quot;</span>
-</span><span id="L-128"><a href="#L-128"><span class="linenos">128</span></a>        <span class="n">_activeModel</span><span class="p">()</span>
-</span><span id="L-129"><a href="#L-129"><span class="linenos">129</span></a>        <span class="nb">print</span><span class="p">(</span><span class="s1">&#39;Available models:</span><span class="se">\n</span><span class="s1">&#39;</span><span class="p">)</span>
-</span><span id="L-130"><a href="#L-130"><span class="linenos">130</span></a>        <span class="n">n</span> <span class="o">=</span> <span class="mi">1</span>
-</span><span id="L-131"><a href="#L-131"><span class="linenos">131</span></a>        <span class="k">for</span> <span class="n">model</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">_client</span><span class="o">.</span><span class="n">models</span><span class="o">.</span><span class="n">keys</span><span class="p">():</span>
-</span><span id="L-132"><a href="#L-132"><span class="linenos">132</span></a>            <span class="nb">print</span><span class="p">(</span><span class="s1">&#39;</span><span class="si">%2d</span><span class="s1"> - </span><span class="si">%s</span><span class="s1">&#39;</span> <span class="o">%</span> <span class="p">(</span><span class="n">n</span><span class="p">,</span> <span class="n">model</span><span class="p">))</span>
-</span><span id="L-133"><a href="#L-133"><span class="linenos">133</span></a>            <span class="n">n</span> <span class="o">+=</span> <span class="mi">1</span>
-</span><span id="L-134"><a href="#L-134"><span class="linenos">134</span></a>        <span class="nb">print</span><span class="p">()</span>
-</span><span id="L-135"><a href="#L-135"><span class="linenos">135</span></a>
-</span><span id="L-136"><a href="#L-136"><span class="linenos">136</span></a>        <span class="k">return</span> <span class="nb">list</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">_client</span><span class="o">.</span><span class="n">models</span><span class="o">.</span><span class="n">keys</span><span class="p">())</span>
-</span><span id="L-137"><a href="#L-137"><span class="linenos">137</span></a>
-</span><span id="L-138"><a href="#L-138"><span class="linenos">138</span></a>
-</span><span id="L-139"><a href="#L-139"><span class="linenos">139</span></a>    <span class="k">def</span> <span class="nf">editingMode</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">session</span><span class="p">:</span> <span class="n">PromptSession</span><span class="p">,</span> <span class="n">mode</span> <span class="o">=</span> <span class="kc">None</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">PromptSession</span><span class="p">:</span>
-</span><span id="L-140"><a href="#L-140"><span class="linenos">140</span></a>        <span class="k">if</span> <span class="n">mode</span><span class="p">:</span>
-</span><span id="L-141"><a href="#L-141"><span class="linenos">141</span></a>            <span class="n">mode</span> <span class="o">=</span> <span class="n">mode</span><span class="o">.</span><span class="n">lower</span><span class="p">()</span>
-</span><span id="L-142"><a href="#L-142"><span class="linenos">142</span></a>            <span class="n">newEditingMode</span> <span class="o">=</span> <span class="n">EditingMode</span><span class="o">.</span><span class="n">EMACS</span> <span class="k">if</span> <span class="n">mode</span> <span class="o">==</span> <span class="s1">&#39;emacs&#39;</span> <span class="k">else</span> <span class="n">EditingMode</span><span class="o">.</span><span class="n">VI</span>
-</span><span id="L-143"><a href="#L-143"><span class="linenos">143</span></a>            <span class="n">session</span> <span class="o">=</span> <span class="n">PromptSession</span><span class="p">(</span><span class="n">editing_mode</span> <span class="o">=</span> <span class="n">newEditingMode</span><span class="p">)</span>
+</span><span id="L-83"><a href="#L-83"><span class="linenos"> 83</span></a>    <span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
+</span><span id="L-84"><a href="#L-84"><span class="linenos"> 84</span></a>        <span class="bp">self</span><span class="o">.</span><span class="n">_client</span> <span class="o">=</span> <span class="n">PerplexityClient</span><span class="p">(</span><span class="n">key</span> <span class="o">=</span> <span class="n">os</span><span class="o">.</span><span class="n">environ</span><span class="p">[</span><span class="s1">&#39;PERPLEXITY_API_KEY&#39;</span><span class="p">])</span>
+</span><span id="L-85"><a href="#L-85"><span class="linenos"> 85</span></a>        <span class="bp">self</span><span class="o">.</span><span class="n">_client</span><span class="o">.</span><span class="n">model</span> <span class="o">=</span> <span class="n">DEFAULT_MODEL_NAME</span>
+</span><span id="L-86"><a href="#L-86"><span class="linenos"> 86</span></a>        <span class="bp">self</span><span class="o">.</span><span class="n">_queryCodeStyle</span> <span class="o">=</span> <span class="kc">True</span>
+</span><span id="L-87"><a href="#L-87"><span class="linenos"> 87</span></a>        <span class="bp">self</span><span class="o">.</span><span class="n">_editingMode</span> <span class="o">=</span> <span class="n">EditingMode</span><span class="o">.</span><span class="n">VI</span>
+</span><span id="L-88"><a href="#L-88"><span class="linenos"> 88</span></a>
+</span><span id="L-89"><a href="#L-89"><span class="linenos"> 89</span></a>
+</span><span id="L-90"><a href="#L-90"><span class="linenos"> 90</span></a>    <span class="k">def</span> <span class="nf">core</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">userQuery</span><span class="p">:</span> <span class="nb">str</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">str</span><span class="p">:</span>
+</span><span id="L-91"><a href="#L-91"><span class="linenos"> 91</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
+</span><span id="L-92"><a href="#L-92"><span class="linenos"> 92</span></a><span class="sd">        Send a user query to the model for processing.</span>
+</span><span id="L-93"><a href="#L-93"><span class="linenos"> 93</span></a>
+</span><span id="L-94"><a href="#L-94"><span class="linenos"> 94</span></a><span class="sd">        Arguments</span>
+</span><span id="L-95"><a href="#L-95"><span class="linenos"> 95</span></a><span class="sd">        ---------</span>
+</span><span id="L-96"><a href="#L-96"><span class="linenos"> 96</span></a><span class="sd">            userQuery</span>
+</span><span id="L-97"><a href="#L-97"><span class="linenos"> 97</span></a><span class="sd">        A string with the user query, most often a programming question.</span>
+</span><span id="L-98"><a href="#L-98"><span class="linenos"> 98</span></a>
+</span><span id="L-99"><a href="#L-99"><span class="linenos"> 99</span></a><span class="sd">        Returns</span>
+</span><span id="L-100"><a href="#L-100"><span class="linenos">100</span></a><span class="sd">        -------</span>
+</span><span id="L-101"><a href="#L-101"><span class="linenos">101</span></a><span class="sd">        The result of the query, or `None` if the query was empty.</span>
+</span><span id="L-102"><a href="#L-102"><span class="linenos">102</span></a><span class="sd">        &quot;&quot;&quot;</span>
+</span><span id="L-103"><a href="#L-103"><span class="linenos">103</span></a>        <span class="n">result</span> <span class="o">=</span> <span class="kc">None</span>
+</span><span id="L-104"><a href="#L-104"><span class="linenos">104</span></a>        <span class="n">userQuery</span> <span class="o">=</span> <span class="n">userQuery</span><span class="o">.</span><span class="n">strip</span><span class="p">()</span>
+</span><span id="L-105"><a href="#L-105"><span class="linenos">105</span></a>        <span class="k">if</span> <span class="n">userQuery</span><span class="p">:</span>
+</span><span id="L-106"><a href="#L-106"><span class="linenos">106</span></a>            <span class="k">if</span> <span class="ow">not</span> <span class="bp">self</span><span class="o">.</span><span class="n">_client</span><span class="p">:</span>
+</span><span id="L-107"><a href="#L-107"><span class="linenos">107</span></a>                <span class="bp">self</span><span class="o">.</span><span class="n">_client</span> <span class="o">=</span> <span class="n">PerplexityClient</span><span class="p">(</span><span class="n">key</span> <span class="o">=</span> <span class="n">os</span><span class="o">.</span><span class="n">environ</span><span class="p">[</span><span class="s1">&#39;PERPLEXITY_API_KEY&#39;</span><span class="p">])</span>
+</span><span id="L-108"><a href="#L-108"><span class="linenos">108</span></a>                <span class="bp">self</span><span class="o">.</span><span class="n">_client</span><span class="o">.</span><span class="n">model</span> <span class="o">=</span> <span class="n">DEFAULT_MODEL_NAME</span>
+</span><span id="L-109"><a href="#L-109"><span class="linenos">109</span></a>            <span class="n">result</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_client</span><span class="o">.</span><span class="n">query</span><span class="p">(</span><span class="n">userQuery</span><span class="p">)</span>
+</span><span id="L-110"><a href="#L-110"><span class="linenos">110</span></a>
+</span><span id="L-111"><a href="#L-111"><span class="linenos">111</span></a>        <span class="k">return</span> <span class="n">result</span>
+</span><span id="L-112"><a href="#L-112"><span class="linenos">112</span></a>
+</span><span id="L-113"><a href="#L-113"><span class="linenos">113</span></a>
+</span><span id="L-114"><a href="#L-114"><span class="linenos">114</span></a>    <span class="k">def</span> <span class="nf">activeModel</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">modelID</span><span class="p">:</span> <span class="nb">int</span> <span class="o">=</span> <span class="mi">0</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">str</span><span class="p">:</span>
+</span><span id="L-115"><a href="#L-115"><span class="linenos">115</span></a>        <span class="k">if</span> <span class="n">modelID</span><span class="p">:</span>
+</span><span id="L-116"><a href="#L-116"><span class="linenos">116</span></a>            <span class="k">try</span><span class="p">:</span>
+</span><span id="L-117"><a href="#L-117"><span class="linenos">117</span></a>                <span class="n">ref</span> <span class="o">=</span> <span class="n">modelID</span><span class="o">-</span><span class="mi">1</span>
+</span><span id="L-118"><a href="#L-118"><span class="linenos">118</span></a>                <span class="n">model</span> <span class="o">=</span> <span class="nb">list</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">_client</span><span class="o">.</span><span class="n">models</span><span class="o">.</span><span class="n">keys</span><span class="p">())[</span><span class="n">ref</span><span class="p">]</span>
+</span><span id="L-119"><a href="#L-119"><span class="linenos">119</span></a>                <span class="bp">self</span><span class="o">.</span><span class="n">_client</span><span class="o">.</span><span class="n">model</span> <span class="o">=</span> <span class="n">model</span>
+</span><span id="L-120"><a href="#L-120"><span class="linenos">120</span></a>            <span class="k">except</span><span class="p">:</span>
+</span><span id="L-121"><a href="#L-121"><span class="linenos">121</span></a>                <span class="n">click</span><span class="o">.</span><span class="n">secho</span><span class="p">(</span><span class="s1">&#39;Invalid model ID = </span><span class="si">%s</span><span class="s1">&#39;</span> <span class="o">%</span> <span class="n">modelID</span><span class="p">,</span> <span class="n">bg</span> <span class="o">=</span> <span class="s1">&#39;red&#39;</span><span class="p">,</span> <span class="n">fg</span> <span class="o">=</span> <span class="s1">&#39;white&#39;</span><span class="p">)</span>
+</span><span id="L-122"><a href="#L-122"><span class="linenos">122</span></a>        <span class="n">click</span><span class="o">.</span><span class="n">secho</span><span class="p">(</span><span class="s1">&#39;Active model: </span><span class="si">%s</span><span class="se">\n</span><span class="s1">&#39;</span> <span class="o">%</span> <span class="bp">self</span><span class="o">.</span><span class="n">_client</span><span class="o">.</span><span class="n">model</span><span class="p">,</span> <span class="n">fg</span> <span class="o">=</span> <span class="s1">&#39;green&#39;</span><span class="p">,</span> <span class="n">bold</span> <span class="o">=</span> <span class="kc">True</span><span class="p">)</span>
+</span><span id="L-123"><a href="#L-123"><span class="linenos">123</span></a>        <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_client</span><span class="o">.</span><span class="n">model</span>
+</span><span id="L-124"><a href="#L-124"><span class="linenos">124</span></a>
+</span><span id="L-125"><a href="#L-125"><span class="linenos">125</span></a>
+</span><span id="L-126"><a href="#L-126"><span class="linenos">126</span></a>
+</span><span id="L-127"><a href="#L-127"><span class="linenos">127</span></a>    <span class="k">def</span> <span class="nf">displayModels</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">list</span><span class="p">:</span>
+</span><span id="L-128"><a href="#L-128"><span class="linenos">128</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
+</span><span id="L-129"><a href="#L-129"><span class="linenos">129</span></a><span class="sd">        Display the list of models supported by the API.</span>
+</span><span id="L-130"><a href="#L-130"><span class="linenos">130</span></a>
+</span><span id="L-131"><a href="#L-131"><span class="linenos">131</span></a><span class="sd">        Returns</span>
+</span><span id="L-132"><a href="#L-132"><span class="linenos">132</span></a><span class="sd">        =======</span>
+</span><span id="L-133"><a href="#L-133"><span class="linenos">133</span></a><span class="sd">        A list of strings, each corresponding to a model name.</span>
+</span><span id="L-134"><a href="#L-134"><span class="linenos">134</span></a><span class="sd">        &quot;&quot;&quot;</span>
+</span><span id="L-135"><a href="#L-135"><span class="linenos">135</span></a>        <span class="bp">self</span><span class="o">.</span><span class="n">activeModel</span><span class="p">()</span>
+</span><span id="L-136"><a href="#L-136"><span class="linenos">136</span></a>        <span class="nb">print</span><span class="p">(</span><span class="s1">&#39;Available models:</span><span class="se">\n</span><span class="s1">&#39;</span><span class="p">)</span>
+</span><span id="L-137"><a href="#L-137"><span class="linenos">137</span></a>        <span class="n">n</span> <span class="o">=</span> <span class="mi">1</span>
+</span><span id="L-138"><a href="#L-138"><span class="linenos">138</span></a>        <span class="k">for</span> <span class="n">model</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">_client</span><span class="o">.</span><span class="n">models</span><span class="o">.</span><span class="n">keys</span><span class="p">():</span>
+</span><span id="L-139"><a href="#L-139"><span class="linenos">139</span></a>            <span class="nb">print</span><span class="p">(</span><span class="s1">&#39;</span><span class="si">%2d</span><span class="s1"> - </span><span class="si">%s</span><span class="s1">&#39;</span> <span class="o">%</span> <span class="p">(</span><span class="n">n</span><span class="p">,</span> <span class="n">model</span><span class="p">))</span>
+</span><span id="L-140"><a href="#L-140"><span class="linenos">140</span></a>            <span class="n">n</span> <span class="o">+=</span> <span class="mi">1</span>
+</span><span id="L-141"><a href="#L-141"><span class="linenos">141</span></a>        <span class="nb">print</span><span class="p">()</span>
+</span><span id="L-142"><a href="#L-142"><span class="linenos">142</span></a>
+</span><span id="L-143"><a href="#L-143"><span class="linenos">143</span></a>        <span class="k">return</span> <span class="nb">list</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">_client</span><span class="o">.</span><span class="n">models</span><span class="o">.</span><span class="n">keys</span><span class="p">())</span>
 </span><span id="L-144"><a href="#L-144"><span class="linenos">144</span></a>
-</span><span id="L-145"><a href="#L-145"><span class="linenos">145</span></a>        <span class="n">editingMode</span> <span class="o">=</span> <span class="nb">str</span><span class="p">(</span><span class="n">session</span><span class="o">.</span><span class="n">editing_mode</span><span class="p">)</span><span class="o">.</span><span class="n">replace</span><span class="p">(</span><span class="s1">&#39;EditingMode.&#39;</span><span class="p">,</span> <span class="s1">&#39;&#39;</span><span class="p">)</span><span class="o">.</span><span class="n">lower</span><span class="p">()</span>
-</span><span id="L-146"><a href="#L-146"><span class="linenos">146</span></a>        <span class="n">click</span><span class="o">.</span><span class="n">secho</span><span class="p">(</span><span class="s1">&#39;Editing mode = </span><span class="si">%s</span><span class="s1">&#39;</span> <span class="o">%</span> <span class="n">editingMode</span><span class="p">,</span> <span class="n">fg</span> <span class="o">=</span> <span class="s1">&#39;bright_blue&#39;</span><span class="p">)</span>
-</span><span id="L-147"><a href="#L-147"><span class="linenos">147</span></a>
-</span><span id="L-148"><a href="#L-148"><span class="linenos">148</span></a>        <span class="k">return</span> <span class="n">session</span>
+</span><span id="L-145"><a href="#L-145"><span class="linenos">145</span></a>
+</span><span id="L-146"><a href="#L-146"><span class="linenos">146</span></a>    <span class="k">def</span> <span class="nf">editingMode</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">session</span><span class="p">:</span> <span class="n">PromptSession</span><span class="p">,</span> <span class="n">mode</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="kc">None</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">PromptSession</span><span class="p">:</span>
+</span><span id="L-147"><a href="#L-147"><span class="linenos">147</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
+</span><span id="L-148"><a href="#L-148"><span class="linenos">148</span></a><span class="sd">        Sets the editing mode to `vi` or `emacs`.</span>
 </span><span id="L-149"><a href="#L-149"><span class="linenos">149</span></a>
-</span><span id="L-150"><a href="#L-150"><span class="linenos">150</span></a>    <span class="k">def</span> <span class="nf">_queryStyle</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">newStyle</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="kc">None</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">bool</span><span class="p">:</span>
-</span><span id="L-151"><a href="#L-151"><span class="linenos">151</span></a>        <span class="k">if</span> <span class="n">newStyle</span><span class="p">:</span>
-</span><span id="L-152"><a href="#L-152"><span class="linenos">152</span></a>            <span class="bp">self</span><span class="o">.</span><span class="n">_queryCodeStyle</span> <span class="o">=</span> <span class="n">newStyle</span> <span class="o">!=</span> <span class="s1">&#39;human&#39;</span>
-</span><span id="L-153"><a href="#L-153"><span class="linenos">153</span></a>        <span class="n">click</span><span class="o">.</span><span class="n">secho</span><span class="p">(</span><span class="s1">&#39;Coding query style = </span><span class="si">%s</span><span class="s1">&#39;</span> <span class="o">%</span> <span class="bp">self</span><span class="o">.</span><span class="n">_queryCodeStyle</span><span class="p">,</span> <span class="n">fg</span> <span class="o">=</span> <span class="s1">&#39;bright_blue&#39;</span><span class="p">)</span>
-</span><span id="L-154"><a href="#L-154"><span class="linenos">154</span></a>        <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_queryCodeStyle</span>
-</span><span id="L-155"><a href="#L-155"><span class="linenos">155</span></a>
-</span><span id="L-156"><a href="#L-156"><span class="linenos">156</span></a>    <span class="k">def</span> <span class="nf">_makeQuery</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">userQuery</span><span class="p">:</span> <span class="nb">str</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">str</span><span class="p">:</span>
-</span><span id="L-157"><a href="#L-157"><span class="linenos">157</span></a>        <span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">_queryCodeStyle</span><span class="p">:</span>
-</span><span id="L-158"><a href="#L-158"><span class="linenos">158</span></a>            <span class="n">userQuery</span> <span class="o">=</span> <span class="n">QUERY_DETAILED</span><span class="o">+</span><span class="n">userQuery</span>
-</span><span id="L-159"><a href="#L-159"><span class="linenos">159</span></a>
-</span><span id="L-160"><a href="#L-160"><span class="linenos">160</span></a>        <span class="k">return</span> <span class="n">codex</span><span class="o">.</span><span class="n">core</span><span class="p">(</span><span class="n">userQuery</span><span class="p">)</span>
-</span><span id="L-161"><a href="#L-161"><span class="linenos">161</span></a>
-</span><span id="L-162"><a href="#L-162"><span class="linenos">162</span></a>
-</span><span id="L-163"><a href="#L-163"><span class="linenos">163</span></a>    <span class="k">def</span> <span class="nf">_saveConfigTo</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">config</span><span class="p">:</span> <span class="nb">dict</span><span class="p">,</span> <span class="n">fileName</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="n">CONFIG_FILE_NAME</span><span class="p">,</span> <span class="n">pathName</span> <span class="o">=</span> <span class="n">CONFIG_PATH</span><span class="p">):</span>
-</span><span id="L-164"><a href="#L-164"><span class="linenos">164</span></a>        <span class="k">if</span> <span class="ow">not</span> <span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">exists</span><span class="p">(</span><span class="n">pathName</span><span class="p">):</span>
-</span><span id="L-165"><a href="#L-165"><span class="linenos">165</span></a>            <span class="n">os</span><span class="o">.</span><span class="n">makedirs</span><span class="p">(</span><span class="n">pathName</span><span class="p">)</span>
-</span><span id="L-166"><a href="#L-166"><span class="linenos">166</span></a>        <span class="k">with</span> <span class="nb">open</span><span class="p">(</span><span class="n">fileName</span><span class="p">,</span> <span class="s1">&#39;w&#39;</span><span class="p">)</span> <span class="k">as</span> <span class="n">outputFile</span><span class="p">:</span>
-</span><span id="L-167"><a href="#L-167"><span class="linenos">167</span></a>            <span class="n">yaml</span><span class="o">.</span><span class="n">dump</span><span class="p">(</span><span class="n">config</span><span class="p">,</span> <span class="n">outputFile</span><span class="p">)</span>
-</span><span id="L-168"><a href="#L-168"><span class="linenos">168</span></a>
-</span><span id="L-169"><a href="#L-169"><span class="linenos">169</span></a>
-</span><span id="L-170"><a href="#L-170"><span class="linenos">170</span></a>    <span class="k">def</span> <span class="nf">_loadConfigFrom</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">fileName</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="n">CONFIG_FILE_NAME</span><span class="p">,</span> <span class="n">pathName</span> <span class="o">=</span> <span class="n">CONFIG_PATH</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">dict</span><span class="p">:</span>
-</span><span id="L-171"><a href="#L-171"><span class="linenos">171</span></a>        <span class="k">if</span> <span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">exists</span><span class="p">(</span><span class="n">fileName</span><span class="p">):</span>
-</span><span id="L-172"><a href="#L-172"><span class="linenos">172</span></a>            <span class="k">with</span> <span class="nb">open</span><span class="p">(</span><span class="n">fileName</span><span class="p">,</span> <span class="s1">&#39;r&#39;</span><span class="p">)</span> <span class="k">as</span> <span class="n">inputFile</span><span class="p">:</span>
-</span><span id="L-173"><a href="#L-173"><span class="linenos">173</span></a>                <span class="n">config</span> <span class="o">=</span> <span class="n">yaml</span><span class="o">.</span><span class="n">safe_load</span><span class="p">(</span><span class="n">inputFile</span><span class="p">)</span>
-</span><span id="L-174"><a href="#L-174"><span class="linenos">174</span></a>        <span class="k">else</span><span class="p">:</span>
-</span><span id="L-175"><a href="#L-175"><span class="linenos">175</span></a>            <span class="c1"># TODO:  turn this into a self-contained object; maybe a named</span>
-</span><span id="L-176"><a href="#L-176"><span class="linenos">176</span></a>            <span class="c1">#        tuple?</span>
-</span><span id="L-177"><a href="#L-177"><span class="linenos">177</span></a>            <span class="n">config</span> <span class="o">=</span> <span class="p">{</span>
-</span><span id="L-178"><a href="#L-178"><span class="linenos">178</span></a>                <span class="s1">&#39;activeModel&#39;</span><span class="p">:</span> <span class="n">DEFAULT_MODEL_NAME</span><span class="p">,</span>
-</span><span id="L-179"><a href="#L-179"><span class="linenos">179</span></a>                <span class="s1">&#39;editingMode&#39;</span><span class="p">:</span> <span class="s1">&#39;vi&#39;</span><span class="p">,</span>
-</span><span id="L-180"><a href="#L-180"><span class="linenos">180</span></a>                <span class="s1">&#39;queryCodeStyle&#39;</span><span class="p">:</span> <span class="n">_queryCodeStyle</span><span class="p">,</span>
-</span><span id="L-181"><a href="#L-181"><span class="linenos">181</span></a>            <span class="p">}</span>
-</span><span id="L-182"><a href="#L-182"><span class="linenos">182</span></a>            <span class="n">_saveConfigTo</span><span class="p">(</span><span class="n">config</span><span class="p">,</span> <span class="n">fileName</span><span class="p">,</span> <span class="n">pathName</span><span class="p">)</span>
-</span><span id="L-183"><a href="#L-183"><span class="linenos">183</span></a>        <span class="k">return</span> <span class="n">config</span>
+</span><span id="L-150"><a href="#L-150"><span class="linenos">150</span></a><span class="sd">        Arguments</span>
+</span><span id="L-151"><a href="#L-151"><span class="linenos">151</span></a><span class="sd">        =========</span>
+</span><span id="L-152"><a href="#L-152"><span class="linenos">152</span></a><span class="sd">            session</span>
+</span><span id="L-153"><a href="#L-153"><span class="linenos">153</span></a><span class="sd">        An instance of `PromptSession` from the current Click hosting.</span>
+</span><span id="L-154"><a href="#L-154"><span class="linenos">154</span></a>
+</span><span id="L-155"><a href="#L-155"><span class="linenos">155</span></a><span class="sd">            mode</span>
+</span><span id="L-156"><a href="#L-156"><span class="linenos">156</span></a><span class="sd">        A string with the values of &#39;vi&#39; or &#39;emacs&#39;; any other value is</span>
+</span><span id="L-157"><a href="#L-157"><span class="linenos">157</span></a><span class="sd">        overriden with `vi`.</span>
+</span><span id="L-158"><a href="#L-158"><span class="linenos">158</span></a>
+</span><span id="L-159"><a href="#L-159"><span class="linenos">159</span></a><span class="sd">        Returns</span>
+</span><span id="L-160"><a href="#L-160"><span class="linenos">160</span></a><span class="sd">        =======</span>
+</span><span id="L-161"><a href="#L-161"><span class="linenos">161</span></a><span class="sd">        An updated PromptSession instance that with the value of `mode`.</span>
+</span><span id="L-162"><a href="#L-162"><span class="linenos">162</span></a><span class="sd">        &quot;&quot;&quot;</span>
+</span><span id="L-163"><a href="#L-163"><span class="linenos">163</span></a>        <span class="k">if</span> <span class="n">mode</span><span class="p">:</span>
+</span><span id="L-164"><a href="#L-164"><span class="linenos">164</span></a>            <span class="n">mode</span> <span class="o">=</span> <span class="n">mode</span><span class="o">.</span><span class="n">lower</span><span class="p">()</span>
+</span><span id="L-165"><a href="#L-165"><span class="linenos">165</span></a>            <span class="bp">self</span><span class="o">.</span><span class="n">_editingMode</span> <span class="o">=</span> <span class="n">EditingMode</span><span class="o">.</span><span class="n">EMACS</span> <span class="k">if</span> <span class="n">mode</span> <span class="o">==</span> <span class="s1">&#39;emacs&#39;</span> <span class="k">else</span> <span class="n">EditingMode</span><span class="o">.</span><span class="n">VI</span>
+</span><span id="L-166"><a href="#L-166"><span class="linenos">166</span></a>            <span class="n">session</span> <span class="o">=</span> <span class="n">PromptSession</span><span class="p">(</span><span class="n">editing_mode</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_editingMode</span><span class="p">)</span>
+</span><span id="L-167"><a href="#L-167"><span class="linenos">167</span></a>
+</span><span id="L-168"><a href="#L-168"><span class="linenos">168</span></a>        <span class="n">editingMode</span> <span class="o">=</span> <span class="nb">str</span><span class="p">(</span><span class="n">session</span><span class="o">.</span><span class="n">editing_mode</span><span class="p">)</span><span class="o">.</span><span class="n">replace</span><span class="p">(</span><span class="s1">&#39;EditingMode.&#39;</span><span class="p">,</span> <span class="s1">&#39;&#39;</span><span class="p">)</span><span class="o">.</span><span class="n">lower</span><span class="p">()</span>
+</span><span id="L-169"><a href="#L-169"><span class="linenos">169</span></a>        <span class="n">click</span><span class="o">.</span><span class="n">secho</span><span class="p">(</span><span class="s1">&#39;Editing mode = </span><span class="si">%s</span><span class="s1">&#39;</span> <span class="o">%</span> <span class="n">editingMode</span><span class="p">,</span> <span class="n">fg</span> <span class="o">=</span> <span class="s1">&#39;bright_blue&#39;</span><span class="p">)</span>
+</span><span id="L-170"><a href="#L-170"><span class="linenos">170</span></a>
+</span><span id="L-171"><a href="#L-171"><span class="linenos">171</span></a>        <span class="k">return</span> <span class="n">session</span>
+</span><span id="L-172"><a href="#L-172"><span class="linenos">172</span></a>
+</span><span id="L-173"><a href="#L-173"><span class="linenos">173</span></a>
+</span><span id="L-174"><a href="#L-174"><span class="linenos">174</span></a>    <span class="nd">@property</span>
+</span><span id="L-175"><a href="#L-175"><span class="linenos">175</span></a>    <span class="k">def</span> <span class="nf">queryCodeStyle</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">bool</span><span class="p">:</span>
+</span><span id="L-176"><a href="#L-176"><span class="linenos">176</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
+</span><span id="L-177"><a href="#L-177"><span class="linenos">177</span></a><span class="sd">        Return `True` if the current style is code, `False` for human.  The object uses</span>
+</span><span id="L-178"><a href="#L-178"><span class="linenos">178</span></a><span class="sd">        this Boolean value to determine the type of query to execute.  Future</span>
+</span><span id="L-179"><a href="#L-179"><span class="linenos">179</span></a><span class="sd">        versions may use the words `code` or `human`, or perhaps an enum with</span>
+</span><span id="L-180"><a href="#L-180"><span class="linenos">180</span></a><span class="sd">        those values.</span>
+</span><span id="L-181"><a href="#L-181"><span class="linenos">181</span></a><span class="sd">        &quot;&quot;&quot;</span>
+</span><span id="L-182"><a href="#L-182"><span class="linenos">182</span></a>        <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_queryCodeStyle</span>
+</span><span id="L-183"><a href="#L-183"><span class="linenos">183</span></a>
 </span><span id="L-184"><a href="#L-184"><span class="linenos">184</span></a>
-</span><span id="L-185"><a href="#L-185"><span class="linenos">185</span></a>
-</span><span id="L-186"><a href="#L-186"><span class="linenos">186</span></a>    <span class="k">def</span> <span class="nf">_displayConfigInfo</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
-</span><span id="L-187"><a href="#L-187"><span class="linenos">187</span></a>        <span class="n">click</span><span class="o">.</span><span class="n">secho</span><span class="p">(</span><span class="s1">&#39;Config file: </span><span class="si">%s</span><span class="s1">&#39;</span> <span class="o">%</span> <span class="n">CONFIG_FILE_NAME</span><span class="p">)</span>
-</span><span id="L-188"><a href="#L-188"><span class="linenos">188</span></a>        <span class="n">click</span><span class="o">.</span><span class="n">secho</span><span class="p">(</span><span class="nb">str</span><span class="p">(</span><span class="n">_loadConfigFrom</span><span class="p">())</span><span class="o">+</span><span class="s1">&#39;</span><span class="se">\n</span><span class="s1">&#39;</span><span class="p">)</span>
-</span><span id="L-189"><a href="#L-189"><span class="linenos">189</span></a>
-</span><span id="L-190"><a href="#L-190"><span class="linenos">190</span></a>
-</span><span id="L-191"><a href="#L-191"><span class="linenos">191</span></a>    <span class="k">def</span> <span class="nf">run</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
-</span><span id="L-192"><a href="#L-192"><span class="linenos">192</span></a>        <span class="k">pass</span>
-</span><span id="L-193"><a href="#L-193"><span class="linenos">193</span></a>
+</span><span id="L-185"><a href="#L-185"><span class="linenos">185</span></a>    <span class="nd">@queryCodeStyle</span><span class="o">.</span><span class="n">setter</span>
+</span><span id="L-186"><a href="#L-186"><span class="linenos">186</span></a>    <span class="k">def</span> <span class="nf">queryCodeStyle</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">newStyle</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="kc">None</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">bool</span><span class="p">:</span>
+</span><span id="L-187"><a href="#L-187"><span class="linenos">187</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
+</span><span id="L-188"><a href="#L-188"><span class="linenos">188</span></a><span class="sd">        Set the receiver query code style to `newStyle`.  Code style queries</span>
+</span><span id="L-189"><a href="#L-189"><span class="linenos">189</span></a><span class="sd">        generate responses that include code snippets in Python or JavaScript,</span>
+</span><span id="L-190"><a href="#L-190"><span class="linenos">190</span></a><span class="sd">        and URLs to references that show how to address the query topic.</span>
+</span><span id="L-191"><a href="#L-191"><span class="linenos">191</span></a><span class="sd">        `human` style queries produce textual, prose responses that address the</span>
+</span><span id="L-192"><a href="#L-192"><span class="linenos">192</span></a><span class="sd">        query topic in detail, and may or may not contain code, even if the</span>
+</span><span id="L-193"><a href="#L-193"><span class="linenos">193</span></a><span class="sd">        query was about a programming concept.</span>
 </span><span id="L-194"><a href="#L-194"><span class="linenos">194</span></a>
-</span><span id="L-195"><a href="#L-195"><span class="linenos">195</span></a><span class="c1"># *** implementation ***</span>
-</span><span id="L-196"><a href="#L-196"><span class="linenos">196</span></a>
-</span><span id="L-197"><a href="#L-197"><span class="linenos">197</span></a><span class="k">def</span> <span class="nf">_helpUser</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="nb">str</span><span class="p">:</span>
-</span><span id="L-198"><a href="#L-198"><span class="linenos">198</span></a>    <span class="k">return</span> <span class="s2">&quot;Syntax: codex repl | &#39;your coding question here in single quotes&#39;</span><span class="se">\n</span><span class="s2">&quot;</span>
-</span><span id="L-199"><a href="#L-199"><span class="linenos">199</span></a>
-</span><span id="L-200"><a href="#L-200"><span class="linenos">200</span></a>
-</span><span id="L-201"><a href="#L-201"><span class="linenos">201</span></a><span class="k">def</span> <span class="nf">codexCore</span><span class="p">(</span><span class="n">userQuery</span><span class="p">:</span> <span class="nb">str</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">str</span><span class="p">:</span>
-</span><span id="L-202"><a href="#L-202"><span class="linenos">202</span></a><span class="w">    </span><span class="sd">&quot;&quot;&quot;</span>
-</span><span id="L-203"><a href="#L-203"><span class="linenos">203</span></a><span class="sd">    Send a user query to the model for processing.</span>
-</span><span id="L-204"><a href="#L-204"><span class="linenos">204</span></a>
-</span><span id="L-205"><a href="#L-205"><span class="linenos">205</span></a><span class="sd">    Arguments</span>
-</span><span id="L-206"><a href="#L-206"><span class="linenos">206</span></a><span class="sd">    ---------</span>
-</span><span id="L-207"><a href="#L-207"><span class="linenos">207</span></a><span class="sd">        userQuery</span>
-</span><span id="L-208"><a href="#L-208"><span class="linenos">208</span></a><span class="sd">    A string with the user query, most often a programming question.</span>
-</span><span id="L-209"><a href="#L-209"><span class="linenos">209</span></a>
-</span><span id="L-210"><a href="#L-210"><span class="linenos">210</span></a><span class="sd">    Returns</span>
-</span><span id="L-211"><a href="#L-211"><span class="linenos">211</span></a><span class="sd">    -------</span>
-</span><span id="L-212"><a href="#L-212"><span class="linenos">212</span></a><span class="sd">    The result of the query, or `None` if the query was empty.</span>
-</span><span id="L-213"><a href="#L-213"><span class="linenos">213</span></a><span class="sd">    &quot;&quot;&quot;</span>
-</span><span id="L-214"><a href="#L-214"><span class="linenos">214</span></a>    <span class="k">global</span> <span class="n">_client</span>
-</span><span id="L-215"><a href="#L-215"><span class="linenos">215</span></a>
-</span><span id="L-216"><a href="#L-216"><span class="linenos">216</span></a>    <span class="n">result</span> <span class="o">=</span> <span class="kc">None</span>
-</span><span id="L-217"><a href="#L-217"><span class="linenos">217</span></a>    <span class="k">if</span> <span class="n">userQuery</span><span class="p">:</span>
-</span><span id="L-218"><a href="#L-218"><span class="linenos">218</span></a>        <span class="k">if</span> <span class="ow">not</span> <span class="n">_client</span><span class="p">:</span>
-</span><span id="L-219"><a href="#L-219"><span class="linenos">219</span></a>            <span class="n">_client</span> <span class="o">=</span> <span class="n">PerplexityClient</span><span class="p">(</span><span class="n">key</span> <span class="o">=</span> <span class="n">os</span><span class="o">.</span><span class="n">environ</span><span class="p">[</span><span class="s1">&#39;PERPLEXITY_API_KEY&#39;</span><span class="p">])</span>
-</span><span id="L-220"><a href="#L-220"><span class="linenos">220</span></a>            <span class="n">_client</span><span class="o">.</span><span class="n">model</span> <span class="o">=</span> <span class="n">DEFAULT_MODEL_NAME</span>
-</span><span id="L-221"><a href="#L-221"><span class="linenos">221</span></a>        <span class="n">result</span> <span class="o">=</span> <span class="n">_client</span><span class="o">.</span><span class="n">query</span><span class="p">(</span><span class="n">userQuery</span><span class="p">)</span>
-</span><span id="L-222"><a href="#L-222"><span class="linenos">222</span></a>
-</span><span id="L-223"><a href="#L-223"><span class="linenos">223</span></a>    <span class="k">return</span> <span class="n">result</span>
-</span><span id="L-224"><a href="#L-224"><span class="linenos">224</span></a>
+</span><span id="L-195"><a href="#L-195"><span class="linenos">195</span></a><span class="sd">        The method will default to `code` style for any value of `newStyle` that</span>
+</span><span id="L-196"><a href="#L-196"><span class="linenos">196</span></a><span class="sd">        isn&#39;t `code`.</span>
+</span><span id="L-197"><a href="#L-197"><span class="linenos">197</span></a>
+</span><span id="L-198"><a href="#L-198"><span class="linenos">198</span></a><span class="sd">        Arguments</span>
+</span><span id="L-199"><a href="#L-199"><span class="linenos">199</span></a><span class="sd">        =========</span>
+</span><span id="L-200"><a href="#L-200"><span class="linenos">200</span></a><span class="sd">            `newStyle`</span>
+</span><span id="L-201"><a href="#L-201"><span class="linenos">201</span></a><span class="sd">        A string with either value of &#39;code&#39; or &#39;human&#39;.</span>
+</span><span id="L-202"><a href="#L-202"><span class="linenos">202</span></a>
+</span><span id="L-203"><a href="#L-203"><span class="linenos">203</span></a><span class="sd">        Returns</span>
+</span><span id="L-204"><a href="#L-204"><span class="linenos">204</span></a><span class="sd">        =======</span>
+</span><span id="L-205"><a href="#L-205"><span class="linenos">205</span></a><span class="sd">        `True` if the current style is code, `False` for human.  The object uses</span>
+</span><span id="L-206"><a href="#L-206"><span class="linenos">206</span></a><span class="sd">        this Boolean value to determine the type of query to execute.  Future</span>
+</span><span id="L-207"><a href="#L-207"><span class="linenos">207</span></a><span class="sd">        versions may use the words `code` or `human`, or perhaps an enum with</span>
+</span><span id="L-208"><a href="#L-208"><span class="linenos">208</span></a><span class="sd">        those values.</span>
+</span><span id="L-209"><a href="#L-209"><span class="linenos">209</span></a><span class="sd">        &quot;&quot;&quot;</span>
+</span><span id="L-210"><a href="#L-210"><span class="linenos">210</span></a>        <span class="k">if</span> <span class="n">newStyle</span><span class="p">:</span>
+</span><span id="L-211"><a href="#L-211"><span class="linenos">211</span></a>            <span class="bp">self</span><span class="o">.</span><span class="n">_queryCodeStyle</span> <span class="o">=</span> <span class="n">newStyle</span> <span class="o">!=</span> <span class="s1">&#39;human&#39;</span>
+</span><span id="L-212"><a href="#L-212"><span class="linenos">212</span></a>        <span class="n">click</span><span class="o">.</span><span class="n">secho</span><span class="p">(</span><span class="s1">&#39;Coding query style = </span><span class="si">%s</span><span class="s1">&#39;</span> <span class="o">%</span> <span class="bp">self</span><span class="o">.</span><span class="n">_queryCodeStyle</span><span class="p">,</span> <span class="n">fg</span> <span class="o">=</span> <span class="s1">&#39;bright_blue&#39;</span><span class="p">)</span>
+</span><span id="L-213"><a href="#L-213"><span class="linenos">213</span></a>
+</span><span id="L-214"><a href="#L-214"><span class="linenos">214</span></a>
+</span><span id="L-215"><a href="#L-215"><span class="linenos">215</span></a>    <span class="k">def</span> <span class="nf">makeQuery</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">userQuery</span><span class="p">:</span> <span class="nb">str</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">str</span><span class="p">:</span>
+</span><span id="L-216"><a href="#L-216"><span class="linenos">216</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
+</span><span id="L-217"><a href="#L-217"><span class="linenos">217</span></a><span class="sd">        Execute a query using the `PerplexityClient` and return the result in</span>
+</span><span id="L-218"><a href="#L-218"><span class="linenos">218</span></a><span class="sd">        a string.</span>
+</span><span id="L-219"><a href="#L-219"><span class="linenos">219</span></a>
+</span><span id="L-220"><a href="#L-220"><span class="linenos">220</span></a><span class="sd">        Arguments</span>
+</span><span id="L-221"><a href="#L-221"><span class="linenos">221</span></a><span class="sd">        =========</span>
+</span><span id="L-222"><a href="#L-222"><span class="linenos">222</span></a><span class="sd">            userQuery</span>
+</span><span id="L-223"><a href="#L-223"><span class="linenos">223</span></a><span class="sd">        A free from, natural language string describing the request to the AI</span>
+</span><span id="L-224"><a href="#L-224"><span class="linenos">224</span></a><span class="sd">        provider.</span>
 </span><span id="L-225"><a href="#L-225"><span class="linenos">225</span></a>
-</span><span id="L-226"><a href="#L-226"><span class="linenos">226</span></a><span class="k">def</span> <span class="nf">_stdinHasData</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="nb">bool</span><span class="p">:</span>
-</span><span id="L-227"><a href="#L-227"><span class="linenos">227</span></a><span class="w">    </span><span class="sd">&quot;&quot;&quot;</span>
-</span><span id="L-228"><a href="#L-228"><span class="linenos">228</span></a><span class="sd">    Checks if there&#39;s data pending to be processed off `stdin`.  It&#39;s a</span>
-</span><span id="L-229"><a href="#L-229"><span class="linenos">229</span></a><span class="sd">    convinience function for readability.</span>
-</span><span id="L-230"><a href="#L-230"><span class="linenos">230</span></a>
-</span><span id="L-231"><a href="#L-231"><span class="linenos">231</span></a><span class="sd">    Returns</span>
-</span><span id="L-232"><a href="#L-232"><span class="linenos">232</span></a><span class="sd">    -------</span>
-</span><span id="L-233"><a href="#L-233"><span class="linenos">233</span></a><span class="sd">    `True` if the `stdin` stream is pending processing.</span>
-</span><span id="L-234"><a href="#L-234"><span class="linenos">234</span></a><span class="sd">    &quot;&quot;&quot;</span>
-</span><span id="L-235"><a href="#L-235"><span class="linenos">235</span></a>    <span class="k">return</span> <span class="n">select</span><span class="o">.</span><span class="n">select</span><span class="p">([</span><span class="n">sys</span><span class="o">.</span><span class="n">stdin</span><span class="p">],</span> <span class="p">[],</span> <span class="p">[],</span> <span class="mi">0</span><span class="p">)</span> <span class="o">==</span> <span class="p">([</span><span class="n">sys</span><span class="o">.</span><span class="n">stdin</span><span class="p">],</span> <span class="p">[],</span> <span class="p">[])</span>
-</span><span id="L-236"><a href="#L-236"><span class="linenos">236</span></a>
-</span><span id="L-237"><a href="#L-237"><span class="linenos">237</span></a>
-</span><span id="L-238"><a href="#L-238"><span class="linenos">238</span></a><span class="k">def</span> <span class="nf">_assembleInput</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="nb">str</span><span class="p">:</span>
-</span><span id="L-239"><a href="#L-239"><span class="linenos">239</span></a>    <span class="n">result</span> <span class="o">=</span> <span class="s1">&#39;&#39;</span>
-</span><span id="L-240"><a href="#L-240"><span class="linenos">240</span></a>    <span class="k">for</span> <span class="n">line</span> <span class="ow">in</span> <span class="n">sys</span><span class="o">.</span><span class="n">stdin</span><span class="p">:</span>
-</span><span id="L-241"><a href="#L-241"><span class="linenos">241</span></a>        <span class="n">result</span> <span class="o">+=</span> <span class="n">line</span>
-</span><span id="L-242"><a href="#L-242"><span class="linenos">242</span></a>
-</span><span id="L-243"><a href="#L-243"><span class="linenos">243</span></a>    <span class="k">return</span> <span class="n">result</span>
-</span><span id="L-244"><a href="#L-244"><span class="linenos">244</span></a>
-</span><span id="L-245"><a href="#L-245"><span class="linenos">245</span></a>
-</span><span id="L-246"><a href="#L-246"><span class="linenos">246</span></a><span class="k">def</span> <span class="nf">_activeModel</span><span class="p">(</span><span class="n">modelID</span><span class="p">:</span> <span class="nb">int</span> <span class="o">=</span> <span class="mi">0</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">str</span><span class="p">:</span>
-</span><span id="L-247"><a href="#L-247"><span class="linenos">247</span></a>    <span class="k">if</span> <span class="n">modelID</span><span class="p">:</span>
-</span><span id="L-248"><a href="#L-248"><span class="linenos">248</span></a>        <span class="k">try</span><span class="p">:</span>
-</span><span id="L-249"><a href="#L-249"><span class="linenos">249</span></a>            <span class="n">modelsList</span> <span class="o">=</span> <span class="nb">list</span><span class="p">(</span><span class="n">_client</span><span class="o">.</span><span class="n">models</span><span class="o">.</span><span class="n">keys</span><span class="p">())</span>
-</span><span id="L-250"><a href="#L-250"><span class="linenos">250</span></a>            <span class="n">ref</span> <span class="o">=</span> <span class="n">modelID</span><span class="o">-</span><span class="mi">1</span>
-</span><span id="L-251"><a href="#L-251"><span class="linenos">251</span></a>            <span class="n">model</span> <span class="o">=</span> <span class="n">modelsList</span><span class="p">[</span><span class="n">ref</span><span class="p">]</span>
-</span><span id="L-252"><a href="#L-252"><span class="linenos">252</span></a>            <span class="n">_client</span><span class="o">.</span><span class="n">model</span> <span class="o">=</span> <span class="n">model</span>
-</span><span id="L-253"><a href="#L-253"><span class="linenos">253</span></a>        <span class="k">except</span><span class="p">:</span>
-</span><span id="L-254"><a href="#L-254"><span class="linenos">254</span></a>            <span class="n">click</span><span class="o">.</span><span class="n">secho</span><span class="p">(</span><span class="s1">&#39;Invalid model ID = </span><span class="si">%s</span><span class="s1">&#39;</span> <span class="o">%</span> <span class="n">modelID</span><span class="p">,</span> <span class="n">bg</span> <span class="o">=</span> <span class="s1">&#39;red&#39;</span><span class="p">,</span> <span class="n">fg</span> <span class="o">=</span> <span class="s1">&#39;white&#39;</span><span class="p">)</span>
-</span><span id="L-255"><a href="#L-255"><span class="linenos">255</span></a>            <span class="k">if</span> <span class="n">modelID</span> <span class="ow">in</span> <span class="nb">range</span><span class="p">(</span><span class="mi">1</span><span class="p">,</span> <span class="nb">len</span><span class="p">(</span><span class="n">modelsList</span><span class="p">)):</span>
-</span><span id="L-256"><a href="#L-256"><span class="linenos">256</span></a>                <span class="n">click</span><span class="o">.</span><span class="n">secho</span><span class="p">(</span><span class="s1">&#39;Model no longer supported by the back-end Perplexity provider&#39;</span><span class="p">,</span> <span class="n">bg</span> <span class="o">=</span> <span class="s1">&#39;bright_yellow&#39;</span><span class="p">,</span> <span class="n">fg</span> <span class="o">=</span> <span class="s1">&#39;black&#39;</span><span class="p">)</span>
-</span><span id="L-257"><a href="#L-257"><span class="linenos">257</span></a>    <span class="n">click</span><span class="o">.</span><span class="n">secho</span><span class="p">(</span><span class="s1">&#39;Active model: </span><span class="si">%s</span><span class="se">\n</span><span class="s1">&#39;</span> <span class="o">%</span> <span class="n">_client</span><span class="o">.</span><span class="n">model</span><span class="p">,</span> <span class="n">fg</span> <span class="o">=</span> <span class="s1">&#39;green&#39;</span><span class="p">,</span> <span class="n">bold</span> <span class="o">=</span> <span class="kc">True</span><span class="p">)</span>
-</span><span id="L-258"><a href="#L-258"><span class="linenos">258</span></a>    <span class="k">return</span> <span class="n">_client</span><span class="o">.</span><span class="n">model</span>
-</span><span id="L-259"><a href="#L-259"><span class="linenos">259</span></a>
-</span><span id="L-260"><a href="#L-260"><span class="linenos">260</span></a>
-</span><span id="L-261"><a href="#L-261"><span class="linenos">261</span></a><span class="k">def</span> <span class="nf">_REPLHello</span><span class="p">():</span>
-</span><span id="L-262"><a href="#L-262"><span class="linenos">262</span></a>    <span class="n">click</span><span class="o">.</span><span class="n">clear</span><span class="p">()</span>
-</span><span id="L-263"><a href="#L-263"><span class="linenos">263</span></a>    <span class="n">printF</span><span class="p">(</span><span class="n">HTML</span><span class="p">(</span><span class="s1">&#39;PerplexiPy &lt;b&gt;&lt;ansigreen&gt;Codex playground - coding, scripting, and sysops assistant&lt;/ansigreen&gt;&lt;/b&gt;&#39;</span><span class="p">))</span>
-</span><span id="L-264"><a href="#L-264"><span class="linenos">264</span></a>    <span class="n">_activeModel</span><span class="p">()</span>
-</span><span id="L-265"><a href="#L-265"><span class="linenos">265</span></a>    <span class="n">printF</span><span class="p">(</span><span class="n">HTML</span><span class="p">(</span><span class="s1">&#39;Enter &lt;b&gt;/help&lt;/b&gt; for commands list&#39;</span><span class="p">))</span>
-</span><span id="L-266"><a href="#L-266"><span class="linenos">266</span></a>    <span class="nb">print</span><span class="p">()</span>
-</span><span id="L-267"><a href="#L-267"><span class="linenos">267</span></a>
+</span><span id="L-226"><a href="#L-226"><span class="linenos">226</span></a><span class="sd">        Returns</span>
+</span><span id="L-227"><a href="#L-227"><span class="linenos">227</span></a><span class="sd">        =======</span>
+</span><span id="L-228"><a href="#L-228"><span class="linenos">228</span></a><span class="sd">        The response from the AI/LLM.</span>
+</span><span id="L-229"><a href="#L-229"><span class="linenos">229</span></a>
+</span><span id="L-230"><a href="#L-230"><span class="linenos">230</span></a><span class="sd">        Raises</span>
+</span><span id="L-231"><a href="#L-231"><span class="linenos">231</span></a><span class="sd">        ======</span>
+</span><span id="L-232"><a href="#L-232"><span class="linenos">232</span></a><span class="sd">        `ValueError` if `userQuery` is `None` or an empty string.</span>
+</span><span id="L-233"><a href="#L-233"><span class="linenos">233</span></a><span class="sd">        &quot;&quot;&quot;</span>
+</span><span id="L-234"><a href="#L-234"><span class="linenos">234</span></a>        <span class="k">if</span> <span class="ow">not</span> <span class="n">userQuery</span><span class="p">:</span>
+</span><span id="L-235"><a href="#L-235"><span class="linenos">235</span></a>            <span class="k">raise</span> <span class="ne">ValueError</span><span class="p">(</span><span class="s1">&#39;userQuery string cannot be empty&#39;</span><span class="p">)</span>
+</span><span id="L-236"><a href="#L-236"><span class="linenos">236</span></a>        <span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">_queryCodeStyle</span><span class="p">:</span>
+</span><span id="L-237"><a href="#L-237"><span class="linenos">237</span></a>            <span class="n">userQuery</span> <span class="o">=</span> <span class="n">QUERY_DETAILED</span><span class="o">+</span><span class="n">userQuery</span>
+</span><span id="L-238"><a href="#L-238"><span class="linenos">238</span></a>
+</span><span id="L-239"><a href="#L-239"><span class="linenos">239</span></a>        <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">core</span><span class="p">(</span><span class="n">userQuery</span><span class="p">)</span>
+</span><span id="L-240"><a href="#L-240"><span class="linenos">240</span></a>
+</span><span id="L-241"><a href="#L-241"><span class="linenos">241</span></a>
+</span><span id="L-242"><a href="#L-242"><span class="linenos">242</span></a>    <span class="k">def</span> <span class="nf">_saveConfigTo</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">config</span><span class="p">:</span> <span class="nb">dict</span><span class="p">,</span> <span class="n">fileName</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="n">CONFIG_FILE_NAME</span><span class="p">,</span> <span class="n">pathName</span> <span class="o">=</span> <span class="n">CONFIG_PATH</span><span class="p">):</span>
+</span><span id="L-243"><a href="#L-243"><span class="linenos">243</span></a>        <span class="k">if</span> <span class="ow">not</span> <span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">exists</span><span class="p">(</span><span class="n">pathName</span><span class="p">):</span>
+</span><span id="L-244"><a href="#L-244"><span class="linenos">244</span></a>            <span class="n">os</span><span class="o">.</span><span class="n">makedirs</span><span class="p">(</span><span class="n">pathName</span><span class="p">)</span>
+</span><span id="L-245"><a href="#L-245"><span class="linenos">245</span></a>        <span class="k">with</span> <span class="nb">open</span><span class="p">(</span><span class="n">fileName</span><span class="p">,</span> <span class="s1">&#39;w&#39;</span><span class="p">)</span> <span class="k">as</span> <span class="n">outputFile</span><span class="p">:</span>
+</span><span id="L-246"><a href="#L-246"><span class="linenos">246</span></a>            <span class="n">yaml</span><span class="o">.</span><span class="n">dump</span><span class="p">(</span><span class="n">config</span><span class="p">,</span> <span class="n">outputFile</span><span class="p">)</span>
+</span><span id="L-247"><a href="#L-247"><span class="linenos">247</span></a>
+</span><span id="L-248"><a href="#L-248"><span class="linenos">248</span></a>
+</span><span id="L-249"><a href="#L-249"><span class="linenos">249</span></a>    <span class="k">def</span> <span class="nf">_loadConfigFrom</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">fileName</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="n">CONFIG_FILE_NAME</span><span class="p">,</span> <span class="n">pathName</span> <span class="o">=</span> <span class="n">CONFIG_PATH</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">dict</span><span class="p">:</span>
+</span><span id="L-250"><a href="#L-250"><span class="linenos">250</span></a>        <span class="k">if</span> <span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">exists</span><span class="p">(</span><span class="n">fileName</span><span class="p">):</span>
+</span><span id="L-251"><a href="#L-251"><span class="linenos">251</span></a>            <span class="k">with</span> <span class="nb">open</span><span class="p">(</span><span class="n">fileName</span><span class="p">,</span> <span class="s1">&#39;r&#39;</span><span class="p">)</span> <span class="k">as</span> <span class="n">inputFile</span><span class="p">:</span>
+</span><span id="L-252"><a href="#L-252"><span class="linenos">252</span></a>                <span class="n">config</span> <span class="o">=</span> <span class="n">yaml</span><span class="o">.</span><span class="n">safe_load</span><span class="p">(</span><span class="n">inputFile</span><span class="p">)</span>
+</span><span id="L-253"><a href="#L-253"><span class="linenos">253</span></a>        <span class="k">else</span><span class="p">:</span>
+</span><span id="L-254"><a href="#L-254"><span class="linenos">254</span></a>            <span class="c1"># TODO:  turn this into a self-contained object; maybe a named</span>
+</span><span id="L-255"><a href="#L-255"><span class="linenos">255</span></a>            <span class="c1">#        tuple?</span>
+</span><span id="L-256"><a href="#L-256"><span class="linenos">256</span></a>            <span class="n">config</span> <span class="o">=</span> <span class="p">{</span>
+</span><span id="L-257"><a href="#L-257"><span class="linenos">257</span></a>                <span class="s1">&#39;activeModel&#39;</span><span class="p">:</span> <span class="n">DEFAULT_MODEL_NAME</span><span class="p">,</span>
+</span><span id="L-258"><a href="#L-258"><span class="linenos">258</span></a>                <span class="s1">&#39;editingMode&#39;</span><span class="p">:</span> <span class="s1">&#39;vi&#39;</span><span class="p">,</span>
+</span><span id="L-259"><a href="#L-259"><span class="linenos">259</span></a>                <span class="s1">&#39;queryCodeStyle&#39;</span><span class="p">:</span> <span class="n">_queryCodeStyle</span><span class="p">,</span>
+</span><span id="L-260"><a href="#L-260"><span class="linenos">260</span></a>            <span class="p">}</span>
+</span><span id="L-261"><a href="#L-261"><span class="linenos">261</span></a>            <span class="n">_saveConfigTo</span><span class="p">(</span><span class="n">config</span><span class="p">,</span> <span class="n">fileName</span><span class="p">,</span> <span class="n">pathName</span><span class="p">)</span>
+</span><span id="L-262"><a href="#L-262"><span class="linenos">262</span></a>        <span class="k">return</span> <span class="n">config</span>
+</span><span id="L-263"><a href="#L-263"><span class="linenos">263</span></a>
+</span><span id="L-264"><a href="#L-264"><span class="linenos">264</span></a>
+</span><span id="L-265"><a href="#L-265"><span class="linenos">265</span></a>    <span class="k">def</span> <span class="nf">_displayConfigInfo</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
+</span><span id="L-266"><a href="#L-266"><span class="linenos">266</span></a>        <span class="n">click</span><span class="o">.</span><span class="n">secho</span><span class="p">(</span><span class="s1">&#39;Config file: </span><span class="si">%s</span><span class="s1">&#39;</span> <span class="o">%</span> <span class="n">CONFIG_FILE_NAME</span><span class="p">)</span>
+</span><span id="L-267"><a href="#L-267"><span class="linenos">267</span></a>        <span class="n">click</span><span class="o">.</span><span class="n">secho</span><span class="p">(</span><span class="nb">str</span><span class="p">(</span><span class="n">_loadConfigFrom</span><span class="p">())</span><span class="o">+</span><span class="s1">&#39;</span><span class="se">\n</span><span class="s1">&#39;</span><span class="p">)</span>
 </span><span id="L-268"><a href="#L-268"><span class="linenos">268</span></a>
-</span><span id="L-269"><a href="#L-269"><span class="linenos">269</span></a><span class="k">def</span> <span class="nf">_helpREPL</span><span class="p">():</span>
-</span><span id="L-270"><a href="#L-270"><span class="linenos">270</span></a>    <span class="nb">print</span><span class="p">(</span><span class="s2">&quot;&quot;&quot;</span>
-</span><span id="L-271"><a href="#L-271"><span class="linenos">271</span></a><span class="s2">/active [modelID] - display active model or set active to modelID</span>
-</span><span id="L-272"><a href="#L-272"><span class="linenos">272</span></a><span class="s2">/cinfo - display configuration info</span>
-</span><span id="L-273"><a href="#L-273"><span class="linenos">273</span></a><span class="s2">/clear - clear the screen</span>
-</span><span id="L-274"><a href="#L-274"><span class="linenos">274</span></a><span class="s2">/exit - end Codex and return to the command prompt</span>
-</span><span id="L-275"><a href="#L-275"><span class="linenos">275</span></a><span class="s2">/help - this commands list help</span>
-</span><span id="L-276"><a href="#L-276"><span class="linenos">276</span></a><span class="s2">/mode [mode] - display or set the editing mode to vi or emacs</span>
-</span><span id="L-277"><a href="#L-277"><span class="linenos">277</span></a><span class="s2">/models - list available models; n = modelID</span>
-</span><span id="L-278"><a href="#L-278"><span class="linenos">278</span></a><span class="s2">/quit - alias for /exit</span>
-</span><span id="L-279"><a href="#L-279"><span class="linenos">279</span></a><span class="s2">/style [style] - display or set query style to code or human</span>
-</span><span id="L-280"><a href="#L-280"><span class="linenos">280</span></a><span class="s2">/version - display the Codex + PerplexiPy version</span>
-</span><span id="L-281"><a href="#L-281"><span class="linenos">281</span></a><span class="s2">? - alias for /help</span>
-</span><span id="L-282"><a href="#L-282"><span class="linenos">282</span></a><span class="s2">&quot;&quot;&quot;</span><span class="p">)</span>
+</span><span id="L-269"><a href="#L-269"><span class="linenos">269</span></a>
+</span><span id="L-270"><a href="#L-270"><span class="linenos">270</span></a>    <span class="k">def</span> <span class="nf">run</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
+</span><span id="L-271"><a href="#L-271"><span class="linenos">271</span></a>        <span class="k">pass</span>
+</span><span id="L-272"><a href="#L-272"><span class="linenos">272</span></a>
+</span><span id="L-273"><a href="#L-273"><span class="linenos">273</span></a>
+</span><span id="L-274"><a href="#L-274"><span class="linenos">274</span></a><span class="c1"># *** implementation ***</span>
+</span><span id="L-275"><a href="#L-275"><span class="linenos">275</span></a>
+</span><span id="L-276"><a href="#L-276"><span class="linenos">276</span></a><span class="k">def</span> <span class="nf">_helpUser</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="nb">str</span><span class="p">:</span>
+</span><span id="L-277"><a href="#L-277"><span class="linenos">277</span></a>    <span class="k">return</span> <span class="s2">&quot;Syntax: codex repl | &#39;your coding question here in single quotes&#39;</span><span class="se">\n</span><span class="s2">&quot;</span>
+</span><span id="L-278"><a href="#L-278"><span class="linenos">278</span></a>
+</span><span id="L-279"><a href="#L-279"><span class="linenos">279</span></a>
+</span><span id="L-280"><a href="#L-280"><span class="linenos">280</span></a><span class="k">def</span> <span class="nf">codexCore</span><span class="p">(</span><span class="n">userQuery</span><span class="p">:</span> <span class="nb">str</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">str</span><span class="p">:</span>
+</span><span id="L-281"><a href="#L-281"><span class="linenos">281</span></a><span class="w">    </span><span class="sd">&quot;&quot;&quot;</span>
+</span><span id="L-282"><a href="#L-282"><span class="linenos">282</span></a><span class="sd">    Send a user query to the model for processing.</span>
 </span><span id="L-283"><a href="#L-283"><span class="linenos">283</span></a>
-</span><span id="L-284"><a href="#L-284"><span class="linenos">284</span></a>
-</span><span id="L-285"><a href="#L-285"><span class="linenos">285</span></a><span class="k">def</span> <span class="nf">_displayModels</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="nb">list</span><span class="p">:</span>
-</span><span id="L-286"><a href="#L-286"><span class="linenos">286</span></a><span class="w">    </span><span class="sd">&quot;&quot;&quot;</span>
-</span><span id="L-287"><a href="#L-287"><span class="linenos">287</span></a><span class="sd">    Display the list of models supported by the API.</span>
+</span><span id="L-284"><a href="#L-284"><span class="linenos">284</span></a><span class="sd">    Arguments</span>
+</span><span id="L-285"><a href="#L-285"><span class="linenos">285</span></a><span class="sd">    ---------</span>
+</span><span id="L-286"><a href="#L-286"><span class="linenos">286</span></a><span class="sd">        userQuery</span>
+</span><span id="L-287"><a href="#L-287"><span class="linenos">287</span></a><span class="sd">    A string with the user query, most often a programming question.</span>
 </span><span id="L-288"><a href="#L-288"><span class="linenos">288</span></a>
 </span><span id="L-289"><a href="#L-289"><span class="linenos">289</span></a><span class="sd">    Returns</span>
-</span><span id="L-290"><a href="#L-290"><span class="linenos">290</span></a><span class="sd">    =======</span>
-</span><span id="L-291"><a href="#L-291"><span class="linenos">291</span></a><span class="sd">    A list of strings, each corresponding to a model name.</span>
+</span><span id="L-290"><a href="#L-290"><span class="linenos">290</span></a><span class="sd">    -------</span>
+</span><span id="L-291"><a href="#L-291"><span class="linenos">291</span></a><span class="sd">    The result of the query, or `None` if the query was empty.</span>
 </span><span id="L-292"><a href="#L-292"><span class="linenos">292</span></a><span class="sd">    &quot;&quot;&quot;</span>
-</span><span id="L-293"><a href="#L-293"><span class="linenos">293</span></a>    <span class="n">_activeModel</span><span class="p">()</span>
-</span><span id="L-294"><a href="#L-294"><span class="linenos">294</span></a>    <span class="nb">print</span><span class="p">(</span><span class="s1">&#39;Available models:</span><span class="se">\n</span><span class="s1">&#39;</span><span class="p">)</span>
-</span><span id="L-295"><a href="#L-295"><span class="linenos">295</span></a>    <span class="n">n</span> <span class="o">=</span> <span class="mi">1</span>
-</span><span id="L-296"><a href="#L-296"><span class="linenos">296</span></a>    <span class="k">for</span> <span class="n">model</span> <span class="ow">in</span> <span class="n">_client</span><span class="o">.</span><span class="n">models</span><span class="o">.</span><span class="n">keys</span><span class="p">():</span>
-</span><span id="L-297"><a href="#L-297"><span class="linenos">297</span></a>        <span class="nb">print</span><span class="p">(</span><span class="s1">&#39;</span><span class="si">%2d</span><span class="s1"> - </span><span class="si">%s</span><span class="s1">&#39;</span> <span class="o">%</span> <span class="p">(</span><span class="n">n</span><span class="p">,</span> <span class="n">model</span><span class="p">))</span>
-</span><span id="L-298"><a href="#L-298"><span class="linenos">298</span></a>        <span class="n">n</span> <span class="o">+=</span> <span class="mi">1</span>
-</span><span id="L-299"><a href="#L-299"><span class="linenos">299</span></a>    <span class="nb">print</span><span class="p">()</span>
-</span><span id="L-300"><a href="#L-300"><span class="linenos">300</span></a>
-</span><span id="L-301"><a href="#L-301"><span class="linenos">301</span></a>    <span class="k">return</span> <span class="nb">list</span><span class="p">(</span><span class="n">_client</span><span class="o">.</span><span class="n">models</span><span class="o">.</span><span class="n">keys</span><span class="p">())</span>
-</span><span id="L-302"><a href="#L-302"><span class="linenos">302</span></a>
+</span><span id="L-293"><a href="#L-293"><span class="linenos">293</span></a>    <span class="k">global</span> <span class="n">_client</span>
+</span><span id="L-294"><a href="#L-294"><span class="linenos">294</span></a>
+</span><span id="L-295"><a href="#L-295"><span class="linenos">295</span></a>    <span class="n">result</span> <span class="o">=</span> <span class="kc">None</span>
+</span><span id="L-296"><a href="#L-296"><span class="linenos">296</span></a>    <span class="k">if</span> <span class="n">userQuery</span><span class="p">:</span>
+</span><span id="L-297"><a href="#L-297"><span class="linenos">297</span></a>        <span class="k">if</span> <span class="ow">not</span> <span class="n">_client</span><span class="p">:</span>
+</span><span id="L-298"><a href="#L-298"><span class="linenos">298</span></a>            <span class="n">_client</span> <span class="o">=</span> <span class="n">PerplexityClient</span><span class="p">(</span><span class="n">key</span> <span class="o">=</span> <span class="n">os</span><span class="o">.</span><span class="n">environ</span><span class="p">[</span><span class="s1">&#39;PERPLEXITY_API_KEY&#39;</span><span class="p">])</span>
+</span><span id="L-299"><a href="#L-299"><span class="linenos">299</span></a>            <span class="n">_client</span><span class="o">.</span><span class="n">model</span> <span class="o">=</span> <span class="n">DEFAULT_MODEL_NAME</span>
+</span><span id="L-300"><a href="#L-300"><span class="linenos">300</span></a>        <span class="n">result</span> <span class="o">=</span> <span class="n">_client</span><span class="o">.</span><span class="n">query</span><span class="p">(</span><span class="n">userQuery</span><span class="p">)</span>
+</span><span id="L-301"><a href="#L-301"><span class="linenos">301</span></a>
+</span><span id="L-302"><a href="#L-302"><span class="linenos">302</span></a>    <span class="k">return</span> <span class="n">result</span>
 </span><span id="L-303"><a href="#L-303"><span class="linenos">303</span></a>
-</span><span id="L-304"><a href="#L-304"><span class="linenos">304</span></a><span class="k">def</span> <span class="nf">_editingMode</span><span class="p">(</span><span class="n">session</span><span class="p">:</span> <span class="n">PromptSession</span><span class="p">,</span> <span class="n">mode</span> <span class="o">=</span> <span class="kc">None</span><span class="p">):</span>
-</span><span id="L-305"><a href="#L-305"><span class="linenos">305</span></a>    <span class="k">if</span> <span class="n">mode</span><span class="p">:</span>
-</span><span id="L-306"><a href="#L-306"><span class="linenos">306</span></a>        <span class="n">mode</span> <span class="o">=</span> <span class="n">mode</span><span class="o">.</span><span class="n">lower</span><span class="p">()</span>
-</span><span id="L-307"><a href="#L-307"><span class="linenos">307</span></a>        <span class="n">newEditingMode</span> <span class="o">=</span> <span class="n">EditingMode</span><span class="o">.</span><span class="n">EMACS</span> <span class="k">if</span> <span class="n">mode</span> <span class="o">==</span> <span class="s1">&#39;emacs&#39;</span> <span class="k">else</span> <span class="n">EditingMode</span><span class="o">.</span><span class="n">VI</span>
-</span><span id="L-308"><a href="#L-308"><span class="linenos">308</span></a>        <span class="n">session</span> <span class="o">=</span> <span class="n">PromptSession</span><span class="p">(</span><span class="n">editing_mode</span> <span class="o">=</span> <span class="n">newEditingMode</span><span class="p">)</span>
+</span><span id="L-304"><a href="#L-304"><span class="linenos">304</span></a>
+</span><span id="L-305"><a href="#L-305"><span class="linenos">305</span></a><span class="k">def</span> <span class="nf">_stdinHasData</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="nb">bool</span><span class="p">:</span>
+</span><span id="L-306"><a href="#L-306"><span class="linenos">306</span></a><span class="w">    </span><span class="sd">&quot;&quot;&quot;</span>
+</span><span id="L-307"><a href="#L-307"><span class="linenos">307</span></a><span class="sd">    Checks if there&#39;s data pending to be processed off `stdin`.  It&#39;s a</span>
+</span><span id="L-308"><a href="#L-308"><span class="linenos">308</span></a><span class="sd">    convinience function for readability.</span>
 </span><span id="L-309"><a href="#L-309"><span class="linenos">309</span></a>
-</span><span id="L-310"><a href="#L-310"><span class="linenos">310</span></a>    <span class="n">editingMode</span> <span class="o">=</span> <span class="nb">str</span><span class="p">(</span><span class="n">session</span><span class="o">.</span><span class="n">editing_mode</span><span class="p">)</span><span class="o">.</span><span class="n">replace</span><span class="p">(</span><span class="s1">&#39;EditingMode.&#39;</span><span class="p">,</span> <span class="s1">&#39;&#39;</span><span class="p">)</span><span class="o">.</span><span class="n">lower</span><span class="p">()</span>
-</span><span id="L-311"><a href="#L-311"><span class="linenos">311</span></a>    <span class="n">click</span><span class="o">.</span><span class="n">secho</span><span class="p">(</span><span class="s1">&#39;Editing mode = </span><span class="si">%s</span><span class="s1">&#39;</span> <span class="o">%</span> <span class="n">editingMode</span><span class="p">,</span> <span class="n">fg</span> <span class="o">=</span> <span class="s1">&#39;bright_blue&#39;</span><span class="p">)</span>
-</span><span id="L-312"><a href="#L-312"><span class="linenos">312</span></a>
-</span><span id="L-313"><a href="#L-313"><span class="linenos">313</span></a>    <span class="k">return</span> <span class="n">session</span>
-</span><span id="L-314"><a href="#L-314"><span class="linenos">314</span></a>
+</span><span id="L-310"><a href="#L-310"><span class="linenos">310</span></a><span class="sd">    Returns</span>
+</span><span id="L-311"><a href="#L-311"><span class="linenos">311</span></a><span class="sd">    -------</span>
+</span><span id="L-312"><a href="#L-312"><span class="linenos">312</span></a><span class="sd">    `True` if the `stdin` stream is pending processing.</span>
+</span><span id="L-313"><a href="#L-313"><span class="linenos">313</span></a><span class="sd">    &quot;&quot;&quot;</span>
+</span><span id="L-314"><a href="#L-314"><span class="linenos">314</span></a>    <span class="k">return</span> <span class="n">select</span><span class="o">.</span><span class="n">select</span><span class="p">([</span><span class="n">sys</span><span class="o">.</span><span class="n">stdin</span><span class="p">],</span> <span class="p">[],</span> <span class="p">[],</span> <span class="mi">0</span><span class="p">)</span> <span class="o">==</span> <span class="p">([</span><span class="n">sys</span><span class="o">.</span><span class="n">stdin</span><span class="p">],</span> <span class="p">[],</span> <span class="p">[])</span>
 </span><span id="L-315"><a href="#L-315"><span class="linenos">315</span></a>
-</span><span id="L-316"><a href="#L-316"><span class="linenos">316</span></a><span class="k">def</span> <span class="nf">_queryStyle</span><span class="p">(</span><span class="n">newStyle</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="kc">None</span><span class="p">):</span>
-</span><span id="L-317"><a href="#L-317"><span class="linenos">317</span></a>    <span class="k">global</span> <span class="n">_queryCodeStyle</span>
-</span><span id="L-318"><a href="#L-318"><span class="linenos">318</span></a>
-</span><span id="L-319"><a href="#L-319"><span class="linenos">319</span></a>    <span class="k">if</span> <span class="n">newStyle</span><span class="p">:</span>
-</span><span id="L-320"><a href="#L-320"><span class="linenos">320</span></a>        <span class="n">_queryCodeStyle</span> <span class="o">=</span> <span class="n">newStyle</span> <span class="o">!=</span> <span class="s1">&#39;human&#39;</span>
-</span><span id="L-321"><a href="#L-321"><span class="linenos">321</span></a>    <span class="n">click</span><span class="o">.</span><span class="n">secho</span><span class="p">(</span><span class="s1">&#39;Coding query style = </span><span class="si">%s</span><span class="s1">&#39;</span> <span class="o">%</span> <span class="n">_queryCodeStyle</span><span class="p">,</span> <span class="n">fg</span> <span class="o">=</span> <span class="s1">&#39;bright_blue&#39;</span><span class="p">)</span>
-</span><span id="L-322"><a href="#L-322"><span class="linenos">322</span></a>    <span class="k">return</span> <span class="n">_queryCodeStyle</span>
+</span><span id="L-316"><a href="#L-316"><span class="linenos">316</span></a>
+</span><span id="L-317"><a href="#L-317"><span class="linenos">317</span></a><span class="k">def</span> <span class="nf">_assembleInput</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="nb">str</span><span class="p">:</span>
+</span><span id="L-318"><a href="#L-318"><span class="linenos">318</span></a>    <span class="n">result</span> <span class="o">=</span> <span class="s1">&#39;&#39;</span>
+</span><span id="L-319"><a href="#L-319"><span class="linenos">319</span></a>    <span class="k">for</span> <span class="n">line</span> <span class="ow">in</span> <span class="n">sys</span><span class="o">.</span><span class="n">stdin</span><span class="p">:</span>
+</span><span id="L-320"><a href="#L-320"><span class="linenos">320</span></a>        <span class="n">result</span> <span class="o">+=</span> <span class="n">line</span>
+</span><span id="L-321"><a href="#L-321"><span class="linenos">321</span></a>
+</span><span id="L-322"><a href="#L-322"><span class="linenos">322</span></a>    <span class="k">return</span> <span class="n">result</span>
 </span><span id="L-323"><a href="#L-323"><span class="linenos">323</span></a>
 </span><span id="L-324"><a href="#L-324"><span class="linenos">324</span></a>
-</span><span id="L-325"><a href="#L-325"><span class="linenos">325</span></a><span class="k">def</span> <span class="nf">_makeQuery</span><span class="p">(</span><span class="n">userQuery</span><span class="p">:</span> <span class="nb">str</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">str</span><span class="p">:</span>
-</span><span id="L-326"><a href="#L-326"><span class="linenos">326</span></a>    <span class="k">if</span> <span class="n">_queryCodeStyle</span><span class="p">:</span>
-</span><span id="L-327"><a href="#L-327"><span class="linenos">327</span></a>        <span class="n">userQuery</span> <span class="o">=</span> <span class="n">QUERY_DETAILED</span><span class="o">+</span><span class="n">userQuery</span>
-</span><span id="L-328"><a href="#L-328"><span class="linenos">328</span></a>
-</span><span id="L-329"><a href="#L-329"><span class="linenos">329</span></a>    <span class="k">return</span> <span class="n">codexCore</span><span class="p">(</span><span class="n">userQuery</span><span class="p">)</span>
-</span><span id="L-330"><a href="#L-330"><span class="linenos">330</span></a>
-</span><span id="L-331"><a href="#L-331"><span class="linenos">331</span></a>
-</span><span id="L-332"><a href="#L-332"><span class="linenos">332</span></a><span class="k">def</span> <span class="nf">_displayVersion</span><span class="p">():</span>
-</span><span id="L-333"><a href="#L-333"><span class="linenos">333</span></a>    <span class="n">click</span><span class="o">.</span><span class="n">secho</span><span class="p">(</span><span class="s1">&#39;PerplexiPy Codex version </span><span class="si">%s</span><span class="se">\n</span><span class="s1">&#39;</span> <span class="o">%</span> <span class="n">__VERSION__</span><span class="p">,</span> <span class="n">fg</span> <span class="o">=</span> <span class="s1">&#39;bright_green&#39;</span><span class="p">)</span>
-</span><span id="L-334"><a href="#L-334"><span class="linenos">334</span></a>
-</span><span id="L-335"><a href="#L-335"><span class="linenos">335</span></a>
-</span><span id="L-336"><a href="#L-336"><span class="linenos">336</span></a><span class="k">def</span> <span class="nf">_saveConfigTo</span><span class="p">(</span><span class="n">config</span><span class="p">:</span> <span class="nb">dict</span><span class="p">,</span> <span class="n">fileName</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="n">CONFIG_FILE_NAME</span><span class="p">,</span> <span class="n">pathName</span> <span class="o">=</span> <span class="n">CONFIG_PATH</span><span class="p">):</span>
-</span><span id="L-337"><a href="#L-337"><span class="linenos">337</span></a>    <span class="k">if</span> <span class="ow">not</span> <span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">exists</span><span class="p">(</span><span class="n">pathName</span><span class="p">):</span>
-</span><span id="L-338"><a href="#L-338"><span class="linenos">338</span></a>        <span class="n">os</span><span class="o">.</span><span class="n">makedirs</span><span class="p">(</span><span class="n">pathName</span><span class="p">)</span>
-</span><span id="L-339"><a href="#L-339"><span class="linenos">339</span></a>    <span class="k">with</span> <span class="nb">open</span><span class="p">(</span><span class="n">fileName</span><span class="p">,</span> <span class="s1">&#39;w&#39;</span><span class="p">)</span> <span class="k">as</span> <span class="n">outputFile</span><span class="p">:</span>
-</span><span id="L-340"><a href="#L-340"><span class="linenos">340</span></a>        <span class="n">yaml</span><span class="o">.</span><span class="n">dump</span><span class="p">(</span><span class="n">config</span><span class="p">,</span> <span class="n">outputFile</span><span class="p">)</span>
-</span><span id="L-341"><a href="#L-341"><span class="linenos">341</span></a>
-</span><span id="L-342"><a href="#L-342"><span class="linenos">342</span></a>
-</span><span id="L-343"><a href="#L-343"><span class="linenos">343</span></a><span class="k">def</span> <span class="nf">_loadConfigFrom</span><span class="p">(</span><span class="n">fileName</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="n">CONFIG_FILE_NAME</span><span class="p">,</span> <span class="n">pathName</span> <span class="o">=</span> <span class="n">CONFIG_PATH</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">dict</span><span class="p">:</span>
-</span><span id="L-344"><a href="#L-344"><span class="linenos">344</span></a>    <span class="k">if</span> <span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">exists</span><span class="p">(</span><span class="n">fileName</span><span class="p">):</span>
-</span><span id="L-345"><a href="#L-345"><span class="linenos">345</span></a>        <span class="k">with</span> <span class="nb">open</span><span class="p">(</span><span class="n">fileName</span><span class="p">,</span> <span class="s1">&#39;r&#39;</span><span class="p">)</span> <span class="k">as</span> <span class="n">inputFile</span><span class="p">:</span>
-</span><span id="L-346"><a href="#L-346"><span class="linenos">346</span></a>            <span class="n">config</span> <span class="o">=</span> <span class="n">yaml</span><span class="o">.</span><span class="n">safe_load</span><span class="p">(</span><span class="n">inputFile</span><span class="p">)</span>
-</span><span id="L-347"><a href="#L-347"><span class="linenos">347</span></a>    <span class="k">else</span><span class="p">:</span>
-</span><span id="L-348"><a href="#L-348"><span class="linenos">348</span></a>        <span class="n">config</span> <span class="o">=</span> <span class="p">{</span>
-</span><span id="L-349"><a href="#L-349"><span class="linenos">349</span></a>            <span class="s1">&#39;activeModel&#39;</span><span class="p">:</span> <span class="n">DEFAULT_MODEL_NAME</span><span class="p">,</span>
-</span><span id="L-350"><a href="#L-350"><span class="linenos">350</span></a>            <span class="s1">&#39;editingMode&#39;</span><span class="p">:</span> <span class="s1">&#39;vi&#39;</span><span class="p">,</span>
-</span><span id="L-351"><a href="#L-351"><span class="linenos">351</span></a>            <span class="s1">&#39;queryCodeStyle&#39;</span><span class="p">:</span> <span class="n">_queryCodeStyle</span><span class="p">,</span>
-</span><span id="L-352"><a href="#L-352"><span class="linenos">352</span></a>        <span class="p">}</span>
-</span><span id="L-353"><a href="#L-353"><span class="linenos">353</span></a>        <span class="n">_saveConfigTo</span><span class="p">(</span><span class="n">config</span><span class="p">,</span> <span class="n">fileName</span><span class="p">,</span> <span class="n">pathName</span><span class="p">)</span>
-</span><span id="L-354"><a href="#L-354"><span class="linenos">354</span></a>    <span class="k">return</span> <span class="n">config</span>
-</span><span id="L-355"><a href="#L-355"><span class="linenos">355</span></a>
-</span><span id="L-356"><a href="#L-356"><span class="linenos">356</span></a>
-</span><span id="L-357"><a href="#L-357"><span class="linenos">357</span></a><span class="k">def</span> <span class="nf">_displayConfigInfo</span><span class="p">():</span>
-</span><span id="L-358"><a href="#L-358"><span class="linenos">358</span></a>    <span class="n">click</span><span class="o">.</span><span class="n">secho</span><span class="p">(</span><span class="s1">&#39;Config file: </span><span class="si">%s</span><span class="s1">&#39;</span> <span class="o">%</span> <span class="n">CONFIG_FILE_NAME</span><span class="p">)</span>
-</span><span id="L-359"><a href="#L-359"><span class="linenos">359</span></a>    <span class="n">click</span><span class="o">.</span><span class="n">secho</span><span class="p">(</span><span class="nb">str</span><span class="p">(</span><span class="n">_loadConfigFrom</span><span class="p">())</span><span class="o">+</span><span class="s1">&#39;</span><span class="se">\n</span><span class="s1">&#39;</span><span class="p">)</span>
-</span><span id="L-360"><a href="#L-360"><span class="linenos">360</span></a>
-</span><span id="L-361"><a href="#L-361"><span class="linenos">361</span></a>
-</span><span id="L-362"><a href="#L-362"><span class="linenos">362</span></a><span class="c1"># TODO: Refactor REPL - https://github.com/CIME-Software/perplexipy/issues/46</span>
-</span><span id="L-363"><a href="#L-363"><span class="linenos">363</span></a><span class="k">def</span> <span class="nf">_runREPL</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="nb">str</span><span class="p">:</span>
-</span><span id="L-364"><a href="#L-364"><span class="linenos">364</span></a><span class="w">    </span><span class="sd">&quot;&quot;&quot;</span>
-</span><span id="L-365"><a href="#L-365"><span class="linenos">365</span></a><span class="sd">    Run a REPL loop for sending queries to the AI provider.</span>
-</span><span id="L-366"><a href="#L-366"><span class="linenos">366</span></a>
-</span><span id="L-367"><a href="#L-367"><span class="linenos">367</span></a><span class="sd">    Returns</span>
-</span><span id="L-368"><a href="#L-368"><span class="linenos">368</span></a><span class="sd">    -------</span>
-</span><span id="L-369"><a href="#L-369"><span class="linenos">369</span></a><span class="sd">    The word &quot;REPL&quot; to signal to the `codex` command that it received valid</span>
-</span><span id="L-370"><a href="#L-370"><span class="linenos">370</span></a><span class="sd">    input.</span>
+</span><span id="L-325"><a href="#L-325"><span class="linenos">325</span></a><span class="k">def</span> <span class="nf">_activeModel</span><span class="p">(</span><span class="n">modelID</span><span class="p">:</span> <span class="nb">int</span> <span class="o">=</span> <span class="mi">0</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">str</span><span class="p">:</span>
+</span><span id="L-326"><a href="#L-326"><span class="linenos">326</span></a>    <span class="k">if</span> <span class="n">modelID</span><span class="p">:</span>
+</span><span id="L-327"><a href="#L-327"><span class="linenos">327</span></a>        <span class="k">try</span><span class="p">:</span>
+</span><span id="L-328"><a href="#L-328"><span class="linenos">328</span></a>            <span class="n">modelsList</span> <span class="o">=</span> <span class="nb">list</span><span class="p">(</span><span class="n">_client</span><span class="o">.</span><span class="n">models</span><span class="o">.</span><span class="n">keys</span><span class="p">())</span>
+</span><span id="L-329"><a href="#L-329"><span class="linenos">329</span></a>            <span class="n">ref</span> <span class="o">=</span> <span class="n">modelID</span><span class="o">-</span><span class="mi">1</span>
+</span><span id="L-330"><a href="#L-330"><span class="linenos">330</span></a>            <span class="n">model</span> <span class="o">=</span> <span class="n">modelsList</span><span class="p">[</span><span class="n">ref</span><span class="p">]</span>
+</span><span id="L-331"><a href="#L-331"><span class="linenos">331</span></a>            <span class="n">_client</span><span class="o">.</span><span class="n">model</span> <span class="o">=</span> <span class="n">model</span>
+</span><span id="L-332"><a href="#L-332"><span class="linenos">332</span></a>        <span class="k">except</span><span class="p">:</span>
+</span><span id="L-333"><a href="#L-333"><span class="linenos">333</span></a>            <span class="n">click</span><span class="o">.</span><span class="n">secho</span><span class="p">(</span><span class="s1">&#39;Invalid model ID = </span><span class="si">%s</span><span class="s1">&#39;</span> <span class="o">%</span> <span class="n">modelID</span><span class="p">,</span> <span class="n">bg</span> <span class="o">=</span> <span class="s1">&#39;red&#39;</span><span class="p">,</span> <span class="n">fg</span> <span class="o">=</span> <span class="s1">&#39;white&#39;</span><span class="p">)</span>
+</span><span id="L-334"><a href="#L-334"><span class="linenos">334</span></a>            <span class="k">if</span> <span class="n">modelID</span> <span class="ow">in</span> <span class="nb">range</span><span class="p">(</span><span class="mi">1</span><span class="p">,</span> <span class="nb">len</span><span class="p">(</span><span class="n">modelsList</span><span class="p">)):</span>
+</span><span id="L-335"><a href="#L-335"><span class="linenos">335</span></a>                <span class="n">click</span><span class="o">.</span><span class="n">secho</span><span class="p">(</span><span class="s1">&#39;Model no longer supported by the back-end Perplexity provider&#39;</span><span class="p">,</span> <span class="n">bg</span> <span class="o">=</span> <span class="s1">&#39;bright_yellow&#39;</span><span class="p">,</span> <span class="n">fg</span> <span class="o">=</span> <span class="s1">&#39;black&#39;</span><span class="p">)</span>
+</span><span id="L-336"><a href="#L-336"><span class="linenos">336</span></a>    <span class="n">click</span><span class="o">.</span><span class="n">secho</span><span class="p">(</span><span class="s1">&#39;Active model: </span><span class="si">%s</span><span class="se">\n</span><span class="s1">&#39;</span> <span class="o">%</span> <span class="n">_client</span><span class="o">.</span><span class="n">model</span><span class="p">,</span> <span class="n">fg</span> <span class="o">=</span> <span class="s1">&#39;green&#39;</span><span class="p">,</span> <span class="n">bold</span> <span class="o">=</span> <span class="kc">True</span><span class="p">)</span>
+</span><span id="L-337"><a href="#L-337"><span class="linenos">337</span></a>    <span class="k">return</span> <span class="n">_client</span><span class="o">.</span><span class="n">model</span>
+</span><span id="L-338"><a href="#L-338"><span class="linenos">338</span></a>
+</span><span id="L-339"><a href="#L-339"><span class="linenos">339</span></a>
+</span><span id="L-340"><a href="#L-340"><span class="linenos">340</span></a><span class="k">def</span> <span class="nf">_REPLHello</span><span class="p">():</span>
+</span><span id="L-341"><a href="#L-341"><span class="linenos">341</span></a>    <span class="n">click</span><span class="o">.</span><span class="n">clear</span><span class="p">()</span>
+</span><span id="L-342"><a href="#L-342"><span class="linenos">342</span></a>    <span class="n">printF</span><span class="p">(</span><span class="n">HTML</span><span class="p">(</span><span class="s1">&#39;PerplexiPy &lt;b&gt;&lt;ansigreen&gt;Codex playground - coding, scripting, and sysops assistant&lt;/ansigreen&gt;&lt;/b&gt;&#39;</span><span class="p">))</span>
+</span><span id="L-343"><a href="#L-343"><span class="linenos">343</span></a>    <span class="n">_activeModel</span><span class="p">()</span>
+</span><span id="L-344"><a href="#L-344"><span class="linenos">344</span></a>    <span class="n">printF</span><span class="p">(</span><span class="n">HTML</span><span class="p">(</span><span class="s1">&#39;Enter &lt;b&gt;/help&lt;/b&gt; for commands list&#39;</span><span class="p">))</span>
+</span><span id="L-345"><a href="#L-345"><span class="linenos">345</span></a>    <span class="nb">print</span><span class="p">()</span>
+</span><span id="L-346"><a href="#L-346"><span class="linenos">346</span></a>
+</span><span id="L-347"><a href="#L-347"><span class="linenos">347</span></a>
+</span><span id="L-348"><a href="#L-348"><span class="linenos">348</span></a><span class="k">def</span> <span class="nf">_helpREPL</span><span class="p">():</span>
+</span><span id="L-349"><a href="#L-349"><span class="linenos">349</span></a>    <span class="nb">print</span><span class="p">(</span><span class="s2">&quot;&quot;&quot;</span>
+</span><span id="L-350"><a href="#L-350"><span class="linenos">350</span></a><span class="s2">/active [modelID] - display active model or set active to modelID</span>
+</span><span id="L-351"><a href="#L-351"><span class="linenos">351</span></a><span class="s2">/cinfo - display configuration info</span>
+</span><span id="L-352"><a href="#L-352"><span class="linenos">352</span></a><span class="s2">/clear - clear the screen</span>
+</span><span id="L-353"><a href="#L-353"><span class="linenos">353</span></a><span class="s2">/exit - end Codex and return to the command prompt</span>
+</span><span id="L-354"><a href="#L-354"><span class="linenos">354</span></a><span class="s2">/help - this commands list help</span>
+</span><span id="L-355"><a href="#L-355"><span class="linenos">355</span></a><span class="s2">/mode [mode] - display or set the editing mode to vi or emacs</span>
+</span><span id="L-356"><a href="#L-356"><span class="linenos">356</span></a><span class="s2">/models - list available models; n = modelID</span>
+</span><span id="L-357"><a href="#L-357"><span class="linenos">357</span></a><span class="s2">/quit - alias for /exit</span>
+</span><span id="L-358"><a href="#L-358"><span class="linenos">358</span></a><span class="s2">/style [style] - display or set query style to code or human</span>
+</span><span id="L-359"><a href="#L-359"><span class="linenos">359</span></a><span class="s2">/version - display the Codex + PerplexiPy version</span>
+</span><span id="L-360"><a href="#L-360"><span class="linenos">360</span></a><span class="s2">? - alias for /help</span>
+</span><span id="L-361"><a href="#L-361"><span class="linenos">361</span></a><span class="s2">&quot;&quot;&quot;</span><span class="p">)</span>
+</span><span id="L-362"><a href="#L-362"><span class="linenos">362</span></a>
+</span><span id="L-363"><a href="#L-363"><span class="linenos">363</span></a>
+</span><span id="L-364"><a href="#L-364"><span class="linenos">364</span></a><span class="k">def</span> <span class="nf">_displayModels</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="nb">list</span><span class="p">:</span>
+</span><span id="L-365"><a href="#L-365"><span class="linenos">365</span></a><span class="w">    </span><span class="sd">&quot;&quot;&quot;</span>
+</span><span id="L-366"><a href="#L-366"><span class="linenos">366</span></a><span class="sd">    Display the list of models supported by the API.</span>
+</span><span id="L-367"><a href="#L-367"><span class="linenos">367</span></a>
+</span><span id="L-368"><a href="#L-368"><span class="linenos">368</span></a><span class="sd">    Returns</span>
+</span><span id="L-369"><a href="#L-369"><span class="linenos">369</span></a><span class="sd">    =======</span>
+</span><span id="L-370"><a href="#L-370"><span class="linenos">370</span></a><span class="sd">    A list of strings, each corresponding to a model name.</span>
 </span><span id="L-371"><a href="#L-371"><span class="linenos">371</span></a><span class="sd">    &quot;&quot;&quot;</span>
-</span><span id="L-372"><a href="#L-372"><span class="linenos">372</span></a>    <span class="n">config</span> <span class="o">=</span> <span class="n">_loadConfigFrom</span><span class="p">()</span>
-</span><span id="L-373"><a href="#L-373"><span class="linenos">373</span></a>    <span class="n">session</span> <span class="o">=</span> <span class="n">PromptSession</span><span class="p">()</span>
-</span><span id="L-374"><a href="#L-374"><span class="linenos">374</span></a>    <span class="n">_activeModel</span><span class="p">(</span><span class="nb">list</span><span class="p">(</span><span class="n">_client</span><span class="o">.</span><span class="n">models</span><span class="o">.</span><span class="n">keys</span><span class="p">())</span><span class="o">.</span><span class="n">index</span><span class="p">(</span><span class="n">config</span><span class="p">[</span><span class="s1">&#39;activeModel&#39;</span><span class="p">])</span><span class="o">+</span><span class="mi">1</span><span class="p">)</span>
-</span><span id="L-375"><a href="#L-375"><span class="linenos">375</span></a>    <span class="n">_REPLHello</span><span class="p">()</span>
-</span><span id="L-376"><a href="#L-376"><span class="linenos">376</span></a>    <span class="n">session</span> <span class="o">=</span> <span class="n">_editingMode</span><span class="p">(</span><span class="n">session</span><span class="p">,</span> <span class="n">config</span><span class="p">[</span><span class="s1">&#39;editingMode&#39;</span><span class="p">])</span>
-</span><span id="L-377"><a href="#L-377"><span class="linenos">377</span></a>    <span class="n">_queryStyle</span><span class="p">(</span><span class="s1">&#39;code&#39;</span> <span class="k">if</span> <span class="n">config</span><span class="p">[</span><span class="s1">&#39;queryCodeStyle&#39;</span><span class="p">]</span> <span class="k">else</span> <span class="s1">&#39;human&#39;</span><span class="p">)</span>
-</span><span id="L-378"><a href="#L-378"><span class="linenos">378</span></a>    <span class="k">while</span> <span class="kc">True</span><span class="p">:</span>
-</span><span id="L-379"><a href="#L-379"><span class="linenos">379</span></a>        <span class="n">userQuery</span> <span class="o">=</span> <span class="n">session</span><span class="o">.</span><span class="n">prompt</span><span class="p">(</span><span class="s1">&#39;Ask anything (/exit to end): &#39;</span><span class="p">)</span>
-</span><span id="L-380"><a href="#L-380"><span class="linenos">380</span></a>        <span class="k">if</span> <span class="n">userQuery</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="ow">in</span> <span class="p">(</span><span class="s1">&#39;/&#39;</span><span class="p">,</span> <span class="s1">&#39;?&#39;</span><span class="p">,</span> <span class="s1">&#39;:&#39;</span><span class="p">):</span>
-</span><span id="L-381"><a href="#L-381"><span class="linenos">381</span></a>            <span class="n">parts</span> <span class="o">=</span> <span class="n">userQuery</span><span class="o">.</span><span class="n">split</span><span class="p">(</span><span class="s1">&#39; &#39;</span><span class="p">)</span>
-</span><span id="L-382"><a href="#L-382"><span class="linenos">382</span></a>            <span class="n">command</span> <span class="o">=</span> <span class="n">parts</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span>
-</span><span id="L-383"><a href="#L-383"><span class="linenos">383</span></a>            <span class="k">if</span> <span class="n">command</span> <span class="ow">in</span> <span class="p">(</span><span class="s1">&#39;/exit&#39;</span><span class="p">,</span> <span class="s1">&#39;/quit&#39;</span><span class="p">,</span> <span class="s1">&#39;:q&#39;</span><span class="p">,</span> <span class="s1">&#39;/q&#39;</span><span class="p">):</span>
-</span><span id="L-384"><a href="#L-384"><span class="linenos">384</span></a>                <span class="n">sys</span><span class="o">.</span><span class="n">exit</span><span class="p">(</span><span class="mi">0</span><span class="p">)</span>
-</span><span id="L-385"><a href="#L-385"><span class="linenos">385</span></a>            <span class="k">elif</span> <span class="n">command</span> <span class="o">==</span> <span class="s1">&#39;/active&#39;</span><span class="p">:</span>
-</span><span id="L-386"><a href="#L-386"><span class="linenos">386</span></a>                <span class="k">if</span> <span class="nb">len</span><span class="p">(</span><span class="n">parts</span><span class="p">)</span> <span class="o">&gt;</span> <span class="mi">1</span><span class="p">:</span>
-</span><span id="L-387"><a href="#L-387"><span class="linenos">387</span></a>                    <span class="k">try</span><span class="p">:</span>
-</span><span id="L-388"><a href="#L-388"><span class="linenos">388</span></a>                        <span class="n">model</span> <span class="o">=</span> <span class="nb">int</span><span class="p">(</span><span class="n">parts</span><span class="p">[</span><span class="mi">1</span><span class="p">])</span>
-</span><span id="L-389"><a href="#L-389"><span class="linenos">389</span></a>                        <span class="n">config</span><span class="p">[</span><span class="s1">&#39;activeModel&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="n">_activeModel</span><span class="p">(</span><span class="n">model</span><span class="p">)</span>
-</span><span id="L-390"><a href="#L-390"><span class="linenos">390</span></a>                        <span class="n">_saveConfigTo</span><span class="p">(</span><span class="n">config</span><span class="p">)</span>
-</span><span id="L-391"><a href="#L-391"><span class="linenos">391</span></a>                    <span class="k">except</span><span class="p">:</span>
-</span><span id="L-392"><a href="#L-392"><span class="linenos">392</span></a>                        <span class="c1"># Invalid input, ignore and leave the current model</span>
-</span><span id="L-393"><a href="#L-393"><span class="linenos">393</span></a>                        <span class="c1"># active.</span>
-</span><span id="L-394"><a href="#L-394"><span class="linenos">394</span></a>                        <span class="k">pass</span>
-</span><span id="L-395"><a href="#L-395"><span class="linenos">395</span></a>                <span class="k">else</span><span class="p">:</span>
-</span><span id="L-396"><a href="#L-396"><span class="linenos">396</span></a>                    <span class="n">_activeModel</span><span class="p">()</span>
-</span><span id="L-397"><a href="#L-397"><span class="linenos">397</span></a>            <span class="k">elif</span> <span class="n">command</span> <span class="o">==</span> <span class="s1">&#39;/cinfo&#39;</span><span class="p">:</span>
-</span><span id="L-398"><a href="#L-398"><span class="linenos">398</span></a>                <span class="n">_displayConfigInfo</span><span class="p">()</span>
-</span><span id="L-399"><a href="#L-399"><span class="linenos">399</span></a>            <span class="k">elif</span> <span class="n">command</span> <span class="o">==</span> <span class="s1">&#39;/clear&#39;</span><span class="p">:</span>
-</span><span id="L-400"><a href="#L-400"><span class="linenos">400</span></a>                <span class="n">click</span><span class="o">.</span><span class="n">clear</span><span class="p">()</span>
-</span><span id="L-401"><a href="#L-401"><span class="linenos">401</span></a>                <span class="n">_editingMode</span><span class="p">(</span><span class="n">session</span><span class="p">)</span>
-</span><span id="L-402"><a href="#L-402"><span class="linenos">402</span></a>            <span class="k">elif</span> <span class="n">command</span> <span class="ow">in</span> <span class="p">(</span><span class="s1">&#39;/help&#39;</span><span class="p">,</span> <span class="s1">&#39;?&#39;</span><span class="p">):</span>
-</span><span id="L-403"><a href="#L-403"><span class="linenos">403</span></a>                <span class="n">_helpREPL</span><span class="p">()</span>
-</span><span id="L-404"><a href="#L-404"><span class="linenos">404</span></a>            <span class="k">elif</span> <span class="n">command</span> <span class="o">==</span> <span class="s1">&#39;/mode&#39;</span><span class="p">:</span>
-</span><span id="L-405"><a href="#L-405"><span class="linenos">405</span></a>                <span class="k">if</span> <span class="nb">len</span><span class="p">(</span><span class="n">parts</span><span class="p">)</span> <span class="o">&gt;</span> <span class="mi">1</span><span class="p">:</span>
-</span><span id="L-406"><a href="#L-406"><span class="linenos">406</span></a>                    <span class="k">try</span><span class="p">:</span>
-</span><span id="L-407"><a href="#L-407"><span class="linenos">407</span></a>                        <span class="n">session</span> <span class="o">=</span> <span class="n">_editingMode</span><span class="p">(</span><span class="n">session</span><span class="p">,</span> <span class="n">parts</span><span class="p">[</span><span class="mi">1</span><span class="p">])</span>
-</span><span id="L-408"><a href="#L-408"><span class="linenos">408</span></a>                        <span class="n">config</span><span class="p">[</span><span class="s1">&#39;editingMode&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="n">parts</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span>
-</span><span id="L-409"><a href="#L-409"><span class="linenos">409</span></a>                        <span class="n">_saveConfigTo</span><span class="p">(</span><span class="n">config</span><span class="p">)</span>
-</span><span id="L-410"><a href="#L-410"><span class="linenos">410</span></a>                    <span class="k">except</span><span class="p">:</span>
-</span><span id="L-411"><a href="#L-411"><span class="linenos">411</span></a>                        <span class="k">pass</span>
-</span><span id="L-412"><a href="#L-412"><span class="linenos">412</span></a>                <span class="k">else</span><span class="p">:</span>
-</span><span id="L-413"><a href="#L-413"><span class="linenos">413</span></a>                    <span class="n">_editingMode</span><span class="p">(</span><span class="n">session</span><span class="p">)</span>
-</span><span id="L-414"><a href="#L-414"><span class="linenos">414</span></a>            <span class="k">elif</span> <span class="n">command</span> <span class="o">==</span> <span class="s1">&#39;/models&#39;</span><span class="p">:</span>
-</span><span id="L-415"><a href="#L-415"><span class="linenos">415</span></a>                <span class="n">_displayModels</span><span class="p">()</span>
-</span><span id="L-416"><a href="#L-416"><span class="linenos">416</span></a>            <span class="k">elif</span> <span class="n">command</span> <span class="o">==</span> <span class="s1">&#39;/style&#39;</span><span class="p">:</span>
-</span><span id="L-417"><a href="#L-417"><span class="linenos">417</span></a>                <span class="k">if</span> <span class="nb">len</span><span class="p">(</span><span class="n">parts</span><span class="p">)</span> <span class="o">&gt;</span> <span class="mi">1</span><span class="p">:</span>
-</span><span id="L-418"><a href="#L-418"><span class="linenos">418</span></a>                    <span class="n">queryStyleType</span> <span class="o">=</span> <span class="n">parts</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span>
-</span><span id="L-419"><a href="#L-419"><span class="linenos">419</span></a>                    <span class="n">config</span><span class="p">[</span><span class="s1">&#39;queryCodeStyle&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="n">_queryStyle</span><span class="p">(</span><span class="n">queryStyleType</span><span class="p">)</span>
-</span><span id="L-420"><a href="#L-420"><span class="linenos">420</span></a>                    <span class="n">_saveConfigTo</span><span class="p">(</span><span class="n">config</span><span class="p">)</span>
-</span><span id="L-421"><a href="#L-421"><span class="linenos">421</span></a>                <span class="k">else</span><span class="p">:</span>
-</span><span id="L-422"><a href="#L-422"><span class="linenos">422</span></a>                    <span class="n">_queryStyle</span><span class="p">()</span>
-</span><span id="L-423"><a href="#L-423"><span class="linenos">423</span></a>            <span class="k">elif</span> <span class="n">command</span> <span class="o">==</span> <span class="s1">&#39;/version&#39;</span><span class="p">:</span>
-</span><span id="L-424"><a href="#L-424"><span class="linenos">424</span></a>                <span class="n">_displayVersion</span><span class="p">()</span>
-</span><span id="L-425"><a href="#L-425"><span class="linenos">425</span></a>            <span class="k">continue</span>
-</span><span id="L-426"><a href="#L-426"><span class="linenos">426</span></a>        <span class="n">result</span> <span class="o">=</span> <span class="n">_makeQuery</span><span class="p">(</span><span class="n">userQuery</span><span class="p">)</span>
-</span><span id="L-427"><a href="#L-427"><span class="linenos">427</span></a>        <span class="nb">print</span><span class="p">(</span><span class="s1">&#39;</span><span class="si">%s</span><span class="s1">&#39;</span> <span class="o">%</span> <span class="n">result</span><span class="p">)</span>
-</span><span id="L-428"><a href="#L-428"><span class="linenos">428</span></a>        <span class="n">click</span><span class="o">.</span><span class="n">secho</span><span class="p">(</span><span class="s1">&#39;--------------------------------------------------&#39;</span><span class="p">,</span> <span class="n">fg</span> <span class="o">=</span> <span class="s1">&#39;green&#39;</span><span class="p">)</span>
-</span><span id="L-429"><a href="#L-429"><span class="linenos">429</span></a>        <span class="nb">print</span><span class="p">()</span>
-</span><span id="L-430"><a href="#L-430"><span class="linenos">430</span></a>
-</span><span id="L-431"><a href="#L-431"><span class="linenos">431</span></a>    <span class="k">return</span> <span class="s1">&#39;REPL&#39;</span>
-</span><span id="L-432"><a href="#L-432"><span class="linenos">432</span></a>
-</span><span id="L-433"><a href="#L-433"><span class="linenos">433</span></a>
-</span><span id="L-434"><a href="#L-434"><span class="linenos">434</span></a><span class="nd">@click</span><span class="o">.</span><span class="n">command</span><span class="p">(</span><span class="s1">&#39;codex&#39;</span><span class="p">)</span>
-</span><span id="L-435"><a href="#L-435"><span class="linenos">435</span></a><span class="nd">@click</span><span class="o">.</span><span class="n">version_option</span><span class="p">(</span><span class="n">__VERSION__</span><span class="p">,</span> <span class="n">prog_name</span> <span class="o">=</span> <span class="s1">&#39;codex&#39;</span><span class="p">)</span>
-</span><span id="L-436"><a href="#L-436"><span class="linenos">436</span></a><span class="nd">@click</span><span class="o">.</span><span class="n">argument</span><span class="p">(</span><span class="s1">&#39;tokens&#39;</span><span class="p">,</span> <span class="n">nargs</span> <span class="o">=</span> <span class="o">-</span><span class="mi">1</span><span class="p">,</span> <span class="nb">type</span> <span class="o">=</span> <span class="n">click</span><span class="o">.</span><span class="n">STRING</span><span class="p">)</span>
-</span><span id="L-437"><a href="#L-437"><span class="linenos">437</span></a><span class="k">def</span> <span class="nf">codex</span><span class="p">(</span><span class="n">tokens</span><span class="p">:</span> <span class="nb">list</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">str</span><span class="p">:</span>
-</span><span id="L-438"><a href="#L-438"><span class="linenos">438</span></a><span class="w">    </span><span class="sd">&quot;&quot;&quot;</span>
-</span><span id="L-439"><a href="#L-439"><span class="linenos">439</span></a><span class="sd">    Process a command line query and display the result to the console.</span>
+</span><span id="L-372"><a href="#L-372"><span class="linenos">372</span></a>    <span class="n">_activeModel</span><span class="p">()</span>
+</span><span id="L-373"><a href="#L-373"><span class="linenos">373</span></a>    <span class="nb">print</span><span class="p">(</span><span class="s1">&#39;Available models:</span><span class="se">\n</span><span class="s1">&#39;</span><span class="p">)</span>
+</span><span id="L-374"><a href="#L-374"><span class="linenos">374</span></a>    <span class="n">n</span> <span class="o">=</span> <span class="mi">1</span>
+</span><span id="L-375"><a href="#L-375"><span class="linenos">375</span></a>    <span class="k">for</span> <span class="n">model</span> <span class="ow">in</span> <span class="n">_client</span><span class="o">.</span><span class="n">models</span><span class="o">.</span><span class="n">keys</span><span class="p">():</span>
+</span><span id="L-376"><a href="#L-376"><span class="linenos">376</span></a>        <span class="nb">print</span><span class="p">(</span><span class="s1">&#39;</span><span class="si">%2d</span><span class="s1"> - </span><span class="si">%s</span><span class="s1">&#39;</span> <span class="o">%</span> <span class="p">(</span><span class="n">n</span><span class="p">,</span> <span class="n">model</span><span class="p">))</span>
+</span><span id="L-377"><a href="#L-377"><span class="linenos">377</span></a>        <span class="n">n</span> <span class="o">+=</span> <span class="mi">1</span>
+</span><span id="L-378"><a href="#L-378"><span class="linenos">378</span></a>    <span class="nb">print</span><span class="p">()</span>
+</span><span id="L-379"><a href="#L-379"><span class="linenos">379</span></a>
+</span><span id="L-380"><a href="#L-380"><span class="linenos">380</span></a>    <span class="k">return</span> <span class="nb">list</span><span class="p">(</span><span class="n">_client</span><span class="o">.</span><span class="n">models</span><span class="o">.</span><span class="n">keys</span><span class="p">())</span>
+</span><span id="L-381"><a href="#L-381"><span class="linenos">381</span></a>
+</span><span id="L-382"><a href="#L-382"><span class="linenos">382</span></a>
+</span><span id="L-383"><a href="#L-383"><span class="linenos">383</span></a><span class="k">def</span> <span class="nf">_editingMode</span><span class="p">(</span><span class="n">session</span><span class="p">:</span> <span class="n">PromptSession</span><span class="p">,</span> <span class="n">mode</span> <span class="o">=</span> <span class="kc">None</span><span class="p">):</span>
+</span><span id="L-384"><a href="#L-384"><span class="linenos">384</span></a>    <span class="k">if</span> <span class="n">mode</span><span class="p">:</span>
+</span><span id="L-385"><a href="#L-385"><span class="linenos">385</span></a>        <span class="n">mode</span> <span class="o">=</span> <span class="n">mode</span><span class="o">.</span><span class="n">lower</span><span class="p">()</span>
+</span><span id="L-386"><a href="#L-386"><span class="linenos">386</span></a>        <span class="n">newEditingMode</span> <span class="o">=</span> <span class="n">EditingMode</span><span class="o">.</span><span class="n">EMACS</span> <span class="k">if</span> <span class="n">mode</span> <span class="o">==</span> <span class="s1">&#39;emacs&#39;</span> <span class="k">else</span> <span class="n">EditingMode</span><span class="o">.</span><span class="n">VI</span>
+</span><span id="L-387"><a href="#L-387"><span class="linenos">387</span></a>        <span class="n">session</span> <span class="o">=</span> <span class="n">PromptSession</span><span class="p">(</span><span class="n">editing_mode</span> <span class="o">=</span> <span class="n">newEditingMode</span><span class="p">)</span>
+</span><span id="L-388"><a href="#L-388"><span class="linenos">388</span></a>
+</span><span id="L-389"><a href="#L-389"><span class="linenos">389</span></a>    <span class="n">editingMode</span> <span class="o">=</span> <span class="nb">str</span><span class="p">(</span><span class="n">session</span><span class="o">.</span><span class="n">editing_mode</span><span class="p">)</span><span class="o">.</span><span class="n">replace</span><span class="p">(</span><span class="s1">&#39;EditingMode.&#39;</span><span class="p">,</span> <span class="s1">&#39;&#39;</span><span class="p">)</span><span class="o">.</span><span class="n">lower</span><span class="p">()</span>
+</span><span id="L-390"><a href="#L-390"><span class="linenos">390</span></a>    <span class="n">click</span><span class="o">.</span><span class="n">secho</span><span class="p">(</span><span class="s1">&#39;Editing mode = </span><span class="si">%s</span><span class="s1">&#39;</span> <span class="o">%</span> <span class="n">editingMode</span><span class="p">,</span> <span class="n">fg</span> <span class="o">=</span> <span class="s1">&#39;bright_blue&#39;</span><span class="p">)</span>
+</span><span id="L-391"><a href="#L-391"><span class="linenos">391</span></a>
+</span><span id="L-392"><a href="#L-392"><span class="linenos">392</span></a>    <span class="k">return</span> <span class="n">session</span>
+</span><span id="L-393"><a href="#L-393"><span class="linenos">393</span></a>
+</span><span id="L-394"><a href="#L-394"><span class="linenos">394</span></a>
+</span><span id="L-395"><a href="#L-395"><span class="linenos">395</span></a><span class="k">def</span> <span class="nf">_queryStyle</span><span class="p">(</span><span class="n">newStyle</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="kc">None</span><span class="p">):</span>
+</span><span id="L-396"><a href="#L-396"><span class="linenos">396</span></a>    <span class="k">global</span> <span class="n">_queryCodeStyle</span>
+</span><span id="L-397"><a href="#L-397"><span class="linenos">397</span></a>
+</span><span id="L-398"><a href="#L-398"><span class="linenos">398</span></a>    <span class="k">if</span> <span class="n">newStyle</span><span class="p">:</span>
+</span><span id="L-399"><a href="#L-399"><span class="linenos">399</span></a>        <span class="n">_queryCodeStyle</span> <span class="o">=</span> <span class="n">newStyle</span> <span class="o">!=</span> <span class="s1">&#39;human&#39;</span>
+</span><span id="L-400"><a href="#L-400"><span class="linenos">400</span></a>    <span class="n">click</span><span class="o">.</span><span class="n">secho</span><span class="p">(</span><span class="s1">&#39;Coding query style = </span><span class="si">%s</span><span class="s1">&#39;</span> <span class="o">%</span> <span class="n">_queryCodeStyle</span><span class="p">,</span> <span class="n">fg</span> <span class="o">=</span> <span class="s1">&#39;bright_blue&#39;</span><span class="p">)</span>
+</span><span id="L-401"><a href="#L-401"><span class="linenos">401</span></a>    <span class="k">return</span> <span class="n">_queryCodeStyle</span>
+</span><span id="L-402"><a href="#L-402"><span class="linenos">402</span></a>
+</span><span id="L-403"><a href="#L-403"><span class="linenos">403</span></a>
+</span><span id="L-404"><a href="#L-404"><span class="linenos">404</span></a><span class="k">def</span> <span class="nf">_makeQuery</span><span class="p">(</span><span class="n">userQuery</span><span class="p">:</span> <span class="nb">str</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">str</span><span class="p">:</span>
+</span><span id="L-405"><a href="#L-405"><span class="linenos">405</span></a>    <span class="k">if</span> <span class="n">_queryCodeStyle</span><span class="p">:</span>
+</span><span id="L-406"><a href="#L-406"><span class="linenos">406</span></a>        <span class="n">userQuery</span> <span class="o">=</span> <span class="n">QUERY_DETAILED</span><span class="o">+</span><span class="n">userQuery</span>
+</span><span id="L-407"><a href="#L-407"><span class="linenos">407</span></a>
+</span><span id="L-408"><a href="#L-408"><span class="linenos">408</span></a>    <span class="k">return</span> <span class="n">codexCore</span><span class="p">(</span><span class="n">userQuery</span><span class="p">)</span>
+</span><span id="L-409"><a href="#L-409"><span class="linenos">409</span></a>
+</span><span id="L-410"><a href="#L-410"><span class="linenos">410</span></a>
+</span><span id="L-411"><a href="#L-411"><span class="linenos">411</span></a><span class="k">def</span> <span class="nf">_displayVersion</span><span class="p">():</span>
+</span><span id="L-412"><a href="#L-412"><span class="linenos">412</span></a>    <span class="n">click</span><span class="o">.</span><span class="n">secho</span><span class="p">(</span><span class="s1">&#39;PerplexiPy Codex version </span><span class="si">%s</span><span class="se">\n</span><span class="s1">&#39;</span> <span class="o">%</span> <span class="n">__VERSION__</span><span class="p">,</span> <span class="n">fg</span> <span class="o">=</span> <span class="s1">&#39;bright_green&#39;</span><span class="p">)</span>
+</span><span id="L-413"><a href="#L-413"><span class="linenos">413</span></a>
+</span><span id="L-414"><a href="#L-414"><span class="linenos">414</span></a>
+</span><span id="L-415"><a href="#L-415"><span class="linenos">415</span></a><span class="k">def</span> <span class="nf">_saveConfigTo</span><span class="p">(</span><span class="n">config</span><span class="p">:</span> <span class="nb">dict</span><span class="p">,</span> <span class="n">fileName</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="n">CONFIG_FILE_NAME</span><span class="p">,</span> <span class="n">pathName</span> <span class="o">=</span> <span class="n">CONFIG_PATH</span><span class="p">):</span>
+</span><span id="L-416"><a href="#L-416"><span class="linenos">416</span></a>    <span class="k">if</span> <span class="ow">not</span> <span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">exists</span><span class="p">(</span><span class="n">pathName</span><span class="p">):</span>
+</span><span id="L-417"><a href="#L-417"><span class="linenos">417</span></a>        <span class="n">os</span><span class="o">.</span><span class="n">makedirs</span><span class="p">(</span><span class="n">pathName</span><span class="p">)</span>
+</span><span id="L-418"><a href="#L-418"><span class="linenos">418</span></a>    <span class="k">with</span> <span class="nb">open</span><span class="p">(</span><span class="n">fileName</span><span class="p">,</span> <span class="s1">&#39;w&#39;</span><span class="p">)</span> <span class="k">as</span> <span class="n">outputFile</span><span class="p">:</span>
+</span><span id="L-419"><a href="#L-419"><span class="linenos">419</span></a>        <span class="n">yaml</span><span class="o">.</span><span class="n">dump</span><span class="p">(</span><span class="n">config</span><span class="p">,</span> <span class="n">outputFile</span><span class="p">)</span>
+</span><span id="L-420"><a href="#L-420"><span class="linenos">420</span></a>
+</span><span id="L-421"><a href="#L-421"><span class="linenos">421</span></a>
+</span><span id="L-422"><a href="#L-422"><span class="linenos">422</span></a><span class="k">def</span> <span class="nf">_loadConfigFrom</span><span class="p">(</span><span class="n">fileName</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="n">CONFIG_FILE_NAME</span><span class="p">,</span> <span class="n">pathName</span> <span class="o">=</span> <span class="n">CONFIG_PATH</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">dict</span><span class="p">:</span>
+</span><span id="L-423"><a href="#L-423"><span class="linenos">423</span></a>    <span class="k">if</span> <span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">exists</span><span class="p">(</span><span class="n">fileName</span><span class="p">):</span>
+</span><span id="L-424"><a href="#L-424"><span class="linenos">424</span></a>        <span class="k">with</span> <span class="nb">open</span><span class="p">(</span><span class="n">fileName</span><span class="p">,</span> <span class="s1">&#39;r&#39;</span><span class="p">)</span> <span class="k">as</span> <span class="n">inputFile</span><span class="p">:</span>
+</span><span id="L-425"><a href="#L-425"><span class="linenos">425</span></a>            <span class="n">config</span> <span class="o">=</span> <span class="n">yaml</span><span class="o">.</span><span class="n">safe_load</span><span class="p">(</span><span class="n">inputFile</span><span class="p">)</span>
+</span><span id="L-426"><a href="#L-426"><span class="linenos">426</span></a>    <span class="k">else</span><span class="p">:</span>
+</span><span id="L-427"><a href="#L-427"><span class="linenos">427</span></a>        <span class="n">config</span> <span class="o">=</span> <span class="p">{</span>
+</span><span id="L-428"><a href="#L-428"><span class="linenos">428</span></a>            <span class="s1">&#39;activeModel&#39;</span><span class="p">:</span> <span class="n">DEFAULT_MODEL_NAME</span><span class="p">,</span>
+</span><span id="L-429"><a href="#L-429"><span class="linenos">429</span></a>            <span class="s1">&#39;editingMode&#39;</span><span class="p">:</span> <span class="s1">&#39;vi&#39;</span><span class="p">,</span>
+</span><span id="L-430"><a href="#L-430"><span class="linenos">430</span></a>            <span class="s1">&#39;queryCodeStyle&#39;</span><span class="p">:</span> <span class="n">_queryCodeStyle</span><span class="p">,</span>
+</span><span id="L-431"><a href="#L-431"><span class="linenos">431</span></a>        <span class="p">}</span>
+</span><span id="L-432"><a href="#L-432"><span class="linenos">432</span></a>        <span class="n">_saveConfigTo</span><span class="p">(</span><span class="n">config</span><span class="p">,</span> <span class="n">fileName</span><span class="p">,</span> <span class="n">pathName</span><span class="p">)</span>
+</span><span id="L-433"><a href="#L-433"><span class="linenos">433</span></a>    <span class="k">return</span> <span class="n">config</span>
+</span><span id="L-434"><a href="#L-434"><span class="linenos">434</span></a>
+</span><span id="L-435"><a href="#L-435"><span class="linenos">435</span></a>
+</span><span id="L-436"><a href="#L-436"><span class="linenos">436</span></a><span class="k">def</span> <span class="nf">_displayConfigInfo</span><span class="p">():</span>
+</span><span id="L-437"><a href="#L-437"><span class="linenos">437</span></a>    <span class="n">click</span><span class="o">.</span><span class="n">secho</span><span class="p">(</span><span class="s1">&#39;Config file: </span><span class="si">%s</span><span class="s1">&#39;</span> <span class="o">%</span> <span class="n">CONFIG_FILE_NAME</span><span class="p">)</span>
+</span><span id="L-438"><a href="#L-438"><span class="linenos">438</span></a>    <span class="n">click</span><span class="o">.</span><span class="n">secho</span><span class="p">(</span><span class="nb">str</span><span class="p">(</span><span class="n">_loadConfigFrom</span><span class="p">())</span><span class="o">+</span><span class="s1">&#39;</span><span class="se">\n</span><span class="s1">&#39;</span><span class="p">)</span>
+</span><span id="L-439"><a href="#L-439"><span class="linenos">439</span></a>
 </span><span id="L-440"><a href="#L-440"><span class="linenos">440</span></a>
-</span><span id="L-441"><a href="#L-441"><span class="linenos">441</span></a><span class="sd">    Arguments</span>
-</span><span id="L-442"><a href="#L-442"><span class="linenos">442</span></a><span class="sd">    ---------</span>
-</span><span id="L-443"><a href="#L-443"><span class="linenos">443</span></a><span class="sd">        tokens</span>
-</span><span id="L-444"><a href="#L-444"><span class="linenos">444</span></a><span class="sd">    A list of tokens that will be assembled as a single string for</span>
-</span><span id="L-445"><a href="#L-445"><span class="linenos">445</span></a><span class="sd">    processing.</span>
-</span><span id="L-446"><a href="#L-446"><span class="linenos">446</span></a>
-</span><span id="L-447"><a href="#L-447"><span class="linenos">447</span></a><span class="sd">    Returns</span>
-</span><span id="L-448"><a href="#L-448"><span class="linenos">448</span></a><span class="sd">    -------</span>
-</span><span id="L-449"><a href="#L-449"><span class="linenos">449</span></a><span class="sd">    A string with the response to the query, after displaying it to the</span>
-</span><span id="L-450"><a href="#L-450"><span class="linenos">450</span></a><span class="sd">    console.</span>
-</span><span id="L-451"><a href="#L-451"><span class="linenos">451</span></a><span class="sd">    &quot;&quot;&quot;</span>
-</span><span id="L-452"><a href="#L-452"><span class="linenos">452</span></a>    <span class="n">result</span> <span class="o">=</span> <span class="kc">None</span>
-</span><span id="L-453"><a href="#L-453"><span class="linenos">453</span></a>    <span class="n">userQuery</span> <span class="o">=</span> <span class="kc">None</span>
-</span><span id="L-454"><a href="#L-454"><span class="linenos">454</span></a>    <span class="k">if</span> <span class="nb">len</span><span class="p">(</span><span class="n">tokens</span><span class="p">):</span>
-</span><span id="L-455"><a href="#L-455"><span class="linenos">455</span></a>        <span class="k">if</span> <span class="nb">len</span><span class="p">(</span><span class="n">tokens</span><span class="p">)</span> <span class="o">==</span> <span class="mi">1</span> <span class="ow">and</span> <span class="n">tokens</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="o">.</span><span class="n">lower</span><span class="p">()</span> <span class="o">==</span> <span class="n">ARG_REPL</span><span class="p">:</span>
-</span><span id="L-456"><a href="#L-456"><span class="linenos">456</span></a>            <span class="n">userQuery</span> <span class="o">=</span> <span class="n">_runREPL</span><span class="p">()</span>
-</span><span id="L-457"><a href="#L-457"><span class="linenos">457</span></a>        <span class="k">else</span><span class="p">:</span>
-</span><span id="L-458"><a href="#L-458"><span class="linenos">458</span></a>            <span class="n">userQuery</span> <span class="o">=</span> <span class="n">QUERY_CRISP</span><span class="o">+</span><span class="s1">&#39;&#39;</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="n">tokens</span><span class="p">)</span>
-</span><span id="L-459"><a href="#L-459"><span class="linenos">459</span></a>    <span class="k">elif</span> <span class="n">_stdinHasData</span><span class="p">():</span>
-</span><span id="L-460"><a href="#L-460"><span class="linenos">460</span></a>        <span class="n">userQuery</span> <span class="o">=</span> <span class="n">_assembleInput</span><span class="p">()</span>
-</span><span id="L-461"><a href="#L-461"><span class="linenos">461</span></a>        <span class="n">userQuery</span> <span class="o">=</span> <span class="n">QUERY_DETAILED</span><span class="o">+</span><span class="n">userQuery</span>
-</span><span id="L-462"><a href="#L-462"><span class="linenos">462</span></a>
-</span><span id="L-463"><a href="#L-463"><span class="linenos">463</span></a>    <span class="k">if</span> <span class="n">userQuery</span><span class="p">:</span>
-</span><span id="L-464"><a href="#L-464"><span class="linenos">464</span></a>        <span class="n">result</span> <span class="o">=</span> <span class="n">codexCore</span><span class="p">(</span><span class="n">userQuery</span><span class="p">)</span>
-</span><span id="L-465"><a href="#L-465"><span class="linenos">465</span></a>        <span class="n">click</span><span class="o">.</span><span class="n">echo</span><span class="p">(</span><span class="n">result</span><span class="p">)</span>
-</span><span id="L-466"><a href="#L-466"><span class="linenos">466</span></a>    <span class="k">else</span><span class="p">:</span>
-</span><span id="L-467"><a href="#L-467"><span class="linenos">467</span></a>        <span class="n">_die</span><span class="p">(</span><span class="n">_helpUser</span><span class="p">(),</span> <span class="mi">1</span><span class="p">)</span>
-</span><span id="L-468"><a href="#L-468"><span class="linenos">468</span></a>
-</span><span id="L-469"><a href="#L-469"><span class="linenos">469</span></a>    <span class="k">return</span> <span class="n">result</span>
-</span><span id="L-470"><a href="#L-470"><span class="linenos">470</span></a>
-</span><span id="L-471"><a href="#L-471"><span class="linenos">471</span></a>
-</span><span id="L-472"><a href="#L-472"><span class="linenos">472</span></a><span class="k">if</span> <span class="s1">&#39;__main__&#39;</span> <span class="o">==</span> <span class="vm">__name__</span><span class="p">:</span>
-</span><span id="L-473"><a href="#L-473"><span class="linenos">473</span></a>    <span class="n">codex</span><span class="p">()</span>
+</span><span id="L-441"><a href="#L-441"><span class="linenos">441</span></a><span class="c1"># TODO: Refactor REPL - https://github.com/CIME-Software/perplexipy/issues/46</span>
+</span><span id="L-442"><a href="#L-442"><span class="linenos">442</span></a><span class="k">def</span> <span class="nf">_runREPL</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="nb">str</span><span class="p">:</span>
+</span><span id="L-443"><a href="#L-443"><span class="linenos">443</span></a><span class="w">    </span><span class="sd">&quot;&quot;&quot;</span>
+</span><span id="L-444"><a href="#L-444"><span class="linenos">444</span></a><span class="sd">    Run a REPL loop for sending queries to the AI provider.</span>
+</span><span id="L-445"><a href="#L-445"><span class="linenos">445</span></a>
+</span><span id="L-446"><a href="#L-446"><span class="linenos">446</span></a><span class="sd">    Returns</span>
+</span><span id="L-447"><a href="#L-447"><span class="linenos">447</span></a><span class="sd">    -------</span>
+</span><span id="L-448"><a href="#L-448"><span class="linenos">448</span></a><span class="sd">    The word &quot;REPL&quot; to signal to the `codex` command that it received valid</span>
+</span><span id="L-449"><a href="#L-449"><span class="linenos">449</span></a><span class="sd">    input.</span>
+</span><span id="L-450"><a href="#L-450"><span class="linenos">450</span></a><span class="sd">    &quot;&quot;&quot;</span>
+</span><span id="L-451"><a href="#L-451"><span class="linenos">451</span></a>    <span class="n">config</span> <span class="o">=</span> <span class="n">_loadConfigFrom</span><span class="p">()</span>
+</span><span id="L-452"><a href="#L-452"><span class="linenos">452</span></a>    <span class="n">session</span> <span class="o">=</span> <span class="n">PromptSession</span><span class="p">()</span>
+</span><span id="L-453"><a href="#L-453"><span class="linenos">453</span></a>    <span class="n">_activeModel</span><span class="p">(</span><span class="nb">list</span><span class="p">(</span><span class="n">_client</span><span class="o">.</span><span class="n">models</span><span class="o">.</span><span class="n">keys</span><span class="p">())</span><span class="o">.</span><span class="n">index</span><span class="p">(</span><span class="n">config</span><span class="p">[</span><span class="s1">&#39;activeModel&#39;</span><span class="p">])</span><span class="o">+</span><span class="mi">1</span><span class="p">)</span>
+</span><span id="L-454"><a href="#L-454"><span class="linenos">454</span></a>    <span class="n">_REPLHello</span><span class="p">()</span>
+</span><span id="L-455"><a href="#L-455"><span class="linenos">455</span></a>    <span class="n">session</span> <span class="o">=</span> <span class="n">_editingMode</span><span class="p">(</span><span class="n">session</span><span class="p">,</span> <span class="n">config</span><span class="p">[</span><span class="s1">&#39;editingMode&#39;</span><span class="p">])</span>
+</span><span id="L-456"><a href="#L-456"><span class="linenos">456</span></a>    <span class="n">_queryStyle</span><span class="p">(</span><span class="s1">&#39;code&#39;</span> <span class="k">if</span> <span class="n">config</span><span class="p">[</span><span class="s1">&#39;queryCodeStyle&#39;</span><span class="p">]</span> <span class="k">else</span> <span class="s1">&#39;human&#39;</span><span class="p">)</span>
+</span><span id="L-457"><a href="#L-457"><span class="linenos">457</span></a>    <span class="k">while</span> <span class="kc">True</span><span class="p">:</span>
+</span><span id="L-458"><a href="#L-458"><span class="linenos">458</span></a>        <span class="n">userQuery</span> <span class="o">=</span> <span class="n">session</span><span class="o">.</span><span class="n">prompt</span><span class="p">(</span><span class="s1">&#39;Ask anything (/exit to end): &#39;</span><span class="p">)</span>
+</span><span id="L-459"><a href="#L-459"><span class="linenos">459</span></a>        <span class="k">if</span> <span class="ow">not</span> <span class="n">userQuery</span><span class="p">:</span>
+</span><span id="L-460"><a href="#L-460"><span class="linenos">460</span></a>            <span class="k">continue</span>
+</span><span id="L-461"><a href="#L-461"><span class="linenos">461</span></a>        <span class="k">if</span> <span class="n">userQuery</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="ow">in</span> <span class="p">(</span><span class="s1">&#39;/&#39;</span><span class="p">,</span> <span class="s1">&#39;?&#39;</span><span class="p">,</span> <span class="s1">&#39;:&#39;</span><span class="p">):</span>
+</span><span id="L-462"><a href="#L-462"><span class="linenos">462</span></a>            <span class="n">parts</span> <span class="o">=</span> <span class="n">userQuery</span><span class="o">.</span><span class="n">split</span><span class="p">(</span><span class="s1">&#39; &#39;</span><span class="p">)</span>
+</span><span id="L-463"><a href="#L-463"><span class="linenos">463</span></a>            <span class="n">command</span> <span class="o">=</span> <span class="n">parts</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span>
+</span><span id="L-464"><a href="#L-464"><span class="linenos">464</span></a>            <span class="k">if</span> <span class="n">command</span> <span class="ow">in</span> <span class="p">(</span><span class="s1">&#39;/exit&#39;</span><span class="p">,</span> <span class="s1">&#39;/quit&#39;</span><span class="p">,</span> <span class="s1">&#39;:q&#39;</span><span class="p">,</span> <span class="s1">&#39;/q&#39;</span><span class="p">):</span>
+</span><span id="L-465"><a href="#L-465"><span class="linenos">465</span></a>                <span class="n">sys</span><span class="o">.</span><span class="n">exit</span><span class="p">(</span><span class="mi">0</span><span class="p">)</span>
+</span><span id="L-466"><a href="#L-466"><span class="linenos">466</span></a>            <span class="k">elif</span> <span class="n">command</span> <span class="o">==</span> <span class="s1">&#39;/active&#39;</span><span class="p">:</span>
+</span><span id="L-467"><a href="#L-467"><span class="linenos">467</span></a>                <span class="k">if</span> <span class="nb">len</span><span class="p">(</span><span class="n">parts</span><span class="p">)</span> <span class="o">&gt;</span> <span class="mi">1</span><span class="p">:</span>
+</span><span id="L-468"><a href="#L-468"><span class="linenos">468</span></a>                    <span class="k">try</span><span class="p">:</span>
+</span><span id="L-469"><a href="#L-469"><span class="linenos">469</span></a>                        <span class="n">model</span> <span class="o">=</span> <span class="nb">int</span><span class="p">(</span><span class="n">parts</span><span class="p">[</span><span class="mi">1</span><span class="p">])</span>
+</span><span id="L-470"><a href="#L-470"><span class="linenos">470</span></a>                        <span class="n">config</span><span class="p">[</span><span class="s1">&#39;activeModel&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="n">_activeModel</span><span class="p">(</span><span class="n">model</span><span class="p">)</span>
+</span><span id="L-471"><a href="#L-471"><span class="linenos">471</span></a>                        <span class="n">_saveConfigTo</span><span class="p">(</span><span class="n">config</span><span class="p">)</span>
+</span><span id="L-472"><a href="#L-472"><span class="linenos">472</span></a>                    <span class="k">except</span><span class="p">:</span>
+</span><span id="L-473"><a href="#L-473"><span class="linenos">473</span></a>                        <span class="c1"># Invalid input, ignore and leave the current model</span>
+</span><span id="L-474"><a href="#L-474"><span class="linenos">474</span></a>                        <span class="c1"># active.</span>
+</span><span id="L-475"><a href="#L-475"><span class="linenos">475</span></a>                        <span class="k">pass</span>
+</span><span id="L-476"><a href="#L-476"><span class="linenos">476</span></a>                <span class="k">else</span><span class="p">:</span>
+</span><span id="L-477"><a href="#L-477"><span class="linenos">477</span></a>                    <span class="n">_activeModel</span><span class="p">()</span>
+</span><span id="L-478"><a href="#L-478"><span class="linenos">478</span></a>            <span class="k">elif</span> <span class="n">command</span> <span class="o">==</span> <span class="s1">&#39;/cinfo&#39;</span><span class="p">:</span>
+</span><span id="L-479"><a href="#L-479"><span class="linenos">479</span></a>                <span class="n">_displayConfigInfo</span><span class="p">()</span>
+</span><span id="L-480"><a href="#L-480"><span class="linenos">480</span></a>            <span class="k">elif</span> <span class="n">command</span> <span class="o">==</span> <span class="s1">&#39;/clear&#39;</span><span class="p">:</span>
+</span><span id="L-481"><a href="#L-481"><span class="linenos">481</span></a>                <span class="n">click</span><span class="o">.</span><span class="n">clear</span><span class="p">()</span>
+</span><span id="L-482"><a href="#L-482"><span class="linenos">482</span></a>                <span class="n">_editingMode</span><span class="p">(</span><span class="n">session</span><span class="p">)</span>
+</span><span id="L-483"><a href="#L-483"><span class="linenos">483</span></a>            <span class="k">elif</span> <span class="n">command</span> <span class="ow">in</span> <span class="p">(</span><span class="s1">&#39;/help&#39;</span><span class="p">,</span> <span class="s1">&#39;?&#39;</span><span class="p">):</span>
+</span><span id="L-484"><a href="#L-484"><span class="linenos">484</span></a>                <span class="n">_helpREPL</span><span class="p">()</span>
+</span><span id="L-485"><a href="#L-485"><span class="linenos">485</span></a>            <span class="k">elif</span> <span class="n">command</span> <span class="o">==</span> <span class="s1">&#39;/mode&#39;</span><span class="p">:</span>
+</span><span id="L-486"><a href="#L-486"><span class="linenos">486</span></a>                <span class="k">if</span> <span class="nb">len</span><span class="p">(</span><span class="n">parts</span><span class="p">)</span> <span class="o">&gt;</span> <span class="mi">1</span><span class="p">:</span>
+</span><span id="L-487"><a href="#L-487"><span class="linenos">487</span></a>                    <span class="k">try</span><span class="p">:</span>
+</span><span id="L-488"><a href="#L-488"><span class="linenos">488</span></a>                        <span class="n">session</span> <span class="o">=</span> <span class="n">_editingMode</span><span class="p">(</span><span class="n">session</span><span class="p">,</span> <span class="n">parts</span><span class="p">[</span><span class="mi">1</span><span class="p">])</span>
+</span><span id="L-489"><a href="#L-489"><span class="linenos">489</span></a>                        <span class="n">config</span><span class="p">[</span><span class="s1">&#39;editingMode&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="n">parts</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span>
+</span><span id="L-490"><a href="#L-490"><span class="linenos">490</span></a>                        <span class="n">_saveConfigTo</span><span class="p">(</span><span class="n">config</span><span class="p">)</span>
+</span><span id="L-491"><a href="#L-491"><span class="linenos">491</span></a>                    <span class="k">except</span><span class="p">:</span>
+</span><span id="L-492"><a href="#L-492"><span class="linenos">492</span></a>                        <span class="k">pass</span>
+</span><span id="L-493"><a href="#L-493"><span class="linenos">493</span></a>                <span class="k">else</span><span class="p">:</span>
+</span><span id="L-494"><a href="#L-494"><span class="linenos">494</span></a>                    <span class="n">_editingMode</span><span class="p">(</span><span class="n">session</span><span class="p">)</span>
+</span><span id="L-495"><a href="#L-495"><span class="linenos">495</span></a>            <span class="k">elif</span> <span class="n">command</span> <span class="o">==</span> <span class="s1">&#39;/models&#39;</span><span class="p">:</span>
+</span><span id="L-496"><a href="#L-496"><span class="linenos">496</span></a>                <span class="n">_displayModels</span><span class="p">()</span>
+</span><span id="L-497"><a href="#L-497"><span class="linenos">497</span></a>            <span class="k">elif</span> <span class="n">command</span> <span class="o">==</span> <span class="s1">&#39;/style&#39;</span><span class="p">:</span>
+</span><span id="L-498"><a href="#L-498"><span class="linenos">498</span></a>                <span class="k">if</span> <span class="nb">len</span><span class="p">(</span><span class="n">parts</span><span class="p">)</span> <span class="o">&gt;</span> <span class="mi">1</span><span class="p">:</span>
+</span><span id="L-499"><a href="#L-499"><span class="linenos">499</span></a>                    <span class="n">queryStyleType</span> <span class="o">=</span> <span class="n">parts</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span>
+</span><span id="L-500"><a href="#L-500"><span class="linenos">500</span></a>                    <span class="n">config</span><span class="p">[</span><span class="s1">&#39;queryCodeStyle&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="n">_queryStyle</span><span class="p">(</span><span class="n">queryStyleType</span><span class="p">)</span>
+</span><span id="L-501"><a href="#L-501"><span class="linenos">501</span></a>                    <span class="n">_saveConfigTo</span><span class="p">(</span><span class="n">config</span><span class="p">)</span>
+</span><span id="L-502"><a href="#L-502"><span class="linenos">502</span></a>                <span class="k">else</span><span class="p">:</span>
+</span><span id="L-503"><a href="#L-503"><span class="linenos">503</span></a>                    <span class="n">_queryStyle</span><span class="p">()</span>
+</span><span id="L-504"><a href="#L-504"><span class="linenos">504</span></a>            <span class="k">elif</span> <span class="n">command</span> <span class="o">==</span> <span class="s1">&#39;/version&#39;</span><span class="p">:</span>
+</span><span id="L-505"><a href="#L-505"><span class="linenos">505</span></a>                <span class="n">_displayVersion</span><span class="p">()</span>
+</span><span id="L-506"><a href="#L-506"><span class="linenos">506</span></a>            <span class="k">continue</span>
+</span><span id="L-507"><a href="#L-507"><span class="linenos">507</span></a>        <span class="n">result</span> <span class="o">=</span> <span class="n">_makeQuery</span><span class="p">(</span><span class="n">userQuery</span><span class="p">)</span>
+</span><span id="L-508"><a href="#L-508"><span class="linenos">508</span></a>        <span class="nb">print</span><span class="p">(</span><span class="s1">&#39;</span><span class="si">%s</span><span class="s1">&#39;</span> <span class="o">%</span> <span class="n">result</span><span class="p">)</span>
+</span><span id="L-509"><a href="#L-509"><span class="linenos">509</span></a>        <span class="n">click</span><span class="o">.</span><span class="n">secho</span><span class="p">(</span><span class="s1">&#39;--------------------------------------------------&#39;</span><span class="p">,</span> <span class="n">fg</span> <span class="o">=</span> <span class="s1">&#39;green&#39;</span><span class="p">)</span>
+</span><span id="L-510"><a href="#L-510"><span class="linenos">510</span></a>        <span class="nb">print</span><span class="p">()</span>
+</span><span id="L-511"><a href="#L-511"><span class="linenos">511</span></a>
+</span><span id="L-512"><a href="#L-512"><span class="linenos">512</span></a>    <span class="k">return</span> <span class="s1">&#39;REPL&#39;</span>
+</span><span id="L-513"><a href="#L-513"><span class="linenos">513</span></a>
+</span><span id="L-514"><a href="#L-514"><span class="linenos">514</span></a>
+</span><span id="L-515"><a href="#L-515"><span class="linenos">515</span></a><span class="nd">@click</span><span class="o">.</span><span class="n">command</span><span class="p">(</span><span class="s1">&#39;codex&#39;</span><span class="p">)</span>
+</span><span id="L-516"><a href="#L-516"><span class="linenos">516</span></a><span class="nd">@click</span><span class="o">.</span><span class="n">version_option</span><span class="p">(</span><span class="n">__VERSION__</span><span class="p">,</span> <span class="n">prog_name</span> <span class="o">=</span> <span class="s1">&#39;codex&#39;</span><span class="p">)</span>
+</span><span id="L-517"><a href="#L-517"><span class="linenos">517</span></a><span class="nd">@click</span><span class="o">.</span><span class="n">argument</span><span class="p">(</span><span class="s1">&#39;tokens&#39;</span><span class="p">,</span> <span class="n">nargs</span> <span class="o">=</span> <span class="o">-</span><span class="mi">1</span><span class="p">,</span> <span class="nb">type</span> <span class="o">=</span> <span class="n">click</span><span class="o">.</span><span class="n">STRING</span><span class="p">)</span>
+</span><span id="L-518"><a href="#L-518"><span class="linenos">518</span></a><span class="k">def</span> <span class="nf">codex</span><span class="p">(</span><span class="n">tokens</span><span class="p">:</span> <span class="nb">list</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">str</span><span class="p">:</span>
+</span><span id="L-519"><a href="#L-519"><span class="linenos">519</span></a><span class="w">    </span><span class="sd">&quot;&quot;&quot;</span>
+</span><span id="L-520"><a href="#L-520"><span class="linenos">520</span></a><span class="sd">    Process a command line query and display the result to the console.</span>
+</span><span id="L-521"><a href="#L-521"><span class="linenos">521</span></a>
+</span><span id="L-522"><a href="#L-522"><span class="linenos">522</span></a><span class="sd">    Arguments</span>
+</span><span id="L-523"><a href="#L-523"><span class="linenos">523</span></a><span class="sd">    ---------</span>
+</span><span id="L-524"><a href="#L-524"><span class="linenos">524</span></a><span class="sd">        tokens</span>
+</span><span id="L-525"><a href="#L-525"><span class="linenos">525</span></a><span class="sd">    A list of tokens that will be assembled as a single string for</span>
+</span><span id="L-526"><a href="#L-526"><span class="linenos">526</span></a><span class="sd">    processing.</span>
+</span><span id="L-527"><a href="#L-527"><span class="linenos">527</span></a>
+</span><span id="L-528"><a href="#L-528"><span class="linenos">528</span></a><span class="sd">    Returns</span>
+</span><span id="L-529"><a href="#L-529"><span class="linenos">529</span></a><span class="sd">    -------</span>
+</span><span id="L-530"><a href="#L-530"><span class="linenos">530</span></a><span class="sd">    A string with the response to the query, after displaying it to the</span>
+</span><span id="L-531"><a href="#L-531"><span class="linenos">531</span></a><span class="sd">    console.</span>
+</span><span id="L-532"><a href="#L-532"><span class="linenos">532</span></a><span class="sd">    &quot;&quot;&quot;</span>
+</span><span id="L-533"><a href="#L-533"><span class="linenos">533</span></a>    <span class="n">result</span> <span class="o">=</span> <span class="kc">None</span>
+</span><span id="L-534"><a href="#L-534"><span class="linenos">534</span></a>    <span class="n">userQuery</span> <span class="o">=</span> <span class="kc">None</span>
+</span><span id="L-535"><a href="#L-535"><span class="linenos">535</span></a>    <span class="k">if</span> <span class="nb">len</span><span class="p">(</span><span class="n">tokens</span><span class="p">):</span>
+</span><span id="L-536"><a href="#L-536"><span class="linenos">536</span></a>        <span class="k">if</span> <span class="nb">len</span><span class="p">(</span><span class="n">tokens</span><span class="p">)</span> <span class="o">==</span> <span class="mi">1</span> <span class="ow">and</span> <span class="n">tokens</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="o">.</span><span class="n">lower</span><span class="p">()</span> <span class="o">==</span> <span class="n">ARG_REPL</span><span class="p">:</span>
+</span><span id="L-537"><a href="#L-537"><span class="linenos">537</span></a>            <span class="n">userQuery</span> <span class="o">=</span> <span class="n">_runREPL</span><span class="p">()</span>
+</span><span id="L-538"><a href="#L-538"><span class="linenos">538</span></a>        <span class="k">else</span><span class="p">:</span>
+</span><span id="L-539"><a href="#L-539"><span class="linenos">539</span></a>            <span class="n">userQuery</span> <span class="o">=</span> <span class="n">QUERY_CRISP</span><span class="o">+</span><span class="s1">&#39;&#39;</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="n">tokens</span><span class="p">)</span>
+</span><span id="L-540"><a href="#L-540"><span class="linenos">540</span></a>    <span class="k">elif</span> <span class="n">_stdinHasData</span><span class="p">():</span>
+</span><span id="L-541"><a href="#L-541"><span class="linenos">541</span></a>        <span class="n">userQuery</span> <span class="o">=</span> <span class="n">_assembleInput</span><span class="p">()</span>
+</span><span id="L-542"><a href="#L-542"><span class="linenos">542</span></a>        <span class="n">userQuery</span> <span class="o">=</span> <span class="n">QUERY_DETAILED</span><span class="o">+</span><span class="n">userQuery</span>
+</span><span id="L-543"><a href="#L-543"><span class="linenos">543</span></a>
+</span><span id="L-544"><a href="#L-544"><span class="linenos">544</span></a>    <span class="k">if</span> <span class="n">userQuery</span><span class="p">:</span>
+</span><span id="L-545"><a href="#L-545"><span class="linenos">545</span></a>        <span class="n">result</span> <span class="o">=</span> <span class="n">codexCore</span><span class="p">(</span><span class="n">userQuery</span><span class="p">)</span>
+</span><span id="L-546"><a href="#L-546"><span class="linenos">546</span></a>        <span class="n">click</span><span class="o">.</span><span class="n">echo</span><span class="p">(</span><span class="n">result</span><span class="p">)</span>
+</span><span id="L-547"><a href="#L-547"><span class="linenos">547</span></a>    <span class="k">else</span><span class="p">:</span>
+</span><span id="L-548"><a href="#L-548"><span class="linenos">548</span></a>        <span class="n">_die</span><span class="p">(</span><span class="n">_helpUser</span><span class="p">(),</span> <span class="mi">1</span><span class="p">)</span>
+</span><span id="L-549"><a href="#L-549"><span class="linenos">549</span></a>
+</span><span id="L-550"><a href="#L-550"><span class="linenos">550</span></a>    <span class="k">return</span> <span class="n">result</span>
+</span><span id="L-551"><a href="#L-551"><span class="linenos">551</span></a>
+</span><span id="L-552"><a href="#L-552"><span class="linenos">552</span></a>
+</span><span id="L-553"><a href="#L-553"><span class="linenos">553</span></a><span class="k">if</span> <span class="s1">&#39;__main__&#39;</span> <span class="o">==</span> <span class="vm">__name__</span><span class="p">:</span>
+</span><span id="L-554"><a href="#L-554"><span class="linenos">554</span></a>    <span class="n">codex</span><span class="p">()</span>
 </span></pre></div>
 
 
@@ -560,13 +650,15 @@ <h1 class="modulename">
                 <section id="DEFAULT_MODEL_NAME">
                     <div class="attr variable">
             <span class="name">DEFAULT_MODEL_NAME</span>        =
-<span class="default_value">&#39;mixtral-8x7b-instruct&#39;</span>
+<span class="default_value">&#39;llama-3-sonar-small-32k-chat&#39;</span>
 
         
     </div>
     <a class="headerlink" href="#DEFAULT_MODEL_NAME"></a>
     
-    
+            <div class="docstring"><p>Codex Playground default model.</p>
+</div>
+
 
                 </section>
                 <section id="CodexREPL">
@@ -580,123 +672,197 @@ <h1 class="modulename">
 
     </div>
     <a class="headerlink" href="#CodexREPL"></a>
-            <div class="pdoc-code codehilite"><pre><span></span><span id="CodexREPL-77"><a href="#CodexREPL-77"><span class="linenos"> 77</span></a><span class="k">class</span> <span class="nc">CodexREPL</span><span class="p">:</span>
-</span><span id="CodexREPL-78"><a href="#CodexREPL-78"><span class="linenos"> 78</span></a>
-</span><span id="CodexREPL-79"><a href="#CodexREPL-79"><span class="linenos"> 79</span></a>    <span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
-</span><span id="CodexREPL-80"><a href="#CodexREPL-80"><span class="linenos"> 80</span></a>        <span class="bp">self</span><span class="o">.</span><span class="n">_client</span> <span class="o">=</span> <span class="n">PerplexityClient</span><span class="p">(</span><span class="n">key</span> <span class="o">=</span> <span class="n">os</span><span class="o">.</span><span class="n">environ</span><span class="p">[</span><span class="s1">&#39;PERPLEXITY_API_KEY&#39;</span><span class="p">])</span>
-</span><span id="CodexREPL-81"><a href="#CodexREPL-81"><span class="linenos"> 81</span></a>        <span class="bp">self</span><span class="o">.</span><span class="n">_client</span><span class="o">.</span><span class="n">model</span> <span class="o">=</span> <span class="n">DEFAULT_MODEL_NAME</span>
-</span><span id="CodexREPL-82"><a href="#CodexREPL-82"><span class="linenos"> 82</span></a>        <span class="bp">self</span><span class="o">.</span><span class="n">_queryCodeStyle</span> <span class="o">=</span> <span class="kc">True</span>
+            <div class="pdoc-code codehilite"><pre><span></span><span id="CodexREPL-82"><a href="#CodexREPL-82"><span class="linenos"> 82</span></a><span class="k">class</span> <span class="nc">CodexREPL</span><span class="p">:</span>
 </span><span id="CodexREPL-83"><a href="#CodexREPL-83"><span class="linenos"> 83</span></a>
-</span><span id="CodexREPL-84"><a href="#CodexREPL-84"><span class="linenos"> 84</span></a>
-</span><span id="CodexREPL-85"><a href="#CodexREPL-85"><span class="linenos"> 85</span></a>    <span class="k">def</span> <span class="nf">core</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">userQuery</span><span class="p">:</span> <span class="nb">str</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">str</span><span class="p">:</span>
-</span><span id="CodexREPL-86"><a href="#CodexREPL-86"><span class="linenos"> 86</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
-</span><span id="CodexREPL-87"><a href="#CodexREPL-87"><span class="linenos"> 87</span></a><span class="sd">        Send a user query to the model for processing.</span>
-</span><span id="CodexREPL-88"><a href="#CodexREPL-88"><span class="linenos"> 88</span></a>
-</span><span id="CodexREPL-89"><a href="#CodexREPL-89"><span class="linenos"> 89</span></a><span class="sd">        Arguments</span>
-</span><span id="CodexREPL-90"><a href="#CodexREPL-90"><span class="linenos"> 90</span></a><span class="sd">        ---------</span>
-</span><span id="CodexREPL-91"><a href="#CodexREPL-91"><span class="linenos"> 91</span></a><span class="sd">            userQuery</span>
-</span><span id="CodexREPL-92"><a href="#CodexREPL-92"><span class="linenos"> 92</span></a><span class="sd">        A string with the user query, most often a programming question.</span>
-</span><span id="CodexREPL-93"><a href="#CodexREPL-93"><span class="linenos"> 93</span></a>
-</span><span id="CodexREPL-94"><a href="#CodexREPL-94"><span class="linenos"> 94</span></a><span class="sd">        Returns</span>
-</span><span id="CodexREPL-95"><a href="#CodexREPL-95"><span class="linenos"> 95</span></a><span class="sd">        -------</span>
-</span><span id="CodexREPL-96"><a href="#CodexREPL-96"><span class="linenos"> 96</span></a><span class="sd">        The result of the query, or `None` if the query was empty.</span>
-</span><span id="CodexREPL-97"><a href="#CodexREPL-97"><span class="linenos"> 97</span></a><span class="sd">        &quot;&quot;&quot;</span>
-</span><span id="CodexREPL-98"><a href="#CodexREPL-98"><span class="linenos"> 98</span></a>        <span class="n">result</span> <span class="o">=</span> <span class="kc">None</span>
-</span><span id="CodexREPL-99"><a href="#CodexREPL-99"><span class="linenos"> 99</span></a>        <span class="k">if</span> <span class="n">userQuery</span><span class="p">:</span>
-</span><span id="CodexREPL-100"><a href="#CodexREPL-100"><span class="linenos">100</span></a>            <span class="k">if</span> <span class="ow">not</span> <span class="bp">self</span><span class="o">.</span><span class="n">_client</span><span class="p">:</span>
-</span><span id="CodexREPL-101"><a href="#CodexREPL-101"><span class="linenos">101</span></a>                <span class="bp">self</span><span class="o">.</span><span class="n">_client</span> <span class="o">=</span> <span class="n">PerplexityClient</span><span class="p">(</span><span class="n">key</span> <span class="o">=</span> <span class="n">os</span><span class="o">.</span><span class="n">environ</span><span class="p">[</span><span class="s1">&#39;PERPLEXITY_API_KEY&#39;</span><span class="p">])</span>
-</span><span id="CodexREPL-102"><a href="#CodexREPL-102"><span class="linenos">102</span></a>                <span class="bp">self</span><span class="o">.</span><span class="n">_client</span><span class="o">.</span><span class="n">model</span> <span class="o">=</span> <span class="n">DEFAULT_MODEL_NAME</span>
-</span><span id="CodexREPL-103"><a href="#CodexREPL-103"><span class="linenos">103</span></a>            <span class="n">result</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_client</span><span class="o">.</span><span class="n">query</span><span class="p">(</span><span class="n">userQuery</span><span class="p">)</span>
-</span><span id="CodexREPL-104"><a href="#CodexREPL-104"><span class="linenos">104</span></a>
-</span><span id="CodexREPL-105"><a href="#CodexREPL-105"><span class="linenos">105</span></a>        <span class="k">return</span> <span class="n">result</span>
-</span><span id="CodexREPL-106"><a href="#CodexREPL-106"><span class="linenos">106</span></a>
-</span><span id="CodexREPL-107"><a href="#CodexREPL-107"><span class="linenos">107</span></a>
-</span><span id="CodexREPL-108"><a href="#CodexREPL-108"><span class="linenos">108</span></a>    <span class="k">def</span> <span class="nf">activeModel</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">modelID</span><span class="p">:</span> <span class="nb">int</span> <span class="o">=</span> <span class="mi">0</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">str</span><span class="p">:</span>
-</span><span id="CodexREPL-109"><a href="#CodexREPL-109"><span class="linenos">109</span></a>        <span class="k">if</span> <span class="n">modelID</span><span class="p">:</span>
-</span><span id="CodexREPL-110"><a href="#CodexREPL-110"><span class="linenos">110</span></a>            <span class="k">try</span><span class="p">:</span>
-</span><span id="CodexREPL-111"><a href="#CodexREPL-111"><span class="linenos">111</span></a>                <span class="n">ref</span> <span class="o">=</span> <span class="n">modelID</span><span class="o">-</span><span class="mi">1</span>
-</span><span id="CodexREPL-112"><a href="#CodexREPL-112"><span class="linenos">112</span></a>                <span class="n">model</span> <span class="o">=</span> <span class="nb">list</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">_client</span><span class="o">.</span><span class="n">models</span><span class="o">.</span><span class="n">keys</span><span class="p">())[</span><span class="n">ref</span><span class="p">]</span>
-</span><span id="CodexREPL-113"><a href="#CodexREPL-113"><span class="linenos">113</span></a>                <span class="bp">self</span><span class="o">.</span><span class="n">_client</span><span class="o">.</span><span class="n">model</span> <span class="o">=</span> <span class="n">model</span>
-</span><span id="CodexREPL-114"><a href="#CodexREPL-114"><span class="linenos">114</span></a>            <span class="k">except</span><span class="p">:</span>
-</span><span id="CodexREPL-115"><a href="#CodexREPL-115"><span class="linenos">115</span></a>                <span class="n">click</span><span class="o">.</span><span class="n">secho</span><span class="p">(</span><span class="s1">&#39;Invalid model ID = </span><span class="si">%s</span><span class="s1">&#39;</span> <span class="o">%</span> <span class="n">modelID</span><span class="p">,</span> <span class="n">bg</span> <span class="o">=</span> <span class="s1">&#39;red&#39;</span><span class="p">,</span> <span class="n">fg</span> <span class="o">=</span> <span class="s1">&#39;white&#39;</span><span class="p">)</span>
-</span><span id="CodexREPL-116"><a href="#CodexREPL-116"><span class="linenos">116</span></a>        <span class="n">click</span><span class="o">.</span><span class="n">secho</span><span class="p">(</span><span class="s1">&#39;Active model: </span><span class="si">%s</span><span class="se">\n</span><span class="s1">&#39;</span> <span class="o">%</span> <span class="bp">self</span><span class="o">.</span><span class="n">_client</span><span class="o">.</span><span class="n">model</span><span class="p">,</span> <span class="n">fg</span> <span class="o">=</span> <span class="s1">&#39;green&#39;</span><span class="p">,</span> <span class="n">bold</span> <span class="o">=</span> <span class="kc">True</span><span class="p">)</span>
-</span><span id="CodexREPL-117"><a href="#CodexREPL-117"><span class="linenos">117</span></a>        <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_client</span><span class="o">.</span><span class="n">model</span>
-</span><span id="CodexREPL-118"><a href="#CodexREPL-118"><span class="linenos">118</span></a>
-</span><span id="CodexREPL-119"><a href="#CodexREPL-119"><span class="linenos">119</span></a>
-</span><span id="CodexREPL-120"><a href="#CodexREPL-120"><span class="linenos">120</span></a>
-</span><span id="CodexREPL-121"><a href="#CodexREPL-121"><span class="linenos">121</span></a>    <span class="k">def</span> <span class="nf">_displayModels</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">list</span><span class="p">:</span>
-</span><span id="CodexREPL-122"><a href="#CodexREPL-122"><span class="linenos">122</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
-</span><span id="CodexREPL-123"><a href="#CodexREPL-123"><span class="linenos">123</span></a><span class="sd">        Display the list of models supported by the API.</span>
-</span><span id="CodexREPL-124"><a href="#CodexREPL-124"><span class="linenos">124</span></a>
-</span><span id="CodexREPL-125"><a href="#CodexREPL-125"><span class="linenos">125</span></a><span class="sd">        Returns</span>
-</span><span id="CodexREPL-126"><a href="#CodexREPL-126"><span class="linenos">126</span></a><span class="sd">        =======</span>
-</span><span id="CodexREPL-127"><a href="#CodexREPL-127"><span class="linenos">127</span></a><span class="sd">        A list of strings, each corresponding to a model name.</span>
-</span><span id="CodexREPL-128"><a href="#CodexREPL-128"><span class="linenos">128</span></a><span class="sd">        &quot;&quot;&quot;</span>
-</span><span id="CodexREPL-129"><a href="#CodexREPL-129"><span class="linenos">129</span></a>        <span class="n">_activeModel</span><span class="p">()</span>
-</span><span id="CodexREPL-130"><a href="#CodexREPL-130"><span class="linenos">130</span></a>        <span class="nb">print</span><span class="p">(</span><span class="s1">&#39;Available models:</span><span class="se">\n</span><span class="s1">&#39;</span><span class="p">)</span>
-</span><span id="CodexREPL-131"><a href="#CodexREPL-131"><span class="linenos">131</span></a>        <span class="n">n</span> <span class="o">=</span> <span class="mi">1</span>
-</span><span id="CodexREPL-132"><a href="#CodexREPL-132"><span class="linenos">132</span></a>        <span class="k">for</span> <span class="n">model</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">_client</span><span class="o">.</span><span class="n">models</span><span class="o">.</span><span class="n">keys</span><span class="p">():</span>
-</span><span id="CodexREPL-133"><a href="#CodexREPL-133"><span class="linenos">133</span></a>            <span class="nb">print</span><span class="p">(</span><span class="s1">&#39;</span><span class="si">%2d</span><span class="s1"> - </span><span class="si">%s</span><span class="s1">&#39;</span> <span class="o">%</span> <span class="p">(</span><span class="n">n</span><span class="p">,</span> <span class="n">model</span><span class="p">))</span>
-</span><span id="CodexREPL-134"><a href="#CodexREPL-134"><span class="linenos">134</span></a>            <span class="n">n</span> <span class="o">+=</span> <span class="mi">1</span>
-</span><span id="CodexREPL-135"><a href="#CodexREPL-135"><span class="linenos">135</span></a>        <span class="nb">print</span><span class="p">()</span>
-</span><span id="CodexREPL-136"><a href="#CodexREPL-136"><span class="linenos">136</span></a>
-</span><span id="CodexREPL-137"><a href="#CodexREPL-137"><span class="linenos">137</span></a>        <span class="k">return</span> <span class="nb">list</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">_client</span><span class="o">.</span><span class="n">models</span><span class="o">.</span><span class="n">keys</span><span class="p">())</span>
-</span><span id="CodexREPL-138"><a href="#CodexREPL-138"><span class="linenos">138</span></a>
-</span><span id="CodexREPL-139"><a href="#CodexREPL-139"><span class="linenos">139</span></a>
-</span><span id="CodexREPL-140"><a href="#CodexREPL-140"><span class="linenos">140</span></a>    <span class="k">def</span> <span class="nf">editingMode</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">session</span><span class="p">:</span> <span class="n">PromptSession</span><span class="p">,</span> <span class="n">mode</span> <span class="o">=</span> <span class="kc">None</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">PromptSession</span><span class="p">:</span>
-</span><span id="CodexREPL-141"><a href="#CodexREPL-141"><span class="linenos">141</span></a>        <span class="k">if</span> <span class="n">mode</span><span class="p">:</span>
-</span><span id="CodexREPL-142"><a href="#CodexREPL-142"><span class="linenos">142</span></a>            <span class="n">mode</span> <span class="o">=</span> <span class="n">mode</span><span class="o">.</span><span class="n">lower</span><span class="p">()</span>
-</span><span id="CodexREPL-143"><a href="#CodexREPL-143"><span class="linenos">143</span></a>            <span class="n">newEditingMode</span> <span class="o">=</span> <span class="n">EditingMode</span><span class="o">.</span><span class="n">EMACS</span> <span class="k">if</span> <span class="n">mode</span> <span class="o">==</span> <span class="s1">&#39;emacs&#39;</span> <span class="k">else</span> <span class="n">EditingMode</span><span class="o">.</span><span class="n">VI</span>
-</span><span id="CodexREPL-144"><a href="#CodexREPL-144"><span class="linenos">144</span></a>            <span class="n">session</span> <span class="o">=</span> <span class="n">PromptSession</span><span class="p">(</span><span class="n">editing_mode</span> <span class="o">=</span> <span class="n">newEditingMode</span><span class="p">)</span>
+</span><span id="CodexREPL-84"><a href="#CodexREPL-84"><span class="linenos"> 84</span></a>    <span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
+</span><span id="CodexREPL-85"><a href="#CodexREPL-85"><span class="linenos"> 85</span></a>        <span class="bp">self</span><span class="o">.</span><span class="n">_client</span> <span class="o">=</span> <span class="n">PerplexityClient</span><span class="p">(</span><span class="n">key</span> <span class="o">=</span> <span class="n">os</span><span class="o">.</span><span class="n">environ</span><span class="p">[</span><span class="s1">&#39;PERPLEXITY_API_KEY&#39;</span><span class="p">])</span>
+</span><span id="CodexREPL-86"><a href="#CodexREPL-86"><span class="linenos"> 86</span></a>        <span class="bp">self</span><span class="o">.</span><span class="n">_client</span><span class="o">.</span><span class="n">model</span> <span class="o">=</span> <span class="n">DEFAULT_MODEL_NAME</span>
+</span><span id="CodexREPL-87"><a href="#CodexREPL-87"><span class="linenos"> 87</span></a>        <span class="bp">self</span><span class="o">.</span><span class="n">_queryCodeStyle</span> <span class="o">=</span> <span class="kc">True</span>
+</span><span id="CodexREPL-88"><a href="#CodexREPL-88"><span class="linenos"> 88</span></a>        <span class="bp">self</span><span class="o">.</span><span class="n">_editingMode</span> <span class="o">=</span> <span class="n">EditingMode</span><span class="o">.</span><span class="n">VI</span>
+</span><span id="CodexREPL-89"><a href="#CodexREPL-89"><span class="linenos"> 89</span></a>
+</span><span id="CodexREPL-90"><a href="#CodexREPL-90"><span class="linenos"> 90</span></a>
+</span><span id="CodexREPL-91"><a href="#CodexREPL-91"><span class="linenos"> 91</span></a>    <span class="k">def</span> <span class="nf">core</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">userQuery</span><span class="p">:</span> <span class="nb">str</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">str</span><span class="p">:</span>
+</span><span id="CodexREPL-92"><a href="#CodexREPL-92"><span class="linenos"> 92</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
+</span><span id="CodexREPL-93"><a href="#CodexREPL-93"><span class="linenos"> 93</span></a><span class="sd">        Send a user query to the model for processing.</span>
+</span><span id="CodexREPL-94"><a href="#CodexREPL-94"><span class="linenos"> 94</span></a>
+</span><span id="CodexREPL-95"><a href="#CodexREPL-95"><span class="linenos"> 95</span></a><span class="sd">        Arguments</span>
+</span><span id="CodexREPL-96"><a href="#CodexREPL-96"><span class="linenos"> 96</span></a><span class="sd">        ---------</span>
+</span><span id="CodexREPL-97"><a href="#CodexREPL-97"><span class="linenos"> 97</span></a><span class="sd">            userQuery</span>
+</span><span id="CodexREPL-98"><a href="#CodexREPL-98"><span class="linenos"> 98</span></a><span class="sd">        A string with the user query, most often a programming question.</span>
+</span><span id="CodexREPL-99"><a href="#CodexREPL-99"><span class="linenos"> 99</span></a>
+</span><span id="CodexREPL-100"><a href="#CodexREPL-100"><span class="linenos">100</span></a><span class="sd">        Returns</span>
+</span><span id="CodexREPL-101"><a href="#CodexREPL-101"><span class="linenos">101</span></a><span class="sd">        -------</span>
+</span><span id="CodexREPL-102"><a href="#CodexREPL-102"><span class="linenos">102</span></a><span class="sd">        The result of the query, or `None` if the query was empty.</span>
+</span><span id="CodexREPL-103"><a href="#CodexREPL-103"><span class="linenos">103</span></a><span class="sd">        &quot;&quot;&quot;</span>
+</span><span id="CodexREPL-104"><a href="#CodexREPL-104"><span class="linenos">104</span></a>        <span class="n">result</span> <span class="o">=</span> <span class="kc">None</span>
+</span><span id="CodexREPL-105"><a href="#CodexREPL-105"><span class="linenos">105</span></a>        <span class="n">userQuery</span> <span class="o">=</span> <span class="n">userQuery</span><span class="o">.</span><span class="n">strip</span><span class="p">()</span>
+</span><span id="CodexREPL-106"><a href="#CodexREPL-106"><span class="linenos">106</span></a>        <span class="k">if</span> <span class="n">userQuery</span><span class="p">:</span>
+</span><span id="CodexREPL-107"><a href="#CodexREPL-107"><span class="linenos">107</span></a>            <span class="k">if</span> <span class="ow">not</span> <span class="bp">self</span><span class="o">.</span><span class="n">_client</span><span class="p">:</span>
+</span><span id="CodexREPL-108"><a href="#CodexREPL-108"><span class="linenos">108</span></a>                <span class="bp">self</span><span class="o">.</span><span class="n">_client</span> <span class="o">=</span> <span class="n">PerplexityClient</span><span class="p">(</span><span class="n">key</span> <span class="o">=</span> <span class="n">os</span><span class="o">.</span><span class="n">environ</span><span class="p">[</span><span class="s1">&#39;PERPLEXITY_API_KEY&#39;</span><span class="p">])</span>
+</span><span id="CodexREPL-109"><a href="#CodexREPL-109"><span class="linenos">109</span></a>                <span class="bp">self</span><span class="o">.</span><span class="n">_client</span><span class="o">.</span><span class="n">model</span> <span class="o">=</span> <span class="n">DEFAULT_MODEL_NAME</span>
+</span><span id="CodexREPL-110"><a href="#CodexREPL-110"><span class="linenos">110</span></a>            <span class="n">result</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_client</span><span class="o">.</span><span class="n">query</span><span class="p">(</span><span class="n">userQuery</span><span class="p">)</span>
+</span><span id="CodexREPL-111"><a href="#CodexREPL-111"><span class="linenos">111</span></a>
+</span><span id="CodexREPL-112"><a href="#CodexREPL-112"><span class="linenos">112</span></a>        <span class="k">return</span> <span class="n">result</span>
+</span><span id="CodexREPL-113"><a href="#CodexREPL-113"><span class="linenos">113</span></a>
+</span><span id="CodexREPL-114"><a href="#CodexREPL-114"><span class="linenos">114</span></a>
+</span><span id="CodexREPL-115"><a href="#CodexREPL-115"><span class="linenos">115</span></a>    <span class="k">def</span> <span class="nf">activeModel</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">modelID</span><span class="p">:</span> <span class="nb">int</span> <span class="o">=</span> <span class="mi">0</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">str</span><span class="p">:</span>
+</span><span id="CodexREPL-116"><a href="#CodexREPL-116"><span class="linenos">116</span></a>        <span class="k">if</span> <span class="n">modelID</span><span class="p">:</span>
+</span><span id="CodexREPL-117"><a href="#CodexREPL-117"><span class="linenos">117</span></a>            <span class="k">try</span><span class="p">:</span>
+</span><span id="CodexREPL-118"><a href="#CodexREPL-118"><span class="linenos">118</span></a>                <span class="n">ref</span> <span class="o">=</span> <span class="n">modelID</span><span class="o">-</span><span class="mi">1</span>
+</span><span id="CodexREPL-119"><a href="#CodexREPL-119"><span class="linenos">119</span></a>                <span class="n">model</span> <span class="o">=</span> <span class="nb">list</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">_client</span><span class="o">.</span><span class="n">models</span><span class="o">.</span><span class="n">keys</span><span class="p">())[</span><span class="n">ref</span><span class="p">]</span>
+</span><span id="CodexREPL-120"><a href="#CodexREPL-120"><span class="linenos">120</span></a>                <span class="bp">self</span><span class="o">.</span><span class="n">_client</span><span class="o">.</span><span class="n">model</span> <span class="o">=</span> <span class="n">model</span>
+</span><span id="CodexREPL-121"><a href="#CodexREPL-121"><span class="linenos">121</span></a>            <span class="k">except</span><span class="p">:</span>
+</span><span id="CodexREPL-122"><a href="#CodexREPL-122"><span class="linenos">122</span></a>                <span class="n">click</span><span class="o">.</span><span class="n">secho</span><span class="p">(</span><span class="s1">&#39;Invalid model ID = </span><span class="si">%s</span><span class="s1">&#39;</span> <span class="o">%</span> <span class="n">modelID</span><span class="p">,</span> <span class="n">bg</span> <span class="o">=</span> <span class="s1">&#39;red&#39;</span><span class="p">,</span> <span class="n">fg</span> <span class="o">=</span> <span class="s1">&#39;white&#39;</span><span class="p">)</span>
+</span><span id="CodexREPL-123"><a href="#CodexREPL-123"><span class="linenos">123</span></a>        <span class="n">click</span><span class="o">.</span><span class="n">secho</span><span class="p">(</span><span class="s1">&#39;Active model: </span><span class="si">%s</span><span class="se">\n</span><span class="s1">&#39;</span> <span class="o">%</span> <span class="bp">self</span><span class="o">.</span><span class="n">_client</span><span class="o">.</span><span class="n">model</span><span class="p">,</span> <span class="n">fg</span> <span class="o">=</span> <span class="s1">&#39;green&#39;</span><span class="p">,</span> <span class="n">bold</span> <span class="o">=</span> <span class="kc">True</span><span class="p">)</span>
+</span><span id="CodexREPL-124"><a href="#CodexREPL-124"><span class="linenos">124</span></a>        <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_client</span><span class="o">.</span><span class="n">model</span>
+</span><span id="CodexREPL-125"><a href="#CodexREPL-125"><span class="linenos">125</span></a>
+</span><span id="CodexREPL-126"><a href="#CodexREPL-126"><span class="linenos">126</span></a>
+</span><span id="CodexREPL-127"><a href="#CodexREPL-127"><span class="linenos">127</span></a>
+</span><span id="CodexREPL-128"><a href="#CodexREPL-128"><span class="linenos">128</span></a>    <span class="k">def</span> <span class="nf">displayModels</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">list</span><span class="p">:</span>
+</span><span id="CodexREPL-129"><a href="#CodexREPL-129"><span class="linenos">129</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
+</span><span id="CodexREPL-130"><a href="#CodexREPL-130"><span class="linenos">130</span></a><span class="sd">        Display the list of models supported by the API.</span>
+</span><span id="CodexREPL-131"><a href="#CodexREPL-131"><span class="linenos">131</span></a>
+</span><span id="CodexREPL-132"><a href="#CodexREPL-132"><span class="linenos">132</span></a><span class="sd">        Returns</span>
+</span><span id="CodexREPL-133"><a href="#CodexREPL-133"><span class="linenos">133</span></a><span class="sd">        =======</span>
+</span><span id="CodexREPL-134"><a href="#CodexREPL-134"><span class="linenos">134</span></a><span class="sd">        A list of strings, each corresponding to a model name.</span>
+</span><span id="CodexREPL-135"><a href="#CodexREPL-135"><span class="linenos">135</span></a><span class="sd">        &quot;&quot;&quot;</span>
+</span><span id="CodexREPL-136"><a href="#CodexREPL-136"><span class="linenos">136</span></a>        <span class="bp">self</span><span class="o">.</span><span class="n">activeModel</span><span class="p">()</span>
+</span><span id="CodexREPL-137"><a href="#CodexREPL-137"><span class="linenos">137</span></a>        <span class="nb">print</span><span class="p">(</span><span class="s1">&#39;Available models:</span><span class="se">\n</span><span class="s1">&#39;</span><span class="p">)</span>
+</span><span id="CodexREPL-138"><a href="#CodexREPL-138"><span class="linenos">138</span></a>        <span class="n">n</span> <span class="o">=</span> <span class="mi">1</span>
+</span><span id="CodexREPL-139"><a href="#CodexREPL-139"><span class="linenos">139</span></a>        <span class="k">for</span> <span class="n">model</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">_client</span><span class="o">.</span><span class="n">models</span><span class="o">.</span><span class="n">keys</span><span class="p">():</span>
+</span><span id="CodexREPL-140"><a href="#CodexREPL-140"><span class="linenos">140</span></a>            <span class="nb">print</span><span class="p">(</span><span class="s1">&#39;</span><span class="si">%2d</span><span class="s1"> - </span><span class="si">%s</span><span class="s1">&#39;</span> <span class="o">%</span> <span class="p">(</span><span class="n">n</span><span class="p">,</span> <span class="n">model</span><span class="p">))</span>
+</span><span id="CodexREPL-141"><a href="#CodexREPL-141"><span class="linenos">141</span></a>            <span class="n">n</span> <span class="o">+=</span> <span class="mi">1</span>
+</span><span id="CodexREPL-142"><a href="#CodexREPL-142"><span class="linenos">142</span></a>        <span class="nb">print</span><span class="p">()</span>
+</span><span id="CodexREPL-143"><a href="#CodexREPL-143"><span class="linenos">143</span></a>
+</span><span id="CodexREPL-144"><a href="#CodexREPL-144"><span class="linenos">144</span></a>        <span class="k">return</span> <span class="nb">list</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">_client</span><span class="o">.</span><span class="n">models</span><span class="o">.</span><span class="n">keys</span><span class="p">())</span>
 </span><span id="CodexREPL-145"><a href="#CodexREPL-145"><span class="linenos">145</span></a>
-</span><span id="CodexREPL-146"><a href="#CodexREPL-146"><span class="linenos">146</span></a>        <span class="n">editingMode</span> <span class="o">=</span> <span class="nb">str</span><span class="p">(</span><span class="n">session</span><span class="o">.</span><span class="n">editing_mode</span><span class="p">)</span><span class="o">.</span><span class="n">replace</span><span class="p">(</span><span class="s1">&#39;EditingMode.&#39;</span><span class="p">,</span> <span class="s1">&#39;&#39;</span><span class="p">)</span><span class="o">.</span><span class="n">lower</span><span class="p">()</span>
-</span><span id="CodexREPL-147"><a href="#CodexREPL-147"><span class="linenos">147</span></a>        <span class="n">click</span><span class="o">.</span><span class="n">secho</span><span class="p">(</span><span class="s1">&#39;Editing mode = </span><span class="si">%s</span><span class="s1">&#39;</span> <span class="o">%</span> <span class="n">editingMode</span><span class="p">,</span> <span class="n">fg</span> <span class="o">=</span> <span class="s1">&#39;bright_blue&#39;</span><span class="p">)</span>
-</span><span id="CodexREPL-148"><a href="#CodexREPL-148"><span class="linenos">148</span></a>
-</span><span id="CodexREPL-149"><a href="#CodexREPL-149"><span class="linenos">149</span></a>        <span class="k">return</span> <span class="n">session</span>
+</span><span id="CodexREPL-146"><a href="#CodexREPL-146"><span class="linenos">146</span></a>
+</span><span id="CodexREPL-147"><a href="#CodexREPL-147"><span class="linenos">147</span></a>    <span class="k">def</span> <span class="nf">editingMode</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">session</span><span class="p">:</span> <span class="n">PromptSession</span><span class="p">,</span> <span class="n">mode</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="kc">None</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">PromptSession</span><span class="p">:</span>
+</span><span id="CodexREPL-148"><a href="#CodexREPL-148"><span class="linenos">148</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
+</span><span id="CodexREPL-149"><a href="#CodexREPL-149"><span class="linenos">149</span></a><span class="sd">        Sets the editing mode to `vi` or `emacs`.</span>
 </span><span id="CodexREPL-150"><a href="#CodexREPL-150"><span class="linenos">150</span></a>
-</span><span id="CodexREPL-151"><a href="#CodexREPL-151"><span class="linenos">151</span></a>    <span class="k">def</span> <span class="nf">_queryStyle</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">newStyle</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="kc">None</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">bool</span><span class="p">:</span>
-</span><span id="CodexREPL-152"><a href="#CodexREPL-152"><span class="linenos">152</span></a>        <span class="k">if</span> <span class="n">newStyle</span><span class="p">:</span>
-</span><span id="CodexREPL-153"><a href="#CodexREPL-153"><span class="linenos">153</span></a>            <span class="bp">self</span><span class="o">.</span><span class="n">_queryCodeStyle</span> <span class="o">=</span> <span class="n">newStyle</span> <span class="o">!=</span> <span class="s1">&#39;human&#39;</span>
-</span><span id="CodexREPL-154"><a href="#CodexREPL-154"><span class="linenos">154</span></a>        <span class="n">click</span><span class="o">.</span><span class="n">secho</span><span class="p">(</span><span class="s1">&#39;Coding query style = </span><span class="si">%s</span><span class="s1">&#39;</span> <span class="o">%</span> <span class="bp">self</span><span class="o">.</span><span class="n">_queryCodeStyle</span><span class="p">,</span> <span class="n">fg</span> <span class="o">=</span> <span class="s1">&#39;bright_blue&#39;</span><span class="p">)</span>
-</span><span id="CodexREPL-155"><a href="#CodexREPL-155"><span class="linenos">155</span></a>        <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_queryCodeStyle</span>
-</span><span id="CodexREPL-156"><a href="#CodexREPL-156"><span class="linenos">156</span></a>
-</span><span id="CodexREPL-157"><a href="#CodexREPL-157"><span class="linenos">157</span></a>    <span class="k">def</span> <span class="nf">_makeQuery</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">userQuery</span><span class="p">:</span> <span class="nb">str</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">str</span><span class="p">:</span>
-</span><span id="CodexREPL-158"><a href="#CodexREPL-158"><span class="linenos">158</span></a>        <span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">_queryCodeStyle</span><span class="p">:</span>
-</span><span id="CodexREPL-159"><a href="#CodexREPL-159"><span class="linenos">159</span></a>            <span class="n">userQuery</span> <span class="o">=</span> <span class="n">QUERY_DETAILED</span><span class="o">+</span><span class="n">userQuery</span>
-</span><span id="CodexREPL-160"><a href="#CodexREPL-160"><span class="linenos">160</span></a>
-</span><span id="CodexREPL-161"><a href="#CodexREPL-161"><span class="linenos">161</span></a>        <span class="k">return</span> <span class="n">codex</span><span class="o">.</span><span class="n">core</span><span class="p">(</span><span class="n">userQuery</span><span class="p">)</span>
-</span><span id="CodexREPL-162"><a href="#CodexREPL-162"><span class="linenos">162</span></a>
-</span><span id="CodexREPL-163"><a href="#CodexREPL-163"><span class="linenos">163</span></a>
-</span><span id="CodexREPL-164"><a href="#CodexREPL-164"><span class="linenos">164</span></a>    <span class="k">def</span> <span class="nf">_saveConfigTo</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">config</span><span class="p">:</span> <span class="nb">dict</span><span class="p">,</span> <span class="n">fileName</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="n">CONFIG_FILE_NAME</span><span class="p">,</span> <span class="n">pathName</span> <span class="o">=</span> <span class="n">CONFIG_PATH</span><span class="p">):</span>
-</span><span id="CodexREPL-165"><a href="#CodexREPL-165"><span class="linenos">165</span></a>        <span class="k">if</span> <span class="ow">not</span> <span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">exists</span><span class="p">(</span><span class="n">pathName</span><span class="p">):</span>
-</span><span id="CodexREPL-166"><a href="#CodexREPL-166"><span class="linenos">166</span></a>            <span class="n">os</span><span class="o">.</span><span class="n">makedirs</span><span class="p">(</span><span class="n">pathName</span><span class="p">)</span>
-</span><span id="CodexREPL-167"><a href="#CodexREPL-167"><span class="linenos">167</span></a>        <span class="k">with</span> <span class="nb">open</span><span class="p">(</span><span class="n">fileName</span><span class="p">,</span> <span class="s1">&#39;w&#39;</span><span class="p">)</span> <span class="k">as</span> <span class="n">outputFile</span><span class="p">:</span>
-</span><span id="CodexREPL-168"><a href="#CodexREPL-168"><span class="linenos">168</span></a>            <span class="n">yaml</span><span class="o">.</span><span class="n">dump</span><span class="p">(</span><span class="n">config</span><span class="p">,</span> <span class="n">outputFile</span><span class="p">)</span>
-</span><span id="CodexREPL-169"><a href="#CodexREPL-169"><span class="linenos">169</span></a>
-</span><span id="CodexREPL-170"><a href="#CodexREPL-170"><span class="linenos">170</span></a>
-</span><span id="CodexREPL-171"><a href="#CodexREPL-171"><span class="linenos">171</span></a>    <span class="k">def</span> <span class="nf">_loadConfigFrom</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">fileName</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="n">CONFIG_FILE_NAME</span><span class="p">,</span> <span class="n">pathName</span> <span class="o">=</span> <span class="n">CONFIG_PATH</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">dict</span><span class="p">:</span>
-</span><span id="CodexREPL-172"><a href="#CodexREPL-172"><span class="linenos">172</span></a>        <span class="k">if</span> <span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">exists</span><span class="p">(</span><span class="n">fileName</span><span class="p">):</span>
-</span><span id="CodexREPL-173"><a href="#CodexREPL-173"><span class="linenos">173</span></a>            <span class="k">with</span> <span class="nb">open</span><span class="p">(</span><span class="n">fileName</span><span class="p">,</span> <span class="s1">&#39;r&#39;</span><span class="p">)</span> <span class="k">as</span> <span class="n">inputFile</span><span class="p">:</span>
-</span><span id="CodexREPL-174"><a href="#CodexREPL-174"><span class="linenos">174</span></a>                <span class="n">config</span> <span class="o">=</span> <span class="n">yaml</span><span class="o">.</span><span class="n">safe_load</span><span class="p">(</span><span class="n">inputFile</span><span class="p">)</span>
-</span><span id="CodexREPL-175"><a href="#CodexREPL-175"><span class="linenos">175</span></a>        <span class="k">else</span><span class="p">:</span>
-</span><span id="CodexREPL-176"><a href="#CodexREPL-176"><span class="linenos">176</span></a>            <span class="c1"># TODO:  turn this into a self-contained object; maybe a named</span>
-</span><span id="CodexREPL-177"><a href="#CodexREPL-177"><span class="linenos">177</span></a>            <span class="c1">#        tuple?</span>
-</span><span id="CodexREPL-178"><a href="#CodexREPL-178"><span class="linenos">178</span></a>            <span class="n">config</span> <span class="o">=</span> <span class="p">{</span>
-</span><span id="CodexREPL-179"><a href="#CodexREPL-179"><span class="linenos">179</span></a>                <span class="s1">&#39;activeModel&#39;</span><span class="p">:</span> <span class="n">DEFAULT_MODEL_NAME</span><span class="p">,</span>
-</span><span id="CodexREPL-180"><a href="#CodexREPL-180"><span class="linenos">180</span></a>                <span class="s1">&#39;editingMode&#39;</span><span class="p">:</span> <span class="s1">&#39;vi&#39;</span><span class="p">,</span>
-</span><span id="CodexREPL-181"><a href="#CodexREPL-181"><span class="linenos">181</span></a>                <span class="s1">&#39;queryCodeStyle&#39;</span><span class="p">:</span> <span class="n">_queryCodeStyle</span><span class="p">,</span>
-</span><span id="CodexREPL-182"><a href="#CodexREPL-182"><span class="linenos">182</span></a>            <span class="p">}</span>
-</span><span id="CodexREPL-183"><a href="#CodexREPL-183"><span class="linenos">183</span></a>            <span class="n">_saveConfigTo</span><span class="p">(</span><span class="n">config</span><span class="p">,</span> <span class="n">fileName</span><span class="p">,</span> <span class="n">pathName</span><span class="p">)</span>
-</span><span id="CodexREPL-184"><a href="#CodexREPL-184"><span class="linenos">184</span></a>        <span class="k">return</span> <span class="n">config</span>
+</span><span id="CodexREPL-151"><a href="#CodexREPL-151"><span class="linenos">151</span></a><span class="sd">        Arguments</span>
+</span><span id="CodexREPL-152"><a href="#CodexREPL-152"><span class="linenos">152</span></a><span class="sd">        =========</span>
+</span><span id="CodexREPL-153"><a href="#CodexREPL-153"><span class="linenos">153</span></a><span class="sd">            session</span>
+</span><span id="CodexREPL-154"><a href="#CodexREPL-154"><span class="linenos">154</span></a><span class="sd">        An instance of `PromptSession` from the current Click hosting.</span>
+</span><span id="CodexREPL-155"><a href="#CodexREPL-155"><span class="linenos">155</span></a>
+</span><span id="CodexREPL-156"><a href="#CodexREPL-156"><span class="linenos">156</span></a><span class="sd">            mode</span>
+</span><span id="CodexREPL-157"><a href="#CodexREPL-157"><span class="linenos">157</span></a><span class="sd">        A string with the values of &#39;vi&#39; or &#39;emacs&#39;; any other value is</span>
+</span><span id="CodexREPL-158"><a href="#CodexREPL-158"><span class="linenos">158</span></a><span class="sd">        overriden with `vi`.</span>
+</span><span id="CodexREPL-159"><a href="#CodexREPL-159"><span class="linenos">159</span></a>
+</span><span id="CodexREPL-160"><a href="#CodexREPL-160"><span class="linenos">160</span></a><span class="sd">        Returns</span>
+</span><span id="CodexREPL-161"><a href="#CodexREPL-161"><span class="linenos">161</span></a><span class="sd">        =======</span>
+</span><span id="CodexREPL-162"><a href="#CodexREPL-162"><span class="linenos">162</span></a><span class="sd">        An updated PromptSession instance that with the value of `mode`.</span>
+</span><span id="CodexREPL-163"><a href="#CodexREPL-163"><span class="linenos">163</span></a><span class="sd">        &quot;&quot;&quot;</span>
+</span><span id="CodexREPL-164"><a href="#CodexREPL-164"><span class="linenos">164</span></a>        <span class="k">if</span> <span class="n">mode</span><span class="p">:</span>
+</span><span id="CodexREPL-165"><a href="#CodexREPL-165"><span class="linenos">165</span></a>            <span class="n">mode</span> <span class="o">=</span> <span class="n">mode</span><span class="o">.</span><span class="n">lower</span><span class="p">()</span>
+</span><span id="CodexREPL-166"><a href="#CodexREPL-166"><span class="linenos">166</span></a>            <span class="bp">self</span><span class="o">.</span><span class="n">_editingMode</span> <span class="o">=</span> <span class="n">EditingMode</span><span class="o">.</span><span class="n">EMACS</span> <span class="k">if</span> <span class="n">mode</span> <span class="o">==</span> <span class="s1">&#39;emacs&#39;</span> <span class="k">else</span> <span class="n">EditingMode</span><span class="o">.</span><span class="n">VI</span>
+</span><span id="CodexREPL-167"><a href="#CodexREPL-167"><span class="linenos">167</span></a>            <span class="n">session</span> <span class="o">=</span> <span class="n">PromptSession</span><span class="p">(</span><span class="n">editing_mode</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_editingMode</span><span class="p">)</span>
+</span><span id="CodexREPL-168"><a href="#CodexREPL-168"><span class="linenos">168</span></a>
+</span><span id="CodexREPL-169"><a href="#CodexREPL-169"><span class="linenos">169</span></a>        <span class="n">editingMode</span> <span class="o">=</span> <span class="nb">str</span><span class="p">(</span><span class="n">session</span><span class="o">.</span><span class="n">editing_mode</span><span class="p">)</span><span class="o">.</span><span class="n">replace</span><span class="p">(</span><span class="s1">&#39;EditingMode.&#39;</span><span class="p">,</span> <span class="s1">&#39;&#39;</span><span class="p">)</span><span class="o">.</span><span class="n">lower</span><span class="p">()</span>
+</span><span id="CodexREPL-170"><a href="#CodexREPL-170"><span class="linenos">170</span></a>        <span class="n">click</span><span class="o">.</span><span class="n">secho</span><span class="p">(</span><span class="s1">&#39;Editing mode = </span><span class="si">%s</span><span class="s1">&#39;</span> <span class="o">%</span> <span class="n">editingMode</span><span class="p">,</span> <span class="n">fg</span> <span class="o">=</span> <span class="s1">&#39;bright_blue&#39;</span><span class="p">)</span>
+</span><span id="CodexREPL-171"><a href="#CodexREPL-171"><span class="linenos">171</span></a>
+</span><span id="CodexREPL-172"><a href="#CodexREPL-172"><span class="linenos">172</span></a>        <span class="k">return</span> <span class="n">session</span>
+</span><span id="CodexREPL-173"><a href="#CodexREPL-173"><span class="linenos">173</span></a>
+</span><span id="CodexREPL-174"><a href="#CodexREPL-174"><span class="linenos">174</span></a>
+</span><span id="CodexREPL-175"><a href="#CodexREPL-175"><span class="linenos">175</span></a>    <span class="nd">@property</span>
+</span><span id="CodexREPL-176"><a href="#CodexREPL-176"><span class="linenos">176</span></a>    <span class="k">def</span> <span class="nf">queryCodeStyle</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">bool</span><span class="p">:</span>
+</span><span id="CodexREPL-177"><a href="#CodexREPL-177"><span class="linenos">177</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
+</span><span id="CodexREPL-178"><a href="#CodexREPL-178"><span class="linenos">178</span></a><span class="sd">        Return `True` if the current style is code, `False` for human.  The object uses</span>
+</span><span id="CodexREPL-179"><a href="#CodexREPL-179"><span class="linenos">179</span></a><span class="sd">        this Boolean value to determine the type of query to execute.  Future</span>
+</span><span id="CodexREPL-180"><a href="#CodexREPL-180"><span class="linenos">180</span></a><span class="sd">        versions may use the words `code` or `human`, or perhaps an enum with</span>
+</span><span id="CodexREPL-181"><a href="#CodexREPL-181"><span class="linenos">181</span></a><span class="sd">        those values.</span>
+</span><span id="CodexREPL-182"><a href="#CodexREPL-182"><span class="linenos">182</span></a><span class="sd">        &quot;&quot;&quot;</span>
+</span><span id="CodexREPL-183"><a href="#CodexREPL-183"><span class="linenos">183</span></a>        <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_queryCodeStyle</span>
+</span><span id="CodexREPL-184"><a href="#CodexREPL-184"><span class="linenos">184</span></a>
 </span><span id="CodexREPL-185"><a href="#CodexREPL-185"><span class="linenos">185</span></a>
-</span><span id="CodexREPL-186"><a href="#CodexREPL-186"><span class="linenos">186</span></a>
-</span><span id="CodexREPL-187"><a href="#CodexREPL-187"><span class="linenos">187</span></a>    <span class="k">def</span> <span class="nf">_displayConfigInfo</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
-</span><span id="CodexREPL-188"><a href="#CodexREPL-188"><span class="linenos">188</span></a>        <span class="n">click</span><span class="o">.</span><span class="n">secho</span><span class="p">(</span><span class="s1">&#39;Config file: </span><span class="si">%s</span><span class="s1">&#39;</span> <span class="o">%</span> <span class="n">CONFIG_FILE_NAME</span><span class="p">)</span>
-</span><span id="CodexREPL-189"><a href="#CodexREPL-189"><span class="linenos">189</span></a>        <span class="n">click</span><span class="o">.</span><span class="n">secho</span><span class="p">(</span><span class="nb">str</span><span class="p">(</span><span class="n">_loadConfigFrom</span><span class="p">())</span><span class="o">+</span><span class="s1">&#39;</span><span class="se">\n</span><span class="s1">&#39;</span><span class="p">)</span>
-</span><span id="CodexREPL-190"><a href="#CodexREPL-190"><span class="linenos">190</span></a>
-</span><span id="CodexREPL-191"><a href="#CodexREPL-191"><span class="linenos">191</span></a>
-</span><span id="CodexREPL-192"><a href="#CodexREPL-192"><span class="linenos">192</span></a>    <span class="k">def</span> <span class="nf">run</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
-</span><span id="CodexREPL-193"><a href="#CodexREPL-193"><span class="linenos">193</span></a>        <span class="k">pass</span>
+</span><span id="CodexREPL-186"><a href="#CodexREPL-186"><span class="linenos">186</span></a>    <span class="nd">@queryCodeStyle</span><span class="o">.</span><span class="n">setter</span>
+</span><span id="CodexREPL-187"><a href="#CodexREPL-187"><span class="linenos">187</span></a>    <span class="k">def</span> <span class="nf">queryCodeStyle</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">newStyle</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="kc">None</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">bool</span><span class="p">:</span>
+</span><span id="CodexREPL-188"><a href="#CodexREPL-188"><span class="linenos">188</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
+</span><span id="CodexREPL-189"><a href="#CodexREPL-189"><span class="linenos">189</span></a><span class="sd">        Set the receiver query code style to `newStyle`.  Code style queries</span>
+</span><span id="CodexREPL-190"><a href="#CodexREPL-190"><span class="linenos">190</span></a><span class="sd">        generate responses that include code snippets in Python or JavaScript,</span>
+</span><span id="CodexREPL-191"><a href="#CodexREPL-191"><span class="linenos">191</span></a><span class="sd">        and URLs to references that show how to address the query topic.</span>
+</span><span id="CodexREPL-192"><a href="#CodexREPL-192"><span class="linenos">192</span></a><span class="sd">        `human` style queries produce textual, prose responses that address the</span>
+</span><span id="CodexREPL-193"><a href="#CodexREPL-193"><span class="linenos">193</span></a><span class="sd">        query topic in detail, and may or may not contain code, even if the</span>
+</span><span id="CodexREPL-194"><a href="#CodexREPL-194"><span class="linenos">194</span></a><span class="sd">        query was about a programming concept.</span>
+</span><span id="CodexREPL-195"><a href="#CodexREPL-195"><span class="linenos">195</span></a>
+</span><span id="CodexREPL-196"><a href="#CodexREPL-196"><span class="linenos">196</span></a><span class="sd">        The method will default to `code` style for any value of `newStyle` that</span>
+</span><span id="CodexREPL-197"><a href="#CodexREPL-197"><span class="linenos">197</span></a><span class="sd">        isn&#39;t `code`.</span>
+</span><span id="CodexREPL-198"><a href="#CodexREPL-198"><span class="linenos">198</span></a>
+</span><span id="CodexREPL-199"><a href="#CodexREPL-199"><span class="linenos">199</span></a><span class="sd">        Arguments</span>
+</span><span id="CodexREPL-200"><a href="#CodexREPL-200"><span class="linenos">200</span></a><span class="sd">        =========</span>
+</span><span id="CodexREPL-201"><a href="#CodexREPL-201"><span class="linenos">201</span></a><span class="sd">            `newStyle`</span>
+</span><span id="CodexREPL-202"><a href="#CodexREPL-202"><span class="linenos">202</span></a><span class="sd">        A string with either value of &#39;code&#39; or &#39;human&#39;.</span>
+</span><span id="CodexREPL-203"><a href="#CodexREPL-203"><span class="linenos">203</span></a>
+</span><span id="CodexREPL-204"><a href="#CodexREPL-204"><span class="linenos">204</span></a><span class="sd">        Returns</span>
+</span><span id="CodexREPL-205"><a href="#CodexREPL-205"><span class="linenos">205</span></a><span class="sd">        =======</span>
+</span><span id="CodexREPL-206"><a href="#CodexREPL-206"><span class="linenos">206</span></a><span class="sd">        `True` if the current style is code, `False` for human.  The object uses</span>
+</span><span id="CodexREPL-207"><a href="#CodexREPL-207"><span class="linenos">207</span></a><span class="sd">        this Boolean value to determine the type of query to execute.  Future</span>
+</span><span id="CodexREPL-208"><a href="#CodexREPL-208"><span class="linenos">208</span></a><span class="sd">        versions may use the words `code` or `human`, or perhaps an enum with</span>
+</span><span id="CodexREPL-209"><a href="#CodexREPL-209"><span class="linenos">209</span></a><span class="sd">        those values.</span>
+</span><span id="CodexREPL-210"><a href="#CodexREPL-210"><span class="linenos">210</span></a><span class="sd">        &quot;&quot;&quot;</span>
+</span><span id="CodexREPL-211"><a href="#CodexREPL-211"><span class="linenos">211</span></a>        <span class="k">if</span> <span class="n">newStyle</span><span class="p">:</span>
+</span><span id="CodexREPL-212"><a href="#CodexREPL-212"><span class="linenos">212</span></a>            <span class="bp">self</span><span class="o">.</span><span class="n">_queryCodeStyle</span> <span class="o">=</span> <span class="n">newStyle</span> <span class="o">!=</span> <span class="s1">&#39;human&#39;</span>
+</span><span id="CodexREPL-213"><a href="#CodexREPL-213"><span class="linenos">213</span></a>        <span class="n">click</span><span class="o">.</span><span class="n">secho</span><span class="p">(</span><span class="s1">&#39;Coding query style = </span><span class="si">%s</span><span class="s1">&#39;</span> <span class="o">%</span> <span class="bp">self</span><span class="o">.</span><span class="n">_queryCodeStyle</span><span class="p">,</span> <span class="n">fg</span> <span class="o">=</span> <span class="s1">&#39;bright_blue&#39;</span><span class="p">)</span>
+</span><span id="CodexREPL-214"><a href="#CodexREPL-214"><span class="linenos">214</span></a>
+</span><span id="CodexREPL-215"><a href="#CodexREPL-215"><span class="linenos">215</span></a>
+</span><span id="CodexREPL-216"><a href="#CodexREPL-216"><span class="linenos">216</span></a>    <span class="k">def</span> <span class="nf">makeQuery</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">userQuery</span><span class="p">:</span> <span class="nb">str</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">str</span><span class="p">:</span>
+</span><span id="CodexREPL-217"><a href="#CodexREPL-217"><span class="linenos">217</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
+</span><span id="CodexREPL-218"><a href="#CodexREPL-218"><span class="linenos">218</span></a><span class="sd">        Execute a query using the `PerplexityClient` and return the result in</span>
+</span><span id="CodexREPL-219"><a href="#CodexREPL-219"><span class="linenos">219</span></a><span class="sd">        a string.</span>
+</span><span id="CodexREPL-220"><a href="#CodexREPL-220"><span class="linenos">220</span></a>
+</span><span id="CodexREPL-221"><a href="#CodexREPL-221"><span class="linenos">221</span></a><span class="sd">        Arguments</span>
+</span><span id="CodexREPL-222"><a href="#CodexREPL-222"><span class="linenos">222</span></a><span class="sd">        =========</span>
+</span><span id="CodexREPL-223"><a href="#CodexREPL-223"><span class="linenos">223</span></a><span class="sd">            userQuery</span>
+</span><span id="CodexREPL-224"><a href="#CodexREPL-224"><span class="linenos">224</span></a><span class="sd">        A free from, natural language string describing the request to the AI</span>
+</span><span id="CodexREPL-225"><a href="#CodexREPL-225"><span class="linenos">225</span></a><span class="sd">        provider.</span>
+</span><span id="CodexREPL-226"><a href="#CodexREPL-226"><span class="linenos">226</span></a>
+</span><span id="CodexREPL-227"><a href="#CodexREPL-227"><span class="linenos">227</span></a><span class="sd">        Returns</span>
+</span><span id="CodexREPL-228"><a href="#CodexREPL-228"><span class="linenos">228</span></a><span class="sd">        =======</span>
+</span><span id="CodexREPL-229"><a href="#CodexREPL-229"><span class="linenos">229</span></a><span class="sd">        The response from the AI/LLM.</span>
+</span><span id="CodexREPL-230"><a href="#CodexREPL-230"><span class="linenos">230</span></a>
+</span><span id="CodexREPL-231"><a href="#CodexREPL-231"><span class="linenos">231</span></a><span class="sd">        Raises</span>
+</span><span id="CodexREPL-232"><a href="#CodexREPL-232"><span class="linenos">232</span></a><span class="sd">        ======</span>
+</span><span id="CodexREPL-233"><a href="#CodexREPL-233"><span class="linenos">233</span></a><span class="sd">        `ValueError` if `userQuery` is `None` or an empty string.</span>
+</span><span id="CodexREPL-234"><a href="#CodexREPL-234"><span class="linenos">234</span></a><span class="sd">        &quot;&quot;&quot;</span>
+</span><span id="CodexREPL-235"><a href="#CodexREPL-235"><span class="linenos">235</span></a>        <span class="k">if</span> <span class="ow">not</span> <span class="n">userQuery</span><span class="p">:</span>
+</span><span id="CodexREPL-236"><a href="#CodexREPL-236"><span class="linenos">236</span></a>            <span class="k">raise</span> <span class="ne">ValueError</span><span class="p">(</span><span class="s1">&#39;userQuery string cannot be empty&#39;</span><span class="p">)</span>
+</span><span id="CodexREPL-237"><a href="#CodexREPL-237"><span class="linenos">237</span></a>        <span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">_queryCodeStyle</span><span class="p">:</span>
+</span><span id="CodexREPL-238"><a href="#CodexREPL-238"><span class="linenos">238</span></a>            <span class="n">userQuery</span> <span class="o">=</span> <span class="n">QUERY_DETAILED</span><span class="o">+</span><span class="n">userQuery</span>
+</span><span id="CodexREPL-239"><a href="#CodexREPL-239"><span class="linenos">239</span></a>
+</span><span id="CodexREPL-240"><a href="#CodexREPL-240"><span class="linenos">240</span></a>        <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">core</span><span class="p">(</span><span class="n">userQuery</span><span class="p">)</span>
+</span><span id="CodexREPL-241"><a href="#CodexREPL-241"><span class="linenos">241</span></a>
+</span><span id="CodexREPL-242"><a href="#CodexREPL-242"><span class="linenos">242</span></a>
+</span><span id="CodexREPL-243"><a href="#CodexREPL-243"><span class="linenos">243</span></a>    <span class="k">def</span> <span class="nf">_saveConfigTo</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">config</span><span class="p">:</span> <span class="nb">dict</span><span class="p">,</span> <span class="n">fileName</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="n">CONFIG_FILE_NAME</span><span class="p">,</span> <span class="n">pathName</span> <span class="o">=</span> <span class="n">CONFIG_PATH</span><span class="p">):</span>
+</span><span id="CodexREPL-244"><a href="#CodexREPL-244"><span class="linenos">244</span></a>        <span class="k">if</span> <span class="ow">not</span> <span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">exists</span><span class="p">(</span><span class="n">pathName</span><span class="p">):</span>
+</span><span id="CodexREPL-245"><a href="#CodexREPL-245"><span class="linenos">245</span></a>            <span class="n">os</span><span class="o">.</span><span class="n">makedirs</span><span class="p">(</span><span class="n">pathName</span><span class="p">)</span>
+</span><span id="CodexREPL-246"><a href="#CodexREPL-246"><span class="linenos">246</span></a>        <span class="k">with</span> <span class="nb">open</span><span class="p">(</span><span class="n">fileName</span><span class="p">,</span> <span class="s1">&#39;w&#39;</span><span class="p">)</span> <span class="k">as</span> <span class="n">outputFile</span><span class="p">:</span>
+</span><span id="CodexREPL-247"><a href="#CodexREPL-247"><span class="linenos">247</span></a>            <span class="n">yaml</span><span class="o">.</span><span class="n">dump</span><span class="p">(</span><span class="n">config</span><span class="p">,</span> <span class="n">outputFile</span><span class="p">)</span>
+</span><span id="CodexREPL-248"><a href="#CodexREPL-248"><span class="linenos">248</span></a>
+</span><span id="CodexREPL-249"><a href="#CodexREPL-249"><span class="linenos">249</span></a>
+</span><span id="CodexREPL-250"><a href="#CodexREPL-250"><span class="linenos">250</span></a>    <span class="k">def</span> <span class="nf">_loadConfigFrom</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">fileName</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="n">CONFIG_FILE_NAME</span><span class="p">,</span> <span class="n">pathName</span> <span class="o">=</span> <span class="n">CONFIG_PATH</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">dict</span><span class="p">:</span>
+</span><span id="CodexREPL-251"><a href="#CodexREPL-251"><span class="linenos">251</span></a>        <span class="k">if</span> <span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">exists</span><span class="p">(</span><span class="n">fileName</span><span class="p">):</span>
+</span><span id="CodexREPL-252"><a href="#CodexREPL-252"><span class="linenos">252</span></a>            <span class="k">with</span> <span class="nb">open</span><span class="p">(</span><span class="n">fileName</span><span class="p">,</span> <span class="s1">&#39;r&#39;</span><span class="p">)</span> <span class="k">as</span> <span class="n">inputFile</span><span class="p">:</span>
+</span><span id="CodexREPL-253"><a href="#CodexREPL-253"><span class="linenos">253</span></a>                <span class="n">config</span> <span class="o">=</span> <span class="n">yaml</span><span class="o">.</span><span class="n">safe_load</span><span class="p">(</span><span class="n">inputFile</span><span class="p">)</span>
+</span><span id="CodexREPL-254"><a href="#CodexREPL-254"><span class="linenos">254</span></a>        <span class="k">else</span><span class="p">:</span>
+</span><span id="CodexREPL-255"><a href="#CodexREPL-255"><span class="linenos">255</span></a>            <span class="c1"># TODO:  turn this into a self-contained object; maybe a named</span>
+</span><span id="CodexREPL-256"><a href="#CodexREPL-256"><span class="linenos">256</span></a>            <span class="c1">#        tuple?</span>
+</span><span id="CodexREPL-257"><a href="#CodexREPL-257"><span class="linenos">257</span></a>            <span class="n">config</span> <span class="o">=</span> <span class="p">{</span>
+</span><span id="CodexREPL-258"><a href="#CodexREPL-258"><span class="linenos">258</span></a>                <span class="s1">&#39;activeModel&#39;</span><span class="p">:</span> <span class="n">DEFAULT_MODEL_NAME</span><span class="p">,</span>
+</span><span id="CodexREPL-259"><a href="#CodexREPL-259"><span class="linenos">259</span></a>                <span class="s1">&#39;editingMode&#39;</span><span class="p">:</span> <span class="s1">&#39;vi&#39;</span><span class="p">,</span>
+</span><span id="CodexREPL-260"><a href="#CodexREPL-260"><span class="linenos">260</span></a>                <span class="s1">&#39;queryCodeStyle&#39;</span><span class="p">:</span> <span class="n">_queryCodeStyle</span><span class="p">,</span>
+</span><span id="CodexREPL-261"><a href="#CodexREPL-261"><span class="linenos">261</span></a>            <span class="p">}</span>
+</span><span id="CodexREPL-262"><a href="#CodexREPL-262"><span class="linenos">262</span></a>            <span class="n">_saveConfigTo</span><span class="p">(</span><span class="n">config</span><span class="p">,</span> <span class="n">fileName</span><span class="p">,</span> <span class="n">pathName</span><span class="p">)</span>
+</span><span id="CodexREPL-263"><a href="#CodexREPL-263"><span class="linenos">263</span></a>        <span class="k">return</span> <span class="n">config</span>
+</span><span id="CodexREPL-264"><a href="#CodexREPL-264"><span class="linenos">264</span></a>
+</span><span id="CodexREPL-265"><a href="#CodexREPL-265"><span class="linenos">265</span></a>
+</span><span id="CodexREPL-266"><a href="#CodexREPL-266"><span class="linenos">266</span></a>    <span class="k">def</span> <span class="nf">_displayConfigInfo</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
+</span><span id="CodexREPL-267"><a href="#CodexREPL-267"><span class="linenos">267</span></a>        <span class="n">click</span><span class="o">.</span><span class="n">secho</span><span class="p">(</span><span class="s1">&#39;Config file: </span><span class="si">%s</span><span class="s1">&#39;</span> <span class="o">%</span> <span class="n">CONFIG_FILE_NAME</span><span class="p">)</span>
+</span><span id="CodexREPL-268"><a href="#CodexREPL-268"><span class="linenos">268</span></a>        <span class="n">click</span><span class="o">.</span><span class="n">secho</span><span class="p">(</span><span class="nb">str</span><span class="p">(</span><span class="n">_loadConfigFrom</span><span class="p">())</span><span class="o">+</span><span class="s1">&#39;</span><span class="se">\n</span><span class="s1">&#39;</span><span class="p">)</span>
+</span><span id="CodexREPL-269"><a href="#CodexREPL-269"><span class="linenos">269</span></a>
+</span><span id="CodexREPL-270"><a href="#CodexREPL-270"><span class="linenos">270</span></a>
+</span><span id="CodexREPL-271"><a href="#CodexREPL-271"><span class="linenos">271</span></a>    <span class="k">def</span> <span class="nf">run</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
+</span><span id="CodexREPL-272"><a href="#CodexREPL-272"><span class="linenos">272</span></a>        <span class="k">pass</span>
 </span></pre></div>
 
 
@@ -713,27 +879,28 @@ <h1 class="modulename">
 
     </div>
     <a class="headerlink" href="#CodexREPL.core"></a>
-            <div class="pdoc-code codehilite"><pre><span></span><span id="CodexREPL.core-85"><a href="#CodexREPL.core-85"><span class="linenos"> 85</span></a>    <span class="k">def</span> <span class="nf">core</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">userQuery</span><span class="p">:</span> <span class="nb">str</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">str</span><span class="p">:</span>
-</span><span id="CodexREPL.core-86"><a href="#CodexREPL.core-86"><span class="linenos"> 86</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
-</span><span id="CodexREPL.core-87"><a href="#CodexREPL.core-87"><span class="linenos"> 87</span></a><span class="sd">        Send a user query to the model for processing.</span>
-</span><span id="CodexREPL.core-88"><a href="#CodexREPL.core-88"><span class="linenos"> 88</span></a>
-</span><span id="CodexREPL.core-89"><a href="#CodexREPL.core-89"><span class="linenos"> 89</span></a><span class="sd">        Arguments</span>
-</span><span id="CodexREPL.core-90"><a href="#CodexREPL.core-90"><span class="linenos"> 90</span></a><span class="sd">        ---------</span>
-</span><span id="CodexREPL.core-91"><a href="#CodexREPL.core-91"><span class="linenos"> 91</span></a><span class="sd">            userQuery</span>
-</span><span id="CodexREPL.core-92"><a href="#CodexREPL.core-92"><span class="linenos"> 92</span></a><span class="sd">        A string with the user query, most often a programming question.</span>
-</span><span id="CodexREPL.core-93"><a href="#CodexREPL.core-93"><span class="linenos"> 93</span></a>
-</span><span id="CodexREPL.core-94"><a href="#CodexREPL.core-94"><span class="linenos"> 94</span></a><span class="sd">        Returns</span>
-</span><span id="CodexREPL.core-95"><a href="#CodexREPL.core-95"><span class="linenos"> 95</span></a><span class="sd">        -------</span>
-</span><span id="CodexREPL.core-96"><a href="#CodexREPL.core-96"><span class="linenos"> 96</span></a><span class="sd">        The result of the query, or `None` if the query was empty.</span>
-</span><span id="CodexREPL.core-97"><a href="#CodexREPL.core-97"><span class="linenos"> 97</span></a><span class="sd">        &quot;&quot;&quot;</span>
-</span><span id="CodexREPL.core-98"><a href="#CodexREPL.core-98"><span class="linenos"> 98</span></a>        <span class="n">result</span> <span class="o">=</span> <span class="kc">None</span>
-</span><span id="CodexREPL.core-99"><a href="#CodexREPL.core-99"><span class="linenos"> 99</span></a>        <span class="k">if</span> <span class="n">userQuery</span><span class="p">:</span>
-</span><span id="CodexREPL.core-100"><a href="#CodexREPL.core-100"><span class="linenos">100</span></a>            <span class="k">if</span> <span class="ow">not</span> <span class="bp">self</span><span class="o">.</span><span class="n">_client</span><span class="p">:</span>
-</span><span id="CodexREPL.core-101"><a href="#CodexREPL.core-101"><span class="linenos">101</span></a>                <span class="bp">self</span><span class="o">.</span><span class="n">_client</span> <span class="o">=</span> <span class="n">PerplexityClient</span><span class="p">(</span><span class="n">key</span> <span class="o">=</span> <span class="n">os</span><span class="o">.</span><span class="n">environ</span><span class="p">[</span><span class="s1">&#39;PERPLEXITY_API_KEY&#39;</span><span class="p">])</span>
-</span><span id="CodexREPL.core-102"><a href="#CodexREPL.core-102"><span class="linenos">102</span></a>                <span class="bp">self</span><span class="o">.</span><span class="n">_client</span><span class="o">.</span><span class="n">model</span> <span class="o">=</span> <span class="n">DEFAULT_MODEL_NAME</span>
-</span><span id="CodexREPL.core-103"><a href="#CodexREPL.core-103"><span class="linenos">103</span></a>            <span class="n">result</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_client</span><span class="o">.</span><span class="n">query</span><span class="p">(</span><span class="n">userQuery</span><span class="p">)</span>
-</span><span id="CodexREPL.core-104"><a href="#CodexREPL.core-104"><span class="linenos">104</span></a>
-</span><span id="CodexREPL.core-105"><a href="#CodexREPL.core-105"><span class="linenos">105</span></a>        <span class="k">return</span> <span class="n">result</span>
+            <div class="pdoc-code codehilite"><pre><span></span><span id="CodexREPL.core-91"><a href="#CodexREPL.core-91"><span class="linenos"> 91</span></a>    <span class="k">def</span> <span class="nf">core</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">userQuery</span><span class="p">:</span> <span class="nb">str</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">str</span><span class="p">:</span>
+</span><span id="CodexREPL.core-92"><a href="#CodexREPL.core-92"><span class="linenos"> 92</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
+</span><span id="CodexREPL.core-93"><a href="#CodexREPL.core-93"><span class="linenos"> 93</span></a><span class="sd">        Send a user query to the model for processing.</span>
+</span><span id="CodexREPL.core-94"><a href="#CodexREPL.core-94"><span class="linenos"> 94</span></a>
+</span><span id="CodexREPL.core-95"><a href="#CodexREPL.core-95"><span class="linenos"> 95</span></a><span class="sd">        Arguments</span>
+</span><span id="CodexREPL.core-96"><a href="#CodexREPL.core-96"><span class="linenos"> 96</span></a><span class="sd">        ---------</span>
+</span><span id="CodexREPL.core-97"><a href="#CodexREPL.core-97"><span class="linenos"> 97</span></a><span class="sd">            userQuery</span>
+</span><span id="CodexREPL.core-98"><a href="#CodexREPL.core-98"><span class="linenos"> 98</span></a><span class="sd">        A string with the user query, most often a programming question.</span>
+</span><span id="CodexREPL.core-99"><a href="#CodexREPL.core-99"><span class="linenos"> 99</span></a>
+</span><span id="CodexREPL.core-100"><a href="#CodexREPL.core-100"><span class="linenos">100</span></a><span class="sd">        Returns</span>
+</span><span id="CodexREPL.core-101"><a href="#CodexREPL.core-101"><span class="linenos">101</span></a><span class="sd">        -------</span>
+</span><span id="CodexREPL.core-102"><a href="#CodexREPL.core-102"><span class="linenos">102</span></a><span class="sd">        The result of the query, or `None` if the query was empty.</span>
+</span><span id="CodexREPL.core-103"><a href="#CodexREPL.core-103"><span class="linenos">103</span></a><span class="sd">        &quot;&quot;&quot;</span>
+</span><span id="CodexREPL.core-104"><a href="#CodexREPL.core-104"><span class="linenos">104</span></a>        <span class="n">result</span> <span class="o">=</span> <span class="kc">None</span>
+</span><span id="CodexREPL.core-105"><a href="#CodexREPL.core-105"><span class="linenos">105</span></a>        <span class="n">userQuery</span> <span class="o">=</span> <span class="n">userQuery</span><span class="o">.</span><span class="n">strip</span><span class="p">()</span>
+</span><span id="CodexREPL.core-106"><a href="#CodexREPL.core-106"><span class="linenos">106</span></a>        <span class="k">if</span> <span class="n">userQuery</span><span class="p">:</span>
+</span><span id="CodexREPL.core-107"><a href="#CodexREPL.core-107"><span class="linenos">107</span></a>            <span class="k">if</span> <span class="ow">not</span> <span class="bp">self</span><span class="o">.</span><span class="n">_client</span><span class="p">:</span>
+</span><span id="CodexREPL.core-108"><a href="#CodexREPL.core-108"><span class="linenos">108</span></a>                <span class="bp">self</span><span class="o">.</span><span class="n">_client</span> <span class="o">=</span> <span class="n">PerplexityClient</span><span class="p">(</span><span class="n">key</span> <span class="o">=</span> <span class="n">os</span><span class="o">.</span><span class="n">environ</span><span class="p">[</span><span class="s1">&#39;PERPLEXITY_API_KEY&#39;</span><span class="p">])</span>
+</span><span id="CodexREPL.core-109"><a href="#CodexREPL.core-109"><span class="linenos">109</span></a>                <span class="bp">self</span><span class="o">.</span><span class="n">_client</span><span class="o">.</span><span class="n">model</span> <span class="o">=</span> <span class="n">DEFAULT_MODEL_NAME</span>
+</span><span id="CodexREPL.core-110"><a href="#CodexREPL.core-110"><span class="linenos">110</span></a>            <span class="n">result</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_client</span><span class="o">.</span><span class="n">query</span><span class="p">(</span><span class="n">userQuery</span><span class="p">)</span>
+</span><span id="CodexREPL.core-111"><a href="#CodexREPL.core-111"><span class="linenos">111</span></a>
+</span><span id="CodexREPL.core-112"><a href="#CodexREPL.core-112"><span class="linenos">112</span></a>        <span class="k">return</span> <span class="n">result</span>
 </span></pre></div>
 
 
@@ -764,47 +931,212 @@ <h2 id="returns">Returns</h2>
 
     </div>
     <a class="headerlink" href="#CodexREPL.activeModel"></a>
-            <div class="pdoc-code codehilite"><pre><span></span><span id="CodexREPL.activeModel-108"><a href="#CodexREPL.activeModel-108"><span class="linenos">108</span></a>    <span class="k">def</span> <span class="nf">activeModel</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">modelID</span><span class="p">:</span> <span class="nb">int</span> <span class="o">=</span> <span class="mi">0</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">str</span><span class="p">:</span>
-</span><span id="CodexREPL.activeModel-109"><a href="#CodexREPL.activeModel-109"><span class="linenos">109</span></a>        <span class="k">if</span> <span class="n">modelID</span><span class="p">:</span>
-</span><span id="CodexREPL.activeModel-110"><a href="#CodexREPL.activeModel-110"><span class="linenos">110</span></a>            <span class="k">try</span><span class="p">:</span>
-</span><span id="CodexREPL.activeModel-111"><a href="#CodexREPL.activeModel-111"><span class="linenos">111</span></a>                <span class="n">ref</span> <span class="o">=</span> <span class="n">modelID</span><span class="o">-</span><span class="mi">1</span>
-</span><span id="CodexREPL.activeModel-112"><a href="#CodexREPL.activeModel-112"><span class="linenos">112</span></a>                <span class="n">model</span> <span class="o">=</span> <span class="nb">list</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">_client</span><span class="o">.</span><span class="n">models</span><span class="o">.</span><span class="n">keys</span><span class="p">())[</span><span class="n">ref</span><span class="p">]</span>
-</span><span id="CodexREPL.activeModel-113"><a href="#CodexREPL.activeModel-113"><span class="linenos">113</span></a>                <span class="bp">self</span><span class="o">.</span><span class="n">_client</span><span class="o">.</span><span class="n">model</span> <span class="o">=</span> <span class="n">model</span>
-</span><span id="CodexREPL.activeModel-114"><a href="#CodexREPL.activeModel-114"><span class="linenos">114</span></a>            <span class="k">except</span><span class="p">:</span>
-</span><span id="CodexREPL.activeModel-115"><a href="#CodexREPL.activeModel-115"><span class="linenos">115</span></a>                <span class="n">click</span><span class="o">.</span><span class="n">secho</span><span class="p">(</span><span class="s1">&#39;Invalid model ID = </span><span class="si">%s</span><span class="s1">&#39;</span> <span class="o">%</span> <span class="n">modelID</span><span class="p">,</span> <span class="n">bg</span> <span class="o">=</span> <span class="s1">&#39;red&#39;</span><span class="p">,</span> <span class="n">fg</span> <span class="o">=</span> <span class="s1">&#39;white&#39;</span><span class="p">)</span>
-</span><span id="CodexREPL.activeModel-116"><a href="#CodexREPL.activeModel-116"><span class="linenos">116</span></a>        <span class="n">click</span><span class="o">.</span><span class="n">secho</span><span class="p">(</span><span class="s1">&#39;Active model: </span><span class="si">%s</span><span class="se">\n</span><span class="s1">&#39;</span> <span class="o">%</span> <span class="bp">self</span><span class="o">.</span><span class="n">_client</span><span class="o">.</span><span class="n">model</span><span class="p">,</span> <span class="n">fg</span> <span class="o">=</span> <span class="s1">&#39;green&#39;</span><span class="p">,</span> <span class="n">bold</span> <span class="o">=</span> <span class="kc">True</span><span class="p">)</span>
-</span><span id="CodexREPL.activeModel-117"><a href="#CodexREPL.activeModel-117"><span class="linenos">117</span></a>        <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_client</span><span class="o">.</span><span class="n">model</span>
+            <div class="pdoc-code codehilite"><pre><span></span><span id="CodexREPL.activeModel-115"><a href="#CodexREPL.activeModel-115"><span class="linenos">115</span></a>    <span class="k">def</span> <span class="nf">activeModel</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">modelID</span><span class="p">:</span> <span class="nb">int</span> <span class="o">=</span> <span class="mi">0</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">str</span><span class="p">:</span>
+</span><span id="CodexREPL.activeModel-116"><a href="#CodexREPL.activeModel-116"><span class="linenos">116</span></a>        <span class="k">if</span> <span class="n">modelID</span><span class="p">:</span>
+</span><span id="CodexREPL.activeModel-117"><a href="#CodexREPL.activeModel-117"><span class="linenos">117</span></a>            <span class="k">try</span><span class="p">:</span>
+</span><span id="CodexREPL.activeModel-118"><a href="#CodexREPL.activeModel-118"><span class="linenos">118</span></a>                <span class="n">ref</span> <span class="o">=</span> <span class="n">modelID</span><span class="o">-</span><span class="mi">1</span>
+</span><span id="CodexREPL.activeModel-119"><a href="#CodexREPL.activeModel-119"><span class="linenos">119</span></a>                <span class="n">model</span> <span class="o">=</span> <span class="nb">list</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">_client</span><span class="o">.</span><span class="n">models</span><span class="o">.</span><span class="n">keys</span><span class="p">())[</span><span class="n">ref</span><span class="p">]</span>
+</span><span id="CodexREPL.activeModel-120"><a href="#CodexREPL.activeModel-120"><span class="linenos">120</span></a>                <span class="bp">self</span><span class="o">.</span><span class="n">_client</span><span class="o">.</span><span class="n">model</span> <span class="o">=</span> <span class="n">model</span>
+</span><span id="CodexREPL.activeModel-121"><a href="#CodexREPL.activeModel-121"><span class="linenos">121</span></a>            <span class="k">except</span><span class="p">:</span>
+</span><span id="CodexREPL.activeModel-122"><a href="#CodexREPL.activeModel-122"><span class="linenos">122</span></a>                <span class="n">click</span><span class="o">.</span><span class="n">secho</span><span class="p">(</span><span class="s1">&#39;Invalid model ID = </span><span class="si">%s</span><span class="s1">&#39;</span> <span class="o">%</span> <span class="n">modelID</span><span class="p">,</span> <span class="n">bg</span> <span class="o">=</span> <span class="s1">&#39;red&#39;</span><span class="p">,</span> <span class="n">fg</span> <span class="o">=</span> <span class="s1">&#39;white&#39;</span><span class="p">)</span>
+</span><span id="CodexREPL.activeModel-123"><a href="#CodexREPL.activeModel-123"><span class="linenos">123</span></a>        <span class="n">click</span><span class="o">.</span><span class="n">secho</span><span class="p">(</span><span class="s1">&#39;Active model: </span><span class="si">%s</span><span class="se">\n</span><span class="s1">&#39;</span> <span class="o">%</span> <span class="bp">self</span><span class="o">.</span><span class="n">_client</span><span class="o">.</span><span class="n">model</span><span class="p">,</span> <span class="n">fg</span> <span class="o">=</span> <span class="s1">&#39;green&#39;</span><span class="p">,</span> <span class="n">bold</span> <span class="o">=</span> <span class="kc">True</span><span class="p">)</span>
+</span><span id="CodexREPL.activeModel-124"><a href="#CodexREPL.activeModel-124"><span class="linenos">124</span></a>        <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_client</span><span class="o">.</span><span class="n">model</span>
 </span></pre></div>
 
 
     
 
+                            </div>
+                            <div id="CodexREPL.displayModels" class="classattr">
+                                        <input id="CodexREPL.displayModels-view-source" class="view-source-toggle-state" type="checkbox" aria-hidden="true" tabindex="-1">
+<div class="attr function">
+            
+        <span class="def">def</span>
+        <span class="name">displayModels</span><span class="signature pdoc-code condensed">(<span class="param"><span class="bp">self</span></span><span class="return-annotation">) -> <span class="nb">list</span>:</span></span>
+
+                <label class="view-source-button" for="CodexREPL.displayModels-view-source"><span>View Source</span></label>
+
+    </div>
+    <a class="headerlink" href="#CodexREPL.displayModels"></a>
+            <div class="pdoc-code codehilite"><pre><span></span><span id="CodexREPL.displayModels-128"><a href="#CodexREPL.displayModels-128"><span class="linenos">128</span></a>    <span class="k">def</span> <span class="nf">displayModels</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">list</span><span class="p">:</span>
+</span><span id="CodexREPL.displayModels-129"><a href="#CodexREPL.displayModels-129"><span class="linenos">129</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
+</span><span id="CodexREPL.displayModels-130"><a href="#CodexREPL.displayModels-130"><span class="linenos">130</span></a><span class="sd">        Display the list of models supported by the API.</span>
+</span><span id="CodexREPL.displayModels-131"><a href="#CodexREPL.displayModels-131"><span class="linenos">131</span></a>
+</span><span id="CodexREPL.displayModels-132"><a href="#CodexREPL.displayModels-132"><span class="linenos">132</span></a><span class="sd">        Returns</span>
+</span><span id="CodexREPL.displayModels-133"><a href="#CodexREPL.displayModels-133"><span class="linenos">133</span></a><span class="sd">        =======</span>
+</span><span id="CodexREPL.displayModels-134"><a href="#CodexREPL.displayModels-134"><span class="linenos">134</span></a><span class="sd">        A list of strings, each corresponding to a model name.</span>
+</span><span id="CodexREPL.displayModels-135"><a href="#CodexREPL.displayModels-135"><span class="linenos">135</span></a><span class="sd">        &quot;&quot;&quot;</span>
+</span><span id="CodexREPL.displayModels-136"><a href="#CodexREPL.displayModels-136"><span class="linenos">136</span></a>        <span class="bp">self</span><span class="o">.</span><span class="n">activeModel</span><span class="p">()</span>
+</span><span id="CodexREPL.displayModels-137"><a href="#CodexREPL.displayModels-137"><span class="linenos">137</span></a>        <span class="nb">print</span><span class="p">(</span><span class="s1">&#39;Available models:</span><span class="se">\n</span><span class="s1">&#39;</span><span class="p">)</span>
+</span><span id="CodexREPL.displayModels-138"><a href="#CodexREPL.displayModels-138"><span class="linenos">138</span></a>        <span class="n">n</span> <span class="o">=</span> <span class="mi">1</span>
+</span><span id="CodexREPL.displayModels-139"><a href="#CodexREPL.displayModels-139"><span class="linenos">139</span></a>        <span class="k">for</span> <span class="n">model</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">_client</span><span class="o">.</span><span class="n">models</span><span class="o">.</span><span class="n">keys</span><span class="p">():</span>
+</span><span id="CodexREPL.displayModels-140"><a href="#CodexREPL.displayModels-140"><span class="linenos">140</span></a>            <span class="nb">print</span><span class="p">(</span><span class="s1">&#39;</span><span class="si">%2d</span><span class="s1"> - </span><span class="si">%s</span><span class="s1">&#39;</span> <span class="o">%</span> <span class="p">(</span><span class="n">n</span><span class="p">,</span> <span class="n">model</span><span class="p">))</span>
+</span><span id="CodexREPL.displayModels-141"><a href="#CodexREPL.displayModels-141"><span class="linenos">141</span></a>            <span class="n">n</span> <span class="o">+=</span> <span class="mi">1</span>
+</span><span id="CodexREPL.displayModels-142"><a href="#CodexREPL.displayModels-142"><span class="linenos">142</span></a>        <span class="nb">print</span><span class="p">()</span>
+</span><span id="CodexREPL.displayModels-143"><a href="#CodexREPL.displayModels-143"><span class="linenos">143</span></a>
+</span><span id="CodexREPL.displayModels-144"><a href="#CodexREPL.displayModels-144"><span class="linenos">144</span></a>        <span class="k">return</span> <span class="nb">list</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">_client</span><span class="o">.</span><span class="n">models</span><span class="o">.</span><span class="n">keys</span><span class="p">())</span>
+</span></pre></div>
+
+
+            <div class="docstring"><p>Display the list of models supported by the API.</p>
+
+<h1 id="returns">Returns</h1>
+
+<p>A list of strings, each corresponding to a model name.</p>
+</div>
+
+
                             </div>
                             <div id="CodexREPL.editingMode" class="classattr">
                                         <input id="CodexREPL.editingMode-view-source" class="view-source-toggle-state" type="checkbox" aria-hidden="true" tabindex="-1">
 <div class="attr function">
             
         <span class="def">def</span>
-        <span class="name">editingMode</span><span class="signature pdoc-code multiline">(<span class="param">	<span class="bp">self</span>,</span><span class="param">	<span class="n">session</span><span class="p">:</span> <span class="n">prompt_toolkit</span><span class="o">.</span><span class="n">shortcuts</span><span class="o">.</span><span class="n">prompt</span><span class="o">.</span><span class="n">PromptSession</span>,</span><span class="param">	<span class="n">mode</span><span class="o">=</span><span class="kc">None</span></span><span class="return-annotation">) -> <span class="n">prompt_toolkit</span><span class="o">.</span><span class="n">shortcuts</span><span class="o">.</span><span class="n">prompt</span><span class="o">.</span><span class="n">PromptSession</span>:</span></span>
+        <span class="name">editingMode</span><span class="signature pdoc-code multiline">(<span class="param">	<span class="bp">self</span>,</span><span class="param">	<span class="n">session</span><span class="p">:</span> <span class="n">prompt_toolkit</span><span class="o">.</span><span class="n">shortcuts</span><span class="o">.</span><span class="n">prompt</span><span class="o">.</span><span class="n">PromptSession</span>,</span><span class="param">	<span class="n">mode</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="kc">None</span></span><span class="return-annotation">) -> <span class="n">prompt_toolkit</span><span class="o">.</span><span class="n">shortcuts</span><span class="o">.</span><span class="n">prompt</span><span class="o">.</span><span class="n">PromptSession</span>:</span></span>
 
                 <label class="view-source-button" for="CodexREPL.editingMode-view-source"><span>View Source</span></label>
 
     </div>
     <a class="headerlink" href="#CodexREPL.editingMode"></a>
-            <div class="pdoc-code codehilite"><pre><span></span><span id="CodexREPL.editingMode-140"><a href="#CodexREPL.editingMode-140"><span class="linenos">140</span></a>    <span class="k">def</span> <span class="nf">editingMode</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">session</span><span class="p">:</span> <span class="n">PromptSession</span><span class="p">,</span> <span class="n">mode</span> <span class="o">=</span> <span class="kc">None</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">PromptSession</span><span class="p">:</span>
-</span><span id="CodexREPL.editingMode-141"><a href="#CodexREPL.editingMode-141"><span class="linenos">141</span></a>        <span class="k">if</span> <span class="n">mode</span><span class="p">:</span>
-</span><span id="CodexREPL.editingMode-142"><a href="#CodexREPL.editingMode-142"><span class="linenos">142</span></a>            <span class="n">mode</span> <span class="o">=</span> <span class="n">mode</span><span class="o">.</span><span class="n">lower</span><span class="p">()</span>
-</span><span id="CodexREPL.editingMode-143"><a href="#CodexREPL.editingMode-143"><span class="linenos">143</span></a>            <span class="n">newEditingMode</span> <span class="o">=</span> <span class="n">EditingMode</span><span class="o">.</span><span class="n">EMACS</span> <span class="k">if</span> <span class="n">mode</span> <span class="o">==</span> <span class="s1">&#39;emacs&#39;</span> <span class="k">else</span> <span class="n">EditingMode</span><span class="o">.</span><span class="n">VI</span>
-</span><span id="CodexREPL.editingMode-144"><a href="#CodexREPL.editingMode-144"><span class="linenos">144</span></a>            <span class="n">session</span> <span class="o">=</span> <span class="n">PromptSession</span><span class="p">(</span><span class="n">editing_mode</span> <span class="o">=</span> <span class="n">newEditingMode</span><span class="p">)</span>
-</span><span id="CodexREPL.editingMode-145"><a href="#CodexREPL.editingMode-145"><span class="linenos">145</span></a>
-</span><span id="CodexREPL.editingMode-146"><a href="#CodexREPL.editingMode-146"><span class="linenos">146</span></a>        <span class="n">editingMode</span> <span class="o">=</span> <span class="nb">str</span><span class="p">(</span><span class="n">session</span><span class="o">.</span><span class="n">editing_mode</span><span class="p">)</span><span class="o">.</span><span class="n">replace</span><span class="p">(</span><span class="s1">&#39;EditingMode.&#39;</span><span class="p">,</span> <span class="s1">&#39;&#39;</span><span class="p">)</span><span class="o">.</span><span class="n">lower</span><span class="p">()</span>
-</span><span id="CodexREPL.editingMode-147"><a href="#CodexREPL.editingMode-147"><span class="linenos">147</span></a>        <span class="n">click</span><span class="o">.</span><span class="n">secho</span><span class="p">(</span><span class="s1">&#39;Editing mode = </span><span class="si">%s</span><span class="s1">&#39;</span> <span class="o">%</span> <span class="n">editingMode</span><span class="p">,</span> <span class="n">fg</span> <span class="o">=</span> <span class="s1">&#39;bright_blue&#39;</span><span class="p">)</span>
-</span><span id="CodexREPL.editingMode-148"><a href="#CodexREPL.editingMode-148"><span class="linenos">148</span></a>
-</span><span id="CodexREPL.editingMode-149"><a href="#CodexREPL.editingMode-149"><span class="linenos">149</span></a>        <span class="k">return</span> <span class="n">session</span>
+            <div class="pdoc-code codehilite"><pre><span></span><span id="CodexREPL.editingMode-147"><a href="#CodexREPL.editingMode-147"><span class="linenos">147</span></a>    <span class="k">def</span> <span class="nf">editingMode</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">session</span><span class="p">:</span> <span class="n">PromptSession</span><span class="p">,</span> <span class="n">mode</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="kc">None</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">PromptSession</span><span class="p">:</span>
+</span><span id="CodexREPL.editingMode-148"><a href="#CodexREPL.editingMode-148"><span class="linenos">148</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
+</span><span id="CodexREPL.editingMode-149"><a href="#CodexREPL.editingMode-149"><span class="linenos">149</span></a><span class="sd">        Sets the editing mode to `vi` or `emacs`.</span>
+</span><span id="CodexREPL.editingMode-150"><a href="#CodexREPL.editingMode-150"><span class="linenos">150</span></a>
+</span><span id="CodexREPL.editingMode-151"><a href="#CodexREPL.editingMode-151"><span class="linenos">151</span></a><span class="sd">        Arguments</span>
+</span><span id="CodexREPL.editingMode-152"><a href="#CodexREPL.editingMode-152"><span class="linenos">152</span></a><span class="sd">        =========</span>
+</span><span id="CodexREPL.editingMode-153"><a href="#CodexREPL.editingMode-153"><span class="linenos">153</span></a><span class="sd">            session</span>
+</span><span id="CodexREPL.editingMode-154"><a href="#CodexREPL.editingMode-154"><span class="linenos">154</span></a><span class="sd">        An instance of `PromptSession` from the current Click hosting.</span>
+</span><span id="CodexREPL.editingMode-155"><a href="#CodexREPL.editingMode-155"><span class="linenos">155</span></a>
+</span><span id="CodexREPL.editingMode-156"><a href="#CodexREPL.editingMode-156"><span class="linenos">156</span></a><span class="sd">            mode</span>
+</span><span id="CodexREPL.editingMode-157"><a href="#CodexREPL.editingMode-157"><span class="linenos">157</span></a><span class="sd">        A string with the values of &#39;vi&#39; or &#39;emacs&#39;; any other value is</span>
+</span><span id="CodexREPL.editingMode-158"><a href="#CodexREPL.editingMode-158"><span class="linenos">158</span></a><span class="sd">        overriden with `vi`.</span>
+</span><span id="CodexREPL.editingMode-159"><a href="#CodexREPL.editingMode-159"><span class="linenos">159</span></a>
+</span><span id="CodexREPL.editingMode-160"><a href="#CodexREPL.editingMode-160"><span class="linenos">160</span></a><span class="sd">        Returns</span>
+</span><span id="CodexREPL.editingMode-161"><a href="#CodexREPL.editingMode-161"><span class="linenos">161</span></a><span class="sd">        =======</span>
+</span><span id="CodexREPL.editingMode-162"><a href="#CodexREPL.editingMode-162"><span class="linenos">162</span></a><span class="sd">        An updated PromptSession instance that with the value of `mode`.</span>
+</span><span id="CodexREPL.editingMode-163"><a href="#CodexREPL.editingMode-163"><span class="linenos">163</span></a><span class="sd">        &quot;&quot;&quot;</span>
+</span><span id="CodexREPL.editingMode-164"><a href="#CodexREPL.editingMode-164"><span class="linenos">164</span></a>        <span class="k">if</span> <span class="n">mode</span><span class="p">:</span>
+</span><span id="CodexREPL.editingMode-165"><a href="#CodexREPL.editingMode-165"><span class="linenos">165</span></a>            <span class="n">mode</span> <span class="o">=</span> <span class="n">mode</span><span class="o">.</span><span class="n">lower</span><span class="p">()</span>
+</span><span id="CodexREPL.editingMode-166"><a href="#CodexREPL.editingMode-166"><span class="linenos">166</span></a>            <span class="bp">self</span><span class="o">.</span><span class="n">_editingMode</span> <span class="o">=</span> <span class="n">EditingMode</span><span class="o">.</span><span class="n">EMACS</span> <span class="k">if</span> <span class="n">mode</span> <span class="o">==</span> <span class="s1">&#39;emacs&#39;</span> <span class="k">else</span> <span class="n">EditingMode</span><span class="o">.</span><span class="n">VI</span>
+</span><span id="CodexREPL.editingMode-167"><a href="#CodexREPL.editingMode-167"><span class="linenos">167</span></a>            <span class="n">session</span> <span class="o">=</span> <span class="n">PromptSession</span><span class="p">(</span><span class="n">editing_mode</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_editingMode</span><span class="p">)</span>
+</span><span id="CodexREPL.editingMode-168"><a href="#CodexREPL.editingMode-168"><span class="linenos">168</span></a>
+</span><span id="CodexREPL.editingMode-169"><a href="#CodexREPL.editingMode-169"><span class="linenos">169</span></a>        <span class="n">editingMode</span> <span class="o">=</span> <span class="nb">str</span><span class="p">(</span><span class="n">session</span><span class="o">.</span><span class="n">editing_mode</span><span class="p">)</span><span class="o">.</span><span class="n">replace</span><span class="p">(</span><span class="s1">&#39;EditingMode.&#39;</span><span class="p">,</span> <span class="s1">&#39;&#39;</span><span class="p">)</span><span class="o">.</span><span class="n">lower</span><span class="p">()</span>
+</span><span id="CodexREPL.editingMode-170"><a href="#CodexREPL.editingMode-170"><span class="linenos">170</span></a>        <span class="n">click</span><span class="o">.</span><span class="n">secho</span><span class="p">(</span><span class="s1">&#39;Editing mode = </span><span class="si">%s</span><span class="s1">&#39;</span> <span class="o">%</span> <span class="n">editingMode</span><span class="p">,</span> <span class="n">fg</span> <span class="o">=</span> <span class="s1">&#39;bright_blue&#39;</span><span class="p">)</span>
+</span><span id="CodexREPL.editingMode-171"><a href="#CodexREPL.editingMode-171"><span class="linenos">171</span></a>
+</span><span id="CodexREPL.editingMode-172"><a href="#CodexREPL.editingMode-172"><span class="linenos">172</span></a>        <span class="k">return</span> <span class="n">session</span>
 </span></pre></div>
 
 
-    
+            <div class="docstring"><p>Sets the editing mode to <code>vi</code> or <code>emacs</code>.</p>
+
+<h1 id="arguments">Arguments</h1>
+
+<pre><code>session
+</code></pre>
+
+<p>An instance of <code>PromptSession</code> from the current Click hosting.</p>
+
+<pre><code>mode
+</code></pre>
+
+<p>A string with the values of 'vi' or 'emacs'; any other value is
+overriden with <code>vi</code>.</p>
+
+<h1 id="returns">Returns</h1>
+
+<p>An updated PromptSession instance that with the value of <code>mode</code>.</p>
+</div>
+
+
+                            </div>
+                            <div id="CodexREPL.queryCodeStyle" class="classattr">
+                                        <input id="CodexREPL.queryCodeStyle-view-source" class="view-source-toggle-state" type="checkbox" aria-hidden="true" tabindex="-1">
+<div class="attr variable">
+            <span class="name">queryCodeStyle</span><span class="annotation">: bool</span>
+
+                <label class="view-source-button" for="CodexREPL.queryCodeStyle-view-source"><span>View Source</span></label>
+
+    </div>
+    <a class="headerlink" href="#CodexREPL.queryCodeStyle"></a>
+            <div class="pdoc-code codehilite"><pre><span></span><span id="CodexREPL.queryCodeStyle-175"><a href="#CodexREPL.queryCodeStyle-175"><span class="linenos">175</span></a>    <span class="nd">@property</span>
+</span><span id="CodexREPL.queryCodeStyle-176"><a href="#CodexREPL.queryCodeStyle-176"><span class="linenos">176</span></a>    <span class="k">def</span> <span class="nf">queryCodeStyle</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">bool</span><span class="p">:</span>
+</span><span id="CodexREPL.queryCodeStyle-177"><a href="#CodexREPL.queryCodeStyle-177"><span class="linenos">177</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
+</span><span id="CodexREPL.queryCodeStyle-178"><a href="#CodexREPL.queryCodeStyle-178"><span class="linenos">178</span></a><span class="sd">        Return `True` if the current style is code, `False` for human.  The object uses</span>
+</span><span id="CodexREPL.queryCodeStyle-179"><a href="#CodexREPL.queryCodeStyle-179"><span class="linenos">179</span></a><span class="sd">        this Boolean value to determine the type of query to execute.  Future</span>
+</span><span id="CodexREPL.queryCodeStyle-180"><a href="#CodexREPL.queryCodeStyle-180"><span class="linenos">180</span></a><span class="sd">        versions may use the words `code` or `human`, or perhaps an enum with</span>
+</span><span id="CodexREPL.queryCodeStyle-181"><a href="#CodexREPL.queryCodeStyle-181"><span class="linenos">181</span></a><span class="sd">        those values.</span>
+</span><span id="CodexREPL.queryCodeStyle-182"><a href="#CodexREPL.queryCodeStyle-182"><span class="linenos">182</span></a><span class="sd">        &quot;&quot;&quot;</span>
+</span><span id="CodexREPL.queryCodeStyle-183"><a href="#CodexREPL.queryCodeStyle-183"><span class="linenos">183</span></a>        <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_queryCodeStyle</span>
+</span></pre></div>
+
+
+            <div class="docstring"><p>Return <code>True</code> if the current style is code, <code>False</code> for human.  The object uses
+this Boolean value to determine the type of query to execute.  Future
+versions may use the words <code>code</code> or <code>human</code>, or perhaps an enum with
+those values.</p>
+</div>
+
+
+                            </div>
+                            <div id="CodexREPL.makeQuery" class="classattr">
+                                        <input id="CodexREPL.makeQuery-view-source" class="view-source-toggle-state" type="checkbox" aria-hidden="true" tabindex="-1">
+<div class="attr function">
+            
+        <span class="def">def</span>
+        <span class="name">makeQuery</span><span class="signature pdoc-code condensed">(<span class="param"><span class="bp">self</span>, </span><span class="param"><span class="n">userQuery</span><span class="p">:</span> <span class="nb">str</span></span><span class="return-annotation">) -> <span class="nb">str</span>:</span></span>
+
+                <label class="view-source-button" for="CodexREPL.makeQuery-view-source"><span>View Source</span></label>
+
+    </div>
+    <a class="headerlink" href="#CodexREPL.makeQuery"></a>
+            <div class="pdoc-code codehilite"><pre><span></span><span id="CodexREPL.makeQuery-216"><a href="#CodexREPL.makeQuery-216"><span class="linenos">216</span></a>    <span class="k">def</span> <span class="nf">makeQuery</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">userQuery</span><span class="p">:</span> <span class="nb">str</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">str</span><span class="p">:</span>
+</span><span id="CodexREPL.makeQuery-217"><a href="#CodexREPL.makeQuery-217"><span class="linenos">217</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
+</span><span id="CodexREPL.makeQuery-218"><a href="#CodexREPL.makeQuery-218"><span class="linenos">218</span></a><span class="sd">        Execute a query using the `PerplexityClient` and return the result in</span>
+</span><span id="CodexREPL.makeQuery-219"><a href="#CodexREPL.makeQuery-219"><span class="linenos">219</span></a><span class="sd">        a string.</span>
+</span><span id="CodexREPL.makeQuery-220"><a href="#CodexREPL.makeQuery-220"><span class="linenos">220</span></a>
+</span><span id="CodexREPL.makeQuery-221"><a href="#CodexREPL.makeQuery-221"><span class="linenos">221</span></a><span class="sd">        Arguments</span>
+</span><span id="CodexREPL.makeQuery-222"><a href="#CodexREPL.makeQuery-222"><span class="linenos">222</span></a><span class="sd">        =========</span>
+</span><span id="CodexREPL.makeQuery-223"><a href="#CodexREPL.makeQuery-223"><span class="linenos">223</span></a><span class="sd">            userQuery</span>
+</span><span id="CodexREPL.makeQuery-224"><a href="#CodexREPL.makeQuery-224"><span class="linenos">224</span></a><span class="sd">        A free from, natural language string describing the request to the AI</span>
+</span><span id="CodexREPL.makeQuery-225"><a href="#CodexREPL.makeQuery-225"><span class="linenos">225</span></a><span class="sd">        provider.</span>
+</span><span id="CodexREPL.makeQuery-226"><a href="#CodexREPL.makeQuery-226"><span class="linenos">226</span></a>
+</span><span id="CodexREPL.makeQuery-227"><a href="#CodexREPL.makeQuery-227"><span class="linenos">227</span></a><span class="sd">        Returns</span>
+</span><span id="CodexREPL.makeQuery-228"><a href="#CodexREPL.makeQuery-228"><span class="linenos">228</span></a><span class="sd">        =======</span>
+</span><span id="CodexREPL.makeQuery-229"><a href="#CodexREPL.makeQuery-229"><span class="linenos">229</span></a><span class="sd">        The response from the AI/LLM.</span>
+</span><span id="CodexREPL.makeQuery-230"><a href="#CodexREPL.makeQuery-230"><span class="linenos">230</span></a>
+</span><span id="CodexREPL.makeQuery-231"><a href="#CodexREPL.makeQuery-231"><span class="linenos">231</span></a><span class="sd">        Raises</span>
+</span><span id="CodexREPL.makeQuery-232"><a href="#CodexREPL.makeQuery-232"><span class="linenos">232</span></a><span class="sd">        ======</span>
+</span><span id="CodexREPL.makeQuery-233"><a href="#CodexREPL.makeQuery-233"><span class="linenos">233</span></a><span class="sd">        `ValueError` if `userQuery` is `None` or an empty string.</span>
+</span><span id="CodexREPL.makeQuery-234"><a href="#CodexREPL.makeQuery-234"><span class="linenos">234</span></a><span class="sd">        &quot;&quot;&quot;</span>
+</span><span id="CodexREPL.makeQuery-235"><a href="#CodexREPL.makeQuery-235"><span class="linenos">235</span></a>        <span class="k">if</span> <span class="ow">not</span> <span class="n">userQuery</span><span class="p">:</span>
+</span><span id="CodexREPL.makeQuery-236"><a href="#CodexREPL.makeQuery-236"><span class="linenos">236</span></a>            <span class="k">raise</span> <span class="ne">ValueError</span><span class="p">(</span><span class="s1">&#39;userQuery string cannot be empty&#39;</span><span class="p">)</span>
+</span><span id="CodexREPL.makeQuery-237"><a href="#CodexREPL.makeQuery-237"><span class="linenos">237</span></a>        <span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">_queryCodeStyle</span><span class="p">:</span>
+</span><span id="CodexREPL.makeQuery-238"><a href="#CodexREPL.makeQuery-238"><span class="linenos">238</span></a>            <span class="n">userQuery</span> <span class="o">=</span> <span class="n">QUERY_DETAILED</span><span class="o">+</span><span class="n">userQuery</span>
+</span><span id="CodexREPL.makeQuery-239"><a href="#CodexREPL.makeQuery-239"><span class="linenos">239</span></a>
+</span><span id="CodexREPL.makeQuery-240"><a href="#CodexREPL.makeQuery-240"><span class="linenos">240</span></a>        <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">core</span><span class="p">(</span><span class="n">userQuery</span><span class="p">)</span>
+</span></pre></div>
+
+
+            <div class="docstring"><p>Execute a query using the <code>PerplexityClient</code> and return the result in
+a string.</p>
+
+<h1 id="arguments">Arguments</h1>
+
+<pre><code>userQuery
+</code></pre>
+
+<p>A free from, natural language string describing the request to the AI
+provider.</p>
+
+<h1 id="returns">Returns</h1>
+
+<p>The response from the AI/LLM.</p>
+
+<h1 id="raises">Raises</h1>
+
+<p><code>ValueError</code> if <code>userQuery</code> is <code>None</code> or an empty string.</p>
+</div>
+
 
                             </div>
                             <div id="CodexREPL.run" class="classattr">
@@ -818,8 +1150,8 @@ <h2 id="returns">Returns</h2>
 
     </div>
     <a class="headerlink" href="#CodexREPL.run"></a>
-            <div class="pdoc-code codehilite"><pre><span></span><span id="CodexREPL.run-192"><a href="#CodexREPL.run-192"><span class="linenos">192</span></a>    <span class="k">def</span> <span class="nf">run</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
-</span><span id="CodexREPL.run-193"><a href="#CodexREPL.run-193"><span class="linenos">193</span></a>        <span class="k">pass</span>
+            <div class="pdoc-code codehilite"><pre><span></span><span id="CodexREPL.run-271"><a href="#CodexREPL.run-271"><span class="linenos">271</span></a>    <span class="k">def</span> <span class="nf">run</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
+</span><span id="CodexREPL.run-272"><a href="#CodexREPL.run-272"><span class="linenos">272</span></a>        <span class="k">pass</span>
 </span></pre></div>
 
 
@@ -838,29 +1170,29 @@ <h2 id="returns">Returns</h2>
 
     </div>
     <a class="headerlink" href="#codexCore"></a>
-            <div class="pdoc-code codehilite"><pre><span></span><span id="codexCore-202"><a href="#codexCore-202"><span class="linenos">202</span></a><span class="k">def</span> <span class="nf">codexCore</span><span class="p">(</span><span class="n">userQuery</span><span class="p">:</span> <span class="nb">str</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">str</span><span class="p">:</span>
-</span><span id="codexCore-203"><a href="#codexCore-203"><span class="linenos">203</span></a><span class="w">    </span><span class="sd">&quot;&quot;&quot;</span>
-</span><span id="codexCore-204"><a href="#codexCore-204"><span class="linenos">204</span></a><span class="sd">    Send a user query to the model for processing.</span>
-</span><span id="codexCore-205"><a href="#codexCore-205"><span class="linenos">205</span></a>
-</span><span id="codexCore-206"><a href="#codexCore-206"><span class="linenos">206</span></a><span class="sd">    Arguments</span>
-</span><span id="codexCore-207"><a href="#codexCore-207"><span class="linenos">207</span></a><span class="sd">    ---------</span>
-</span><span id="codexCore-208"><a href="#codexCore-208"><span class="linenos">208</span></a><span class="sd">        userQuery</span>
-</span><span id="codexCore-209"><a href="#codexCore-209"><span class="linenos">209</span></a><span class="sd">    A string with the user query, most often a programming question.</span>
-</span><span id="codexCore-210"><a href="#codexCore-210"><span class="linenos">210</span></a>
-</span><span id="codexCore-211"><a href="#codexCore-211"><span class="linenos">211</span></a><span class="sd">    Returns</span>
-</span><span id="codexCore-212"><a href="#codexCore-212"><span class="linenos">212</span></a><span class="sd">    -------</span>
-</span><span id="codexCore-213"><a href="#codexCore-213"><span class="linenos">213</span></a><span class="sd">    The result of the query, or `None` if the query was empty.</span>
-</span><span id="codexCore-214"><a href="#codexCore-214"><span class="linenos">214</span></a><span class="sd">    &quot;&quot;&quot;</span>
-</span><span id="codexCore-215"><a href="#codexCore-215"><span class="linenos">215</span></a>    <span class="k">global</span> <span class="n">_client</span>
-</span><span id="codexCore-216"><a href="#codexCore-216"><span class="linenos">216</span></a>
-</span><span id="codexCore-217"><a href="#codexCore-217"><span class="linenos">217</span></a>    <span class="n">result</span> <span class="o">=</span> <span class="kc">None</span>
-</span><span id="codexCore-218"><a href="#codexCore-218"><span class="linenos">218</span></a>    <span class="k">if</span> <span class="n">userQuery</span><span class="p">:</span>
-</span><span id="codexCore-219"><a href="#codexCore-219"><span class="linenos">219</span></a>        <span class="k">if</span> <span class="ow">not</span> <span class="n">_client</span><span class="p">:</span>
-</span><span id="codexCore-220"><a href="#codexCore-220"><span class="linenos">220</span></a>            <span class="n">_client</span> <span class="o">=</span> <span class="n">PerplexityClient</span><span class="p">(</span><span class="n">key</span> <span class="o">=</span> <span class="n">os</span><span class="o">.</span><span class="n">environ</span><span class="p">[</span><span class="s1">&#39;PERPLEXITY_API_KEY&#39;</span><span class="p">])</span>
-</span><span id="codexCore-221"><a href="#codexCore-221"><span class="linenos">221</span></a>            <span class="n">_client</span><span class="o">.</span><span class="n">model</span> <span class="o">=</span> <span class="n">DEFAULT_MODEL_NAME</span>
-</span><span id="codexCore-222"><a href="#codexCore-222"><span class="linenos">222</span></a>        <span class="n">result</span> <span class="o">=</span> <span class="n">_client</span><span class="o">.</span><span class="n">query</span><span class="p">(</span><span class="n">userQuery</span><span class="p">)</span>
-</span><span id="codexCore-223"><a href="#codexCore-223"><span class="linenos">223</span></a>
-</span><span id="codexCore-224"><a href="#codexCore-224"><span class="linenos">224</span></a>    <span class="k">return</span> <span class="n">result</span>
+            <div class="pdoc-code codehilite"><pre><span></span><span id="codexCore-281"><a href="#codexCore-281"><span class="linenos">281</span></a><span class="k">def</span> <span class="nf">codexCore</span><span class="p">(</span><span class="n">userQuery</span><span class="p">:</span> <span class="nb">str</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">str</span><span class="p">:</span>
+</span><span id="codexCore-282"><a href="#codexCore-282"><span class="linenos">282</span></a><span class="w">    </span><span class="sd">&quot;&quot;&quot;</span>
+</span><span id="codexCore-283"><a href="#codexCore-283"><span class="linenos">283</span></a><span class="sd">    Send a user query to the model for processing.</span>
+</span><span id="codexCore-284"><a href="#codexCore-284"><span class="linenos">284</span></a>
+</span><span id="codexCore-285"><a href="#codexCore-285"><span class="linenos">285</span></a><span class="sd">    Arguments</span>
+</span><span id="codexCore-286"><a href="#codexCore-286"><span class="linenos">286</span></a><span class="sd">    ---------</span>
+</span><span id="codexCore-287"><a href="#codexCore-287"><span class="linenos">287</span></a><span class="sd">        userQuery</span>
+</span><span id="codexCore-288"><a href="#codexCore-288"><span class="linenos">288</span></a><span class="sd">    A string with the user query, most often a programming question.</span>
+</span><span id="codexCore-289"><a href="#codexCore-289"><span class="linenos">289</span></a>
+</span><span id="codexCore-290"><a href="#codexCore-290"><span class="linenos">290</span></a><span class="sd">    Returns</span>
+</span><span id="codexCore-291"><a href="#codexCore-291"><span class="linenos">291</span></a><span class="sd">    -------</span>
+</span><span id="codexCore-292"><a href="#codexCore-292"><span class="linenos">292</span></a><span class="sd">    The result of the query, or `None` if the query was empty.</span>
+</span><span id="codexCore-293"><a href="#codexCore-293"><span class="linenos">293</span></a><span class="sd">    &quot;&quot;&quot;</span>
+</span><span id="codexCore-294"><a href="#codexCore-294"><span class="linenos">294</span></a>    <span class="k">global</span> <span class="n">_client</span>
+</span><span id="codexCore-295"><a href="#codexCore-295"><span class="linenos">295</span></a>
+</span><span id="codexCore-296"><a href="#codexCore-296"><span class="linenos">296</span></a>    <span class="n">result</span> <span class="o">=</span> <span class="kc">None</span>
+</span><span id="codexCore-297"><a href="#codexCore-297"><span class="linenos">297</span></a>    <span class="k">if</span> <span class="n">userQuery</span><span class="p">:</span>
+</span><span id="codexCore-298"><a href="#codexCore-298"><span class="linenos">298</span></a>        <span class="k">if</span> <span class="ow">not</span> <span class="n">_client</span><span class="p">:</span>
+</span><span id="codexCore-299"><a href="#codexCore-299"><span class="linenos">299</span></a>            <span class="n">_client</span> <span class="o">=</span> <span class="n">PerplexityClient</span><span class="p">(</span><span class="n">key</span> <span class="o">=</span> <span class="n">os</span><span class="o">.</span><span class="n">environ</span><span class="p">[</span><span class="s1">&#39;PERPLEXITY_API_KEY&#39;</span><span class="p">])</span>
+</span><span id="codexCore-300"><a href="#codexCore-300"><span class="linenos">300</span></a>            <span class="n">_client</span><span class="o">.</span><span class="n">model</span> <span class="o">=</span> <span class="n">DEFAULT_MODEL_NAME</span>
+</span><span id="codexCore-301"><a href="#codexCore-301"><span class="linenos">301</span></a>        <span class="n">result</span> <span class="o">=</span> <span class="n">_client</span><span class="o">.</span><span class="n">query</span><span class="p">(</span><span class="n">userQuery</span><span class="p">)</span>
+</span><span id="codexCore-302"><a href="#codexCore-302"><span class="linenos">302</span></a>
+</span><span id="codexCore-303"><a href="#codexCore-303"><span class="linenos">303</span></a>    <span class="k">return</span> <span class="n">result</span>
 </span></pre></div>
 
 
diff --git a/docs/search.js b/docs/search.js
index 8b7269c..7c5914c 100644
--- a/docs/search.js
+++ b/docs/search.js
@@ -1,6 +1,6 @@
 window.pdocSearch = (function(){
 /** elasticlunr - http://weixsong.github.io * Copyright (C) 2017 Oliver Nightingale * Copyright (C) 2017 Wei Song * MIT Licensed */!function(){function e(e){if(null===e||"object"!=typeof e)return e;var t=e.constructor();for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}var t=function(e){var n=new t.Index;return n.pipeline.add(t.trimmer,t.stopWordFilter,t.stemmer),e&&e.call(n,n),n};t.version="0.9.5",lunr=t,t.utils={},t.utils.warn=function(e){return function(t){e.console&&console.warn&&console.warn(t)}}(this),t.utils.toString=function(e){return void 0===e||null===e?"":e.toString()},t.EventEmitter=function(){this.events={}},t.EventEmitter.prototype.addListener=function(){var e=Array.prototype.slice.call(arguments),t=e.pop(),n=e;if("function"!=typeof t)throw new TypeError("last argument must be a function");n.forEach(function(e){this.hasHandler(e)||(this.events[e]=[]),this.events[e].push(t)},this)},t.EventEmitter.prototype.removeListener=function(e,t){if(this.hasHandler(e)){var n=this.events[e].indexOf(t);-1!==n&&(this.events[e].splice(n,1),0==this.events[e].length&&delete this.events[e])}},t.EventEmitter.prototype.emit=function(e){if(this.hasHandler(e)){var t=Array.prototype.slice.call(arguments,1);this.events[e].forEach(function(e){e.apply(void 0,t)},this)}},t.EventEmitter.prototype.hasHandler=function(e){return e in this.events},t.tokenizer=function(e){if(!arguments.length||null===e||void 0===e)return[];if(Array.isArray(e)){var n=e.filter(function(e){return null===e||void 0===e?!1:!0});n=n.map(function(e){return t.utils.toString(e).toLowerCase()});var i=[];return n.forEach(function(e){var n=e.split(t.tokenizer.seperator);i=i.concat(n)},this),i}return e.toString().trim().toLowerCase().split(t.tokenizer.seperator)},t.tokenizer.defaultSeperator=/[\s\-]+/,t.tokenizer.seperator=t.tokenizer.defaultSeperator,t.tokenizer.setSeperator=function(e){null!==e&&void 0!==e&&"object"==typeof e&&(t.tokenizer.seperator=e)},t.tokenizer.resetSeperator=function(){t.tokenizer.seperator=t.tokenizer.defaultSeperator},t.tokenizer.getSeperator=function(){return t.tokenizer.seperator},t.Pipeline=function(){this._queue=[]},t.Pipeline.registeredFunctions={},t.Pipeline.registerFunction=function(e,n){n in t.Pipeline.registeredFunctions&&t.utils.warn("Overwriting existing registered function: "+n),e.label=n,t.Pipeline.registeredFunctions[n]=e},t.Pipeline.getRegisteredFunction=function(e){return e in t.Pipeline.registeredFunctions!=!0?null:t.Pipeline.registeredFunctions[e]},t.Pipeline.warnIfFunctionNotRegistered=function(e){var n=e.label&&e.label in this.registeredFunctions;n||t.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",e)},t.Pipeline.load=function(e){var n=new t.Pipeline;return e.forEach(function(e){var i=t.Pipeline.getRegisteredFunction(e);if(!i)throw new Error("Cannot load un-registered function: "+e);n.add(i)}),n},t.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach(function(e){t.Pipeline.warnIfFunctionNotRegistered(e),this._queue.push(e)},this)},t.Pipeline.prototype.after=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var i=this._queue.indexOf(e);if(-1===i)throw new Error("Cannot find existingFn");this._queue.splice(i+1,0,n)},t.Pipeline.prototype.before=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var i=this._queue.indexOf(e);if(-1===i)throw new Error("Cannot find existingFn");this._queue.splice(i,0,n)},t.Pipeline.prototype.remove=function(e){var t=this._queue.indexOf(e);-1!==t&&this._queue.splice(t,1)},t.Pipeline.prototype.run=function(e){for(var t=[],n=e.length,i=this._queue.length,o=0;n>o;o++){for(var r=e[o],s=0;i>s&&(r=this._queue[s](r,o,e),void 0!==r&&null!==r);s++);void 0!==r&&null!==r&&t.push(r)}return t},t.Pipeline.prototype.reset=function(){this._queue=[]},t.Pipeline.prototype.get=function(){return this._queue},t.Pipeline.prototype.toJSON=function(){return this._queue.map(function(e){return t.Pipeline.warnIfFunctionNotRegistered(e),e.label})},t.Index=function(){this._fields=[],this._ref="id",this.pipeline=new t.Pipeline,this.documentStore=new t.DocumentStore,this.index={},this.eventEmitter=new t.EventEmitter,this._idfCache={},this.on("add","remove","update",function(){this._idfCache={}}.bind(this))},t.Index.prototype.on=function(){var e=Array.prototype.slice.call(arguments);return this.eventEmitter.addListener.apply(this.eventEmitter,e)},t.Index.prototype.off=function(e,t){return this.eventEmitter.removeListener(e,t)},t.Index.load=function(e){e.version!==t.version&&t.utils.warn("version mismatch: current "+t.version+" importing "+e.version);var n=new this;n._fields=e.fields,n._ref=e.ref,n.documentStore=t.DocumentStore.load(e.documentStore),n.pipeline=t.Pipeline.load(e.pipeline),n.index={};for(var i in e.index)n.index[i]=t.InvertedIndex.load(e.index[i]);return n},t.Index.prototype.addField=function(e){return this._fields.push(e),this.index[e]=new t.InvertedIndex,this},t.Index.prototype.setRef=function(e){return this._ref=e,this},t.Index.prototype.saveDocument=function(e){return this.documentStore=new t.DocumentStore(e),this},t.Index.prototype.addDoc=function(e,n){if(e){var n=void 0===n?!0:n,i=e[this._ref];this.documentStore.addDoc(i,e),this._fields.forEach(function(n){var o=this.pipeline.run(t.tokenizer(e[n]));this.documentStore.addFieldLength(i,n,o.length);var r={};o.forEach(function(e){e in r?r[e]+=1:r[e]=1},this);for(var s in r){var u=r[s];u=Math.sqrt(u),this.index[n].addToken(s,{ref:i,tf:u})}},this),n&&this.eventEmitter.emit("add",e,this)}},t.Index.prototype.removeDocByRef=function(e){if(e&&this.documentStore.isDocStored()!==!1&&this.documentStore.hasDoc(e)){var t=this.documentStore.getDoc(e);this.removeDoc(t,!1)}},t.Index.prototype.removeDoc=function(e,n){if(e){var n=void 0===n?!0:n,i=e[this._ref];this.documentStore.hasDoc(i)&&(this.documentStore.removeDoc(i),this._fields.forEach(function(n){var o=this.pipeline.run(t.tokenizer(e[n]));o.forEach(function(e){this.index[n].removeToken(e,i)},this)},this),n&&this.eventEmitter.emit("remove",e,this))}},t.Index.prototype.updateDoc=function(e,t){var t=void 0===t?!0:t;this.removeDocByRef(e[this._ref],!1),this.addDoc(e,!1),t&&this.eventEmitter.emit("update",e,this)},t.Index.prototype.idf=function(e,t){var n="@"+t+"/"+e;if(Object.prototype.hasOwnProperty.call(this._idfCache,n))return this._idfCache[n];var i=this.index[t].getDocFreq(e),o=1+Math.log(this.documentStore.length/(i+1));return this._idfCache[n]=o,o},t.Index.prototype.getFields=function(){return this._fields.slice()},t.Index.prototype.search=function(e,n){if(!e)return[];e="string"==typeof e?{any:e}:JSON.parse(JSON.stringify(e));var i=null;null!=n&&(i=JSON.stringify(n));for(var o=new t.Configuration(i,this.getFields()).get(),r={},s=Object.keys(e),u=0;u<s.length;u++){var a=s[u];r[a]=this.pipeline.run(t.tokenizer(e[a]))}var l={};for(var c in o){var d=r[c]||r.any;if(d){var f=this.fieldSearch(d,c,o),h=o[c].boost;for(var p in f)f[p]=f[p]*h;for(var p in f)p in l?l[p]+=f[p]:l[p]=f[p]}}var v,g=[];for(var p in l)v={ref:p,score:l[p]},this.documentStore.hasDoc(p)&&(v.doc=this.documentStore.getDoc(p)),g.push(v);return g.sort(function(e,t){return t.score-e.score}),g},t.Index.prototype.fieldSearch=function(e,t,n){var i=n[t].bool,o=n[t].expand,r=n[t].boost,s=null,u={};return 0!==r?(e.forEach(function(e){var n=[e];1==o&&(n=this.index[t].expandToken(e));var r={};n.forEach(function(n){var o=this.index[t].getDocs(n),a=this.idf(n,t);if(s&&"AND"==i){var l={};for(var c in s)c in o&&(l[c]=o[c]);o=l}n==e&&this.fieldSearchStats(u,n,o);for(var c in o){var d=this.index[t].getTermFrequency(n,c),f=this.documentStore.getFieldLength(c,t),h=1;0!=f&&(h=1/Math.sqrt(f));var p=1;n!=e&&(p=.15*(1-(n.length-e.length)/n.length));var v=d*a*h*p;c in r?r[c]+=v:r[c]=v}},this),s=this.mergeScores(s,r,i)},this),s=this.coordNorm(s,u,e.length)):void 0},t.Index.prototype.mergeScores=function(e,t,n){if(!e)return t;if("AND"==n){var i={};for(var o in t)o in e&&(i[o]=e[o]+t[o]);return i}for(var o in t)o in e?e[o]+=t[o]:e[o]=t[o];return e},t.Index.prototype.fieldSearchStats=function(e,t,n){for(var i in n)i in e?e[i].push(t):e[i]=[t]},t.Index.prototype.coordNorm=function(e,t,n){for(var i in e)if(i in t){var o=t[i].length;e[i]=e[i]*o/n}return e},t.Index.prototype.toJSON=function(){var e={};return this._fields.forEach(function(t){e[t]=this.index[t].toJSON()},this),{version:t.version,fields:this._fields,ref:this._ref,documentStore:this.documentStore.toJSON(),index:e,pipeline:this.pipeline.toJSON()}},t.Index.prototype.use=function(e){var t=Array.prototype.slice.call(arguments,1);t.unshift(this),e.apply(this,t)},t.DocumentStore=function(e){this._save=null===e||void 0===e?!0:e,this.docs={},this.docInfo={},this.length=0},t.DocumentStore.load=function(e){var t=new this;return t.length=e.length,t.docs=e.docs,t.docInfo=e.docInfo,t._save=e.save,t},t.DocumentStore.prototype.isDocStored=function(){return this._save},t.DocumentStore.prototype.addDoc=function(t,n){this.hasDoc(t)||this.length++,this.docs[t]=this._save===!0?e(n):null},t.DocumentStore.prototype.getDoc=function(e){return this.hasDoc(e)===!1?null:this.docs[e]},t.DocumentStore.prototype.hasDoc=function(e){return e in this.docs},t.DocumentStore.prototype.removeDoc=function(e){this.hasDoc(e)&&(delete this.docs[e],delete this.docInfo[e],this.length--)},t.DocumentStore.prototype.addFieldLength=function(e,t,n){null!==e&&void 0!==e&&0!=this.hasDoc(e)&&(this.docInfo[e]||(this.docInfo[e]={}),this.docInfo[e][t]=n)},t.DocumentStore.prototype.updateFieldLength=function(e,t,n){null!==e&&void 0!==e&&0!=this.hasDoc(e)&&this.addFieldLength(e,t,n)},t.DocumentStore.prototype.getFieldLength=function(e,t){return null===e||void 0===e?0:e in this.docs&&t in this.docInfo[e]?this.docInfo[e][t]:0},t.DocumentStore.prototype.toJSON=function(){return{docs:this.docs,docInfo:this.docInfo,length:this.length,save:this._save}},t.stemmer=function(){var e={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},t={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},n="[^aeiou]",i="[aeiouy]",o=n+"[^aeiouy]*",r=i+"[aeiou]*",s="^("+o+")?"+r+o,u="^("+o+")?"+r+o+"("+r+")?$",a="^("+o+")?"+r+o+r+o,l="^("+o+")?"+i,c=new RegExp(s),d=new RegExp(a),f=new RegExp(u),h=new RegExp(l),p=/^(.+?)(ss|i)es$/,v=/^(.+?)([^s])s$/,g=/^(.+?)eed$/,m=/^(.+?)(ed|ing)$/,y=/.$/,S=/(at|bl|iz)$/,x=new RegExp("([^aeiouylsz])\\1$"),w=new RegExp("^"+o+i+"[^aeiouwxy]$"),I=/^(.+?[^aeiou])y$/,b=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,E=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,D=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,F=/^(.+?)(s|t)(ion)$/,_=/^(.+?)e$/,P=/ll$/,k=new RegExp("^"+o+i+"[^aeiouwxy]$"),z=function(n){var i,o,r,s,u,a,l;if(n.length<3)return n;if(r=n.substr(0,1),"y"==r&&(n=r.toUpperCase()+n.substr(1)),s=p,u=v,s.test(n)?n=n.replace(s,"$1$2"):u.test(n)&&(n=n.replace(u,"$1$2")),s=g,u=m,s.test(n)){var z=s.exec(n);s=c,s.test(z[1])&&(s=y,n=n.replace(s,""))}else if(u.test(n)){var z=u.exec(n);i=z[1],u=h,u.test(i)&&(n=i,u=S,a=x,l=w,u.test(n)?n+="e":a.test(n)?(s=y,n=n.replace(s,"")):l.test(n)&&(n+="e"))}if(s=I,s.test(n)){var z=s.exec(n);i=z[1],n=i+"i"}if(s=b,s.test(n)){var z=s.exec(n);i=z[1],o=z[2],s=c,s.test(i)&&(n=i+e[o])}if(s=E,s.test(n)){var z=s.exec(n);i=z[1],o=z[2],s=c,s.test(i)&&(n=i+t[o])}if(s=D,u=F,s.test(n)){var z=s.exec(n);i=z[1],s=d,s.test(i)&&(n=i)}else if(u.test(n)){var z=u.exec(n);i=z[1]+z[2],u=d,u.test(i)&&(n=i)}if(s=_,s.test(n)){var z=s.exec(n);i=z[1],s=d,u=f,a=k,(s.test(i)||u.test(i)&&!a.test(i))&&(n=i)}return s=P,u=d,s.test(n)&&u.test(n)&&(s=y,n=n.replace(s,"")),"y"==r&&(n=r.toLowerCase()+n.substr(1)),n};return z}(),t.Pipeline.registerFunction(t.stemmer,"stemmer"),t.stopWordFilter=function(e){return e&&t.stopWordFilter.stopWords[e]!==!0?e:void 0},t.clearStopWords=function(){t.stopWordFilter.stopWords={}},t.addStopWords=function(e){null!=e&&Array.isArray(e)!==!1&&e.forEach(function(e){t.stopWordFilter.stopWords[e]=!0},this)},t.resetStopWords=function(){t.stopWordFilter.stopWords=t.defaultStopWords},t.defaultStopWords={"":!0,a:!0,able:!0,about:!0,across:!0,after:!0,all:!0,almost:!0,also:!0,am:!0,among:!0,an:!0,and:!0,any:!0,are:!0,as:!0,at:!0,be:!0,because:!0,been:!0,but:!0,by:!0,can:!0,cannot:!0,could:!0,dear:!0,did:!0,"do":!0,does:!0,either:!0,"else":!0,ever:!0,every:!0,"for":!0,from:!0,get:!0,got:!0,had:!0,has:!0,have:!0,he:!0,her:!0,hers:!0,him:!0,his:!0,how:!0,however:!0,i:!0,"if":!0,"in":!0,into:!0,is:!0,it:!0,its:!0,just:!0,least:!0,let:!0,like:!0,likely:!0,may:!0,me:!0,might:!0,most:!0,must:!0,my:!0,neither:!0,no:!0,nor:!0,not:!0,of:!0,off:!0,often:!0,on:!0,only:!0,or:!0,other:!0,our:!0,own:!0,rather:!0,said:!0,say:!0,says:!0,she:!0,should:!0,since:!0,so:!0,some:!0,than:!0,that:!0,the:!0,their:!0,them:!0,then:!0,there:!0,these:!0,they:!0,"this":!0,tis:!0,to:!0,too:!0,twas:!0,us:!0,wants:!0,was:!0,we:!0,were:!0,what:!0,when:!0,where:!0,which:!0,"while":!0,who:!0,whom:!0,why:!0,will:!0,"with":!0,would:!0,yet:!0,you:!0,your:!0},t.stopWordFilter.stopWords=t.defaultStopWords,t.Pipeline.registerFunction(t.stopWordFilter,"stopWordFilter"),t.trimmer=function(e){if(null===e||void 0===e)throw new Error("token should not be undefined");return e.replace(/^\W+/,"").replace(/\W+$/,"")},t.Pipeline.registerFunction(t.trimmer,"trimmer"),t.InvertedIndex=function(){this.root={docs:{},df:0}},t.InvertedIndex.load=function(e){var t=new this;return t.root=e.root,t},t.InvertedIndex.prototype.addToken=function(e,t,n){for(var n=n||this.root,i=0;i<=e.length-1;){var o=e[i];o in n||(n[o]={docs:{},df:0}),i+=1,n=n[o]}var r=t.ref;n.docs[r]?n.docs[r]={tf:t.tf}:(n.docs[r]={tf:t.tf},n.df+=1)},t.InvertedIndex.prototype.hasToken=function(e){if(!e)return!1;for(var t=this.root,n=0;n<e.length;n++){if(!t[e[n]])return!1;t=t[e[n]]}return!0},t.InvertedIndex.prototype.getNode=function(e){if(!e)return null;for(var t=this.root,n=0;n<e.length;n++){if(!t[e[n]])return null;t=t[e[n]]}return t},t.InvertedIndex.prototype.getDocs=function(e){var t=this.getNode(e);return null==t?{}:t.docs},t.InvertedIndex.prototype.getTermFrequency=function(e,t){var n=this.getNode(e);return null==n?0:t in n.docs?n.docs[t].tf:0},t.InvertedIndex.prototype.getDocFreq=function(e){var t=this.getNode(e);return null==t?0:t.df},t.InvertedIndex.prototype.removeToken=function(e,t){if(e){var n=this.getNode(e);null!=n&&t in n.docs&&(delete n.docs[t],n.df-=1)}},t.InvertedIndex.prototype.expandToken=function(e,t,n){if(null==e||""==e)return[];var t=t||[];if(void 0==n&&(n=this.getNode(e),null==n))return t;n.df>0&&t.push(e);for(var i in n)"docs"!==i&&"df"!==i&&this.expandToken(e+i,t,n[i]);return t},t.InvertedIndex.prototype.toJSON=function(){return{root:this.root}},t.Configuration=function(e,n){var e=e||"";if(void 0==n||null==n)throw new Error("fields should not be null");this.config={};var i;try{i=JSON.parse(e),this.buildUserConfig(i,n)}catch(o){t.utils.warn("user configuration parse failed, will use default configuration"),this.buildDefaultConfig(n)}},t.Configuration.prototype.buildDefaultConfig=function(e){this.reset(),e.forEach(function(e){this.config[e]={boost:1,bool:"OR",expand:!1}},this)},t.Configuration.prototype.buildUserConfig=function(e,n){var i="OR",o=!1;if(this.reset(),"bool"in e&&(i=e.bool||i),"expand"in e&&(o=e.expand||o),"fields"in e)for(var r in e.fields)if(n.indexOf(r)>-1){var s=e.fields[r],u=o;void 0!=s.expand&&(u=s.expand),this.config[r]={boost:s.boost||0===s.boost?s.boost:1,bool:s.bool||i,expand:u}}else t.utils.warn("field name in user configuration not found in index instance fields");else this.addAllFields2UserConfig(i,o,n)},t.Configuration.prototype.addAllFields2UserConfig=function(e,t,n){n.forEach(function(n){this.config[n]={boost:1,bool:e,expand:t}},this)},t.Configuration.prototype.get=function(){return this.config},t.Configuration.prototype.reset=function(){this.config={}},lunr.SortedSet=function(){this.length=0,this.elements=[]},lunr.SortedSet.load=function(e){var t=new this;return t.elements=e,t.length=e.length,t},lunr.SortedSet.prototype.add=function(){var e,t;for(e=0;e<arguments.length;e++)t=arguments[e],~this.indexOf(t)||this.elements.splice(this.locationFor(t),0,t);this.length=this.elements.length},lunr.SortedSet.prototype.toArray=function(){return this.elements.slice()},lunr.SortedSet.prototype.map=function(e,t){return this.elements.map(e,t)},lunr.SortedSet.prototype.forEach=function(e,t){return this.elements.forEach(e,t)},lunr.SortedSet.prototype.indexOf=function(e){for(var t=0,n=this.elements.length,i=n-t,o=t+Math.floor(i/2),r=this.elements[o];i>1;){if(r===e)return o;e>r&&(t=o),r>e&&(n=o),i=n-t,o=t+Math.floor(i/2),r=this.elements[o]}return r===e?o:-1},lunr.SortedSet.prototype.locationFor=function(e){for(var t=0,n=this.elements.length,i=n-t,o=t+Math.floor(i/2),r=this.elements[o];i>1;)e>r&&(t=o),r>e&&(n=o),i=n-t,o=t+Math.floor(i/2),r=this.elements[o];return r>e?o:e>r?o+1:void 0},lunr.SortedSet.prototype.intersect=function(e){for(var t=new lunr.SortedSet,n=0,i=0,o=this.length,r=e.length,s=this.elements,u=e.elements;;){if(n>o-1||i>r-1)break;s[n]!==u[i]?s[n]<u[i]?n++:s[n]>u[i]&&i++:(t.add(s[n]),n++,i++)}return t},lunr.SortedSet.prototype.clone=function(){var e=new lunr.SortedSet;return e.elements=this.toArray(),e.length=e.elements.length,e},lunr.SortedSet.prototype.union=function(e){var t,n,i;this.length>=e.length?(t=this,n=e):(t=e,n=this),i=t.clone();for(var o=0,r=n.toArray();o<r.length;o++)i.add(r[o]);return i},lunr.SortedSet.prototype.toJSON=function(){return this.toArray()},function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.elasticlunr=t()}(this,function(){return t})}();
-    /** pdoc search index */const docs = {"version": "0.9.5", "fields": ["qualname", "fullname", "annotation", "default_value", "signature", "bases", "doc"], "ref": "fullname", "documentStore": {"docs": {"perplexipy": {"fullname": "perplexipy", "modulename": "perplexipy", "kind": "module", "doc": "<p></p>\n"}, "perplexipy.PERPLEXITY_API_KEY": {"fullname": "perplexipy.PERPLEXITY_API_KEY", "modulename": "perplexipy", "qualname": "PERPLEXITY_API_KEY", "kind": "variable", "doc": "<p><code>PERPLEXITY_API_KEY</code> is set to the environment variable of the same name if\npresent, otherwise it's set to the empty string <code>''</code>.  PerplexiPy uses the\n<code>dotenv</code> module to load environment settings from <code>$PWD/.env</code> if present.</p>\n", "default_value": "$PERPLEXITY_API_KEY"}, "perplexipy.PERPLEXITY_API_PREFIX": {"fullname": "perplexipy.PERPLEXITY_API_PREFIX", "modulename": "perplexipy", "qualname": "PERPLEXITY_API_PREFIX", "kind": "variable", "doc": "<p></p>\n", "default_value": "&#x27;pplx-&#x27;"}, "perplexipy.PERPLEXITY_API_URL": {"fullname": "perplexipy.PERPLEXITY_API_URL", "modulename": "perplexipy", "qualname": "PERPLEXITY_API_URL", "kind": "variable", "doc": "<p></p>\n", "default_value": "&#x27;https://api.perplexity.ai&#x27;"}, "perplexipy.PERPLEXITY_DEFAULT_MODEL": {"fullname": "perplexipy.PERPLEXITY_DEFAULT_MODEL", "modulename": "perplexipy", "qualname": "PERPLEXITY_DEFAULT_MODEL", "kind": "variable", "doc": "<p></p>\n", "default_value": "&#x27;llama-3-sonar-small-32k-chat&#x27;"}, "perplexipy.PERPLEXITY_DEFAULT_ROLE": {"fullname": "perplexipy.PERPLEXITY_DEFAULT_ROLE", "modulename": "perplexipy", "qualname": "PERPLEXITY_DEFAULT_ROLE", "kind": "variable", "doc": "<p></p>\n", "default_value": "&#x27;user&#x27;"}, "perplexipy.PERPLEXITY_TIMEOUT": {"fullname": "perplexipy.PERPLEXITY_TIMEOUT", "modulename": "perplexipy", "qualname": "PERPLEXITY_TIMEOUT", "kind": "variable", "doc": "<p></p>\n", "default_value": "30.0"}, "perplexipy.PERPLEXITY_VALID_ROLES": {"fullname": "perplexipy.PERPLEXITY_VALID_ROLES", "modulename": "perplexipy", "qualname": "PERPLEXITY_VALID_ROLES", "kind": "variable", "doc": "<p>Immutable dictionary-like object of a model's capabilities.  Use <code>_asDict()</code> if\ndictionary manipulation is required.</p>\n", "default_value": "{&#x27;assistant&#x27;, &#x27;user&#x27;, &#x27;system&#x27;}"}, "perplexipy.ModelInfo": {"fullname": "perplexipy.ModelInfo", "modulename": "perplexipy", "qualname": "ModelInfo", "kind": "class", "doc": "<p>ModelInfo(parameterCount, contextLength, modelType, availability)</p>\n", "bases": "builtins.tuple"}, "perplexipy.ModelInfo.__init__": {"fullname": "perplexipy.ModelInfo.__init__", "modulename": "perplexipy", "qualname": "ModelInfo.__init__", "kind": "function", "doc": "<p>Create new instance of ModelInfo(parameterCount, contextLength, modelType, availability)</p>\n", "signature": "<span class=\"signature pdoc-code condensed\">(<span class=\"param\"><span class=\"n\">parameterCount</span>, </span><span class=\"param\"><span class=\"n\">contextLength</span>, </span><span class=\"param\"><span class=\"n\">modelType</span>, </span><span class=\"param\"><span class=\"n\">availability</span></span>)</span>"}, "perplexipy.ModelInfo.parameterCount": {"fullname": "perplexipy.ModelInfo.parameterCount", "modulename": "perplexipy", "qualname": "ModelInfo.parameterCount", "kind": "variable", "doc": "<p>Alias for field number 0</p>\n"}, "perplexipy.ModelInfo.contextLength": {"fullname": "perplexipy.ModelInfo.contextLength", "modulename": "perplexipy", "qualname": "ModelInfo.contextLength", "kind": "variable", "doc": "<p>Alias for field number 1</p>\n"}, "perplexipy.ModelInfo.modelType": {"fullname": "perplexipy.ModelInfo.modelType", "modulename": "perplexipy", "qualname": "ModelInfo.modelType", "kind": "variable", "doc": "<p>Alias for field number 2</p>\n"}, "perplexipy.ModelInfo.availability": {"fullname": "perplexipy.ModelInfo.availability", "modulename": "perplexipy", "qualname": "ModelInfo.availability", "kind": "variable", "doc": "<p>Alias for field number 3</p>\n"}, "perplexipy.PerplexityClient": {"fullname": "perplexipy.PerplexityClient", "modulename": "perplexipy", "qualname": "PerplexityClient", "kind": "class", "doc": "<p>PerplexityClient objects encapsulate all the API functionality.  They can be\ninstantiated across multiple contexts, each keeping its own state.</p>\n"}, "perplexipy.PerplexityClient.__init__": {"fullname": "perplexipy.PerplexityClient.__init__", "modulename": "perplexipy", "qualname": "PerplexityClient.__init__", "kind": "function", "doc": "<p>Create a new instance of <code>perplexipy.PerplexityClient</code> using the API\n<code>key</code> to connect to the corresponding <code>endpoint</code>.</p>\n\n<h2 id=\"arguments\">Arguments</h2>\n\n<pre><code>key\n</code></pre>\n\n<p>A valid API key string.  If not present, it defaults to <code>perplexipy.PERPLEXITY_API_KEY</code>.</p>\n\n<pre><code>endpoint\n</code></pre>\n\n<p>A string representing a URL to the Perplexity API.</p>\n\n<pre><code>unitTest\n</code></pre>\n\n<p>A Boolean to indicate if internal object states need to be modified for\nunit testing.  Has no effect in regular code.</p>\n\n<h2 id=\"returns\">Returns</h2>\n\n<p>An instance of <code>perplexipy.PerplexityClient</code> if successful.</p>\n\n<p>Attributes:</p>\n\n<p><code>model</code> - the current model to use in queries, user configurable.</p>\n\n<p>The role is fixed to <code>\"user\"</code> for Perplexity calls, per the API\nrecommendations.</p>\n\n<h2 id=\"raises\">Raises</h2>\n\n<pre><code>PerplexityClientError\n</code></pre>\n\n<p>If the API key is empty, or doesn't match one of the valid API prefixes\nper the documentation.</p>\n", "signature": "<span class=\"signature pdoc-code multiline\">(<span class=\"param\">\t<span class=\"n\">key</span><span class=\"p\">:</span> <span class=\"nb\">str</span>,</span><span class=\"param\">\t<span class=\"n\">endpoint</span><span class=\"p\">:</span> <span class=\"nb\">str</span> <span class=\"o\">=</span> <span class=\"s1\">&#39;https://api.perplexity.ai&#39;</span>,</span><span class=\"param\">\t<span class=\"n\">unitTest</span><span class=\"o\">=</span><span class=\"kc\">False</span></span>)</span>"}, "perplexipy.PerplexityClient.query": {"fullname": "perplexipy.PerplexityClient.query", "modulename": "perplexipy", "qualname": "PerplexityClient.query", "kind": "function", "doc": "<p>Send a single message query to the service, receive a single response.</p>\n\n<h2 id=\"arguments\">Arguments</h2>\n\n<pre><code>query\n</code></pre>\n\n<p>A string with the query in one of the model's supported languages.</p>\n\n<h2 id=\"returns\">Returns</h2>\n\n<p>A string with a response from the Perplexity service.</p>\n\n<h2 id=\"raises\">Raises</h2>\n\n<pre><code>Exception\n</code></pre>\n\n<p>An <code>openai.BadRequestError</code> or similar if the query is malformed or has\nsomething other than text data.  The error raised passes through\nwhatever the API raised.</p>\n\n<p>In most cases, the API returns <code>openai.BadRequestError</code>.</p>\n\n<pre><code>PerplexityClientError\n</code></pre>\n\n<p>If the query is <code>None</code> or empty.</p>\n", "signature": "<span class=\"signature pdoc-code condensed\">(<span class=\"param\"><span class=\"bp\">self</span>, </span><span class=\"param\"><span class=\"n\">query</span><span class=\"p\">:</span> <span class=\"nb\">str</span></span><span class=\"return-annotation\">) -> <span class=\"nb\">str</span>:</span></span>", "funcdef": "def"}, "perplexipy.PerplexityClient.queryBatch": {"fullname": "perplexipy.PerplexityClient.queryBatch", "modulename": "perplexipy", "qualname": "PerplexityClient.queryBatch", "kind": "function", "doc": "<p>Send a single message query to the service, receive a single response.</p>\n\n<h2 id=\"arguments\">Arguments</h2>\n\n<pre><code>query\n</code></pre>\n\n<p>A string with the query in one of the model's supported languages.</p>\n\n<h2 id=\"returns\">Returns</h2>\n\n<p>A tuple with a batch of 1 or more response strings.</p>\n\n<h2 id=\"raises\">Raises</h2>\n\n<pre><code>Exception\n</code></pre>\n\n<p>An <code>openai.BadRequestError</code> or similar if the query is malformed or has\nsomething other than text data.  The error raised passes through\nwhatever the API raised.</p>\n\n<p>In most cases, the API returns <code>openai.BadRequestError</code>.</p>\n\n<pre><code>PerplexityClientError\n</code></pre>\n\n<p>If the query is <code>None</code> or empty.</p>\n", "signature": "<span class=\"signature pdoc-code condensed\">(<span class=\"param\"><span class=\"bp\">self</span>, </span><span class=\"param\"><span class=\"n\">query</span><span class=\"p\">:</span> <span class=\"nb\">str</span></span><span class=\"return-annotation\">) -> <span class=\"nb\">tuple</span>:</span></span>", "funcdef": "def"}, "perplexipy.PerplexityClient.queryStreamable": {"fullname": "perplexipy.PerplexityClient.queryStreamable", "modulename": "perplexipy", "qualname": "PerplexityClient.queryStreamable", "kind": "function", "doc": "<p>Send a query and return a long, streamable response.</p>\n\n<h2 id=\"arguments\">Arguments</h2>\n\n<pre><code>query\n</code></pre>\n\n<p>A string with the query in one of the model's supported languages.</p>\n\n<h2 id=\"returns\">Returns</h2>\n\n<p>Returns a <code>perplexipy.Responses</code> object for streaming the textual\nresponses from the client.  The response strips all metadata and returns\nonly content strings, for simpler and easier integration.</p>\n\n<h2 id=\"raises\">Raises</h2>\n\n<pre><code>Exception\n</code></pre>\n\n<p>An <code>openai.BadRequestError</code> or similar if the query is malformed or has\nsomething other than text data.  The error raised passes through\nwhatever the API raised.</p>\n\n<p>In most cases, the API returns <code>openai.BadRequestError</code>.</p>\n\n<pre><code>PerplexityClientError\n</code></pre>\n\n<p>If the query is <code>None</code> or empty.</p>\n", "signature": "<span class=\"signature pdoc-code condensed\">(<span class=\"param\"><span class=\"bp\">self</span>, </span><span class=\"param\"><span class=\"n\">query</span><span class=\"p\">:</span> <span class=\"nb\">str</span></span><span class=\"return-annotation\">) -> <span class=\"n\">perplexipy</span><span class=\"o\">.</span><span class=\"n\">responses</span><span class=\"o\">.</span><span class=\"n\">Responses</span>:</span></span>", "funcdef": "def"}, "perplexipy.PerplexityClient.models": {"fullname": "perplexipy.PerplexityClient.models", "modulename": "perplexipy", "qualname": "PerplexityClient.models", "kind": "variable", "doc": "<p>Provide a dictionary of the models supported by Perplexity listed in:</p>\n\n<p><a href=\"https://docs.perplexity.ai/docs/model-cards\">https://docs.perplexity.ai/docs/model-cards</a></p>\n\n<h2 id=\"returns\">Returns</h2>\n\n<p>A dictionary of supported models as the key, with a <code>perplexypy.ModelInfo</code>\nnamed tuple with the model capabilities description.  The model\ninformation attributes are:</p>\n\n<ul>\n<li><code>parameterCount</code></li>\n<li><code>contextLength</code></li>\n<li><code>modelType</code></li>\n<li><code>availability</code></li>\n</ul>\n"}, "perplexipy.PerplexityClient.model": {"fullname": "perplexipy.PerplexityClient.model", "modulename": "perplexipy", "qualname": "PerplexityClient.model", "kind": "variable", "doc": "<p>Return the model the client uses for requesting responses from the\nservice provider.  Its default value is:  <code>PERPLEXITY_DEFAULT_MODEL</code>.</p>\n", "annotation": ": str"}, "perplexipy.codex": {"fullname": "perplexipy.codex", "modulename": "perplexipy.codex", "kind": "module", "doc": "<p></p>\n"}, "perplexipy.codex.DEFAULT_MODEL_NAME": {"fullname": "perplexipy.codex.DEFAULT_MODEL_NAME", "modulename": "perplexipy.codex", "qualname": "DEFAULT_MODEL_NAME", "kind": "variable", "doc": "<p></p>\n", "default_value": "&#x27;mixtral-8x7b-instruct&#x27;"}, "perplexipy.codex.CodexREPL": {"fullname": "perplexipy.codex.CodexREPL", "modulename": "perplexipy.codex", "qualname": "CodexREPL", "kind": "class", "doc": "<p></p>\n"}, "perplexipy.codex.CodexREPL.core": {"fullname": "perplexipy.codex.CodexREPL.core", "modulename": "perplexipy.codex", "qualname": "CodexREPL.core", "kind": "function", "doc": "<p>Send a user query to the model for processing.</p>\n\n<h2 id=\"arguments\">Arguments</h2>\n\n<pre><code>userQuery\n</code></pre>\n\n<p>A string with the user query, most often a programming question.</p>\n\n<h2 id=\"returns\">Returns</h2>\n\n<p>The result of the query, or <code>None</code> if the query was empty.</p>\n", "signature": "<span class=\"signature pdoc-code condensed\">(<span class=\"param\"><span class=\"bp\">self</span>, </span><span class=\"param\"><span class=\"n\">userQuery</span><span class=\"p\">:</span> <span class=\"nb\">str</span></span><span class=\"return-annotation\">) -> <span class=\"nb\">str</span>:</span></span>", "funcdef": "def"}, "perplexipy.codex.CodexREPL.activeModel": {"fullname": "perplexipy.codex.CodexREPL.activeModel", "modulename": "perplexipy.codex", "qualname": "CodexREPL.activeModel", "kind": "function", "doc": "<p></p>\n", "signature": "<span class=\"signature pdoc-code condensed\">(<span class=\"param\"><span class=\"bp\">self</span>, </span><span class=\"param\"><span class=\"n\">modelID</span><span class=\"p\">:</span> <span class=\"nb\">int</span> <span class=\"o\">=</span> <span class=\"mi\">0</span></span><span class=\"return-annotation\">) -> <span class=\"nb\">str</span>:</span></span>", "funcdef": "def"}, "perplexipy.codex.CodexREPL.editingMode": {"fullname": "perplexipy.codex.CodexREPL.editingMode", "modulename": "perplexipy.codex", "qualname": "CodexREPL.editingMode", "kind": "function", "doc": "<p></p>\n", "signature": "<span class=\"signature pdoc-code multiline\">(<span class=\"param\">\t<span class=\"bp\">self</span>,</span><span class=\"param\">\t<span class=\"n\">session</span><span class=\"p\">:</span> <span class=\"n\">prompt_toolkit</span><span class=\"o\">.</span><span class=\"n\">shortcuts</span><span class=\"o\">.</span><span class=\"n\">prompt</span><span class=\"o\">.</span><span class=\"n\">PromptSession</span>,</span><span class=\"param\">\t<span class=\"n\">mode</span><span class=\"o\">=</span><span class=\"kc\">None</span></span><span class=\"return-annotation\">) -> <span class=\"n\">prompt_toolkit</span><span class=\"o\">.</span><span class=\"n\">shortcuts</span><span class=\"o\">.</span><span class=\"n\">prompt</span><span class=\"o\">.</span><span class=\"n\">PromptSession</span>:</span></span>", "funcdef": "def"}, "perplexipy.codex.CodexREPL.run": {"fullname": "perplexipy.codex.CodexREPL.run", "modulename": "perplexipy.codex", "qualname": "CodexREPL.run", "kind": "function", "doc": "<p></p>\n", "signature": "<span class=\"signature pdoc-code condensed\">(<span class=\"param\"><span class=\"bp\">self</span></span><span class=\"return-annotation\">):</span></span>", "funcdef": "def"}, "perplexipy.codex.codexCore": {"fullname": "perplexipy.codex.codexCore", "modulename": "perplexipy.codex", "qualname": "codexCore", "kind": "function", "doc": "<p>Send a user query to the model for processing.</p>\n\n<h2 id=\"arguments\">Arguments</h2>\n\n<pre><code>userQuery\n</code></pre>\n\n<p>A string with the user query, most often a programming question.</p>\n\n<h2 id=\"returns\">Returns</h2>\n\n<p>The result of the query, or <code>None</code> if the query was empty.</p>\n", "signature": "<span class=\"signature pdoc-code condensed\">(<span class=\"param\"><span class=\"n\">userQuery</span><span class=\"p\">:</span> <span class=\"nb\">str</span></span><span class=\"return-annotation\">) -> <span class=\"nb\">str</span>:</span></span>", "funcdef": "def"}, "perplexipy.codex.codex": {"fullname": "perplexipy.codex.codex", "modulename": "perplexipy.codex", "qualname": "codex", "kind": "variable", "doc": "<p>Process a command line query and display the result to the console.</p>\n\n<h2 id=\"arguments\">Arguments</h2>\n\n<pre><code>tokens\n</code></pre>\n\n<p>A list of tokens that will be assembled as a single string for\nprocessing.</p>\n\n<h2 id=\"returns\">Returns</h2>\n\n<p>A string with the response to the query, after displaying it to the\nconsole.</p>\n", "default_value": "&lt;Command codex&gt;"}, "perplexipy.errors": {"fullname": "perplexipy.errors", "modulename": "perplexipy.errors", "kind": "module", "doc": "<p></p>\n"}, "perplexipy.errors.PerplexityClientError": {"fullname": "perplexipy.errors.PerplexityClientError", "modulename": "perplexipy.errors", "qualname": "PerplexityClientError", "kind": "class", "doc": "<p>Perplexity client generic errors, for cleaner exception handling.</p>\n", "bases": "builtins.Exception"}, "perplexipy.errors.PerplexityClientError.__init__": {"fullname": "perplexipy.errors.PerplexityClientError.__init__", "modulename": "perplexipy.errors", "qualname": "PerplexityClientError.__init__", "kind": "function", "doc": "<p></p>\n", "signature": "<span class=\"signature pdoc-code condensed\">(<span class=\"param\"><span class=\"n\">errorMessage</span></span>)</span>"}, "perplexipy.responses": {"fullname": "perplexipy.responses", "modulename": "perplexipy.responses", "kind": "module", "doc": "<p></p>\n"}, "perplexipy.responses.Responses": {"fullname": "perplexipy.responses.Responses", "modulename": "perplexipy.responses", "qualname": "Responses", "kind": "class", "doc": "<p>Encapsulates all the streaming responses from a query and enables access to\nit using a purpose-built iterable.  Strips all the OpenAI response metadata\nand returns only the textual response.  It's a streaming iterable,\nopen-ended.</p>\n"}, "perplexipy.responses.Responses.__init__": {"fullname": "perplexipy.responses.Responses.__init__", "modulename": "perplexipy.responses", "qualname": "Responses.__init__", "kind": "function", "doc": "<p></p>\n", "signature": "<span class=\"signature pdoc-code condensed\">(<span class=\"param\"><span class=\"n\">responsesStream</span></span>)</span>"}}, "docInfo": {"perplexipy": {"qualname": 0, "fullname": 1, "annotation": 0, "default_value": 0, "signature": 0, "bases": 0, "doc": 3}, "perplexipy.PERPLEXITY_API_KEY": {"qualname": 3, "fullname": 4, "annotation": 0, "default_value": 3, "signature": 0, "bases": 0, "doc": 50}, "perplexipy.PERPLEXITY_API_PREFIX": {"qualname": 3, "fullname": 4, "annotation": 0, "default_value": 5, "signature": 0, "bases": 0, "doc": 3}, "perplexipy.PERPLEXITY_API_URL": {"qualname": 3, "fullname": 4, "annotation": 0, "default_value": 7, "signature": 0, "bases": 0, "doc": 3}, "perplexipy.PERPLEXITY_DEFAULT_MODEL": {"qualname": 3, "fullname": 4, "annotation": 0, "default_value": 10, "signature": 0, "bases": 0, "doc": 3}, "perplexipy.PERPLEXITY_DEFAULT_ROLE": {"qualname": 3, "fullname": 4, "annotation": 0, "default_value": 5, "signature": 0, "bases": 0, "doc": 3}, "perplexipy.PERPLEXITY_TIMEOUT": {"qualname": 2, "fullname": 3, "annotation": 0, "default_value": 2, "signature": 0, "bases": 0, "doc": 3}, "perplexipy.PERPLEXITY_VALID_ROLES": {"qualname": 3, "fullname": 4, "annotation": 0, "default_value": 11, "signature": 0, "bases": 0, "doc": 23}, "perplexipy.ModelInfo": {"qualname": 1, "fullname": 2, "annotation": 0, "default_value": 0, "signature": 0, "bases": 2, "doc": 8}, "perplexipy.ModelInfo.__init__": {"qualname": 3, "fullname": 4, "annotation": 0, "default_value": 0, "signature": 24, "bases": 0, "doc": 12}, "perplexipy.ModelInfo.parameterCount": {"qualname": 2, "fullname": 3, "annotation": 0, "default_value": 0, "signature": 0, "bases": 0, "doc": 7}, "perplexipy.ModelInfo.contextLength": {"qualname": 2, "fullname": 3, "annotation": 0, "default_value": 0, "signature": 0, "bases": 0, "doc": 7}, "perplexipy.ModelInfo.modelType": {"qualname": 2, "fullname": 3, "annotation": 0, "default_value": 0, "signature": 0, "bases": 0, "doc": 7}, "perplexipy.ModelInfo.availability": {"qualname": 2, "fullname": 3, "annotation": 0, "default_value": 0, "signature": 0, "bases": 0, "doc": 7}, "perplexipy.PerplexityClient": {"qualname": 1, "fullname": 2, "annotation": 0, "default_value": 0, "signature": 0, "bases": 0, "doc": 22}, "perplexipy.PerplexityClient.__init__": {"qualname": 3, "fullname": 4, "annotation": 0, "default_value": 0, "signature": 50, "bases": 0, "doc": 187}, "perplexipy.PerplexityClient.query": {"qualname": 2, "fullname": 3, "annotation": 0, "default_value": 0, "signature": 24, "bases": 0, "doc": 126}, "perplexipy.PerplexityClient.queryBatch": {"qualname": 2, "fullname": 3, "annotation": 0, "default_value": 0, "signature": 24, "bases": 0, "doc": 128}, "perplexipy.PerplexityClient.queryStreamable": {"qualname": 2, "fullname": 3, "annotation": 0, "default_value": 0, "signature": 34, "bases": 0, "doc": 144}, "perplexipy.PerplexityClient.models": {"qualname": 2, "fullname": 3, "annotation": 0, "default_value": 0, "signature": 0, "bases": 0, "doc": 76}, "perplexipy.PerplexityClient.model": {"qualname": 2, "fullname": 3, "annotation": 2, "default_value": 0, "signature": 0, "bases": 0, "doc": 25}, "perplexipy.codex": {"qualname": 0, "fullname": 2, "annotation": 0, "default_value": 0, "signature": 0, "bases": 0, "doc": 3}, "perplexipy.codex.DEFAULT_MODEL_NAME": {"qualname": 3, "fullname": 5, "annotation": 0, "default_value": 7, "signature": 0, "bases": 0, "doc": 3}, "perplexipy.codex.CodexREPL": {"qualname": 1, "fullname": 3, "annotation": 0, "default_value": 0, "signature": 0, "bases": 0, "doc": 3}, "perplexipy.codex.CodexREPL.core": {"qualname": 2, "fullname": 4, "annotation": 0, "default_value": 0, "signature": 24, "bases": 0, "doc": 55}, "perplexipy.codex.CodexREPL.activeModel": {"qualname": 2, "fullname": 4, "annotation": 0, "default_value": 0, "signature": 31, "bases": 0, "doc": 3}, "perplexipy.codex.CodexREPL.editingMode": {"qualname": 2, "fullname": 4, "annotation": 0, "default_value": 0, "signature": 69, "bases": 0, "doc": 3}, "perplexipy.codex.CodexREPL.run": {"qualname": 2, "fullname": 4, "annotation": 0, "default_value": 0, "signature": 11, "bases": 0, "doc": 3}, "perplexipy.codex.codexCore": {"qualname": 1, "fullname": 3, "annotation": 0, "default_value": 0, "signature": 19, "bases": 0, "doc": 55}, "perplexipy.codex.codex": {"qualname": 1, "fullname": 3, "annotation": 0, "default_value": 6, "signature": 0, "bases": 0, "doc": 61}, "perplexipy.errors": {"qualname": 0, "fullname": 2, "annotation": 0, "default_value": 0, "signature": 0, "bases": 0, "doc": 3}, "perplexipy.errors.PerplexityClientError": {"qualname": 1, "fullname": 3, "annotation": 0, "default_value": 0, "signature": 0, "bases": 2, "doc": 11}, "perplexipy.errors.PerplexityClientError.__init__": {"qualname": 3, "fullname": 5, "annotation": 0, "default_value": 0, "signature": 9, "bases": 0, "doc": 3}, "perplexipy.responses": {"qualname": 0, "fullname": 2, "annotation": 0, "default_value": 0, "signature": 0, "bases": 0, "doc": 3}, "perplexipy.responses.Responses": {"qualname": 1, "fullname": 3, "annotation": 0, "default_value": 0, "signature": 0, "bases": 0, "doc": 40}, "perplexipy.responses.Responses.__init__": {"qualname": 3, "fullname": 5, "annotation": 0, "default_value": 0, "signature": 9, "bases": 0, "doc": 3}}, "length": 36, "save": true}, "index": {"qualname": {"root": {"docs": {"perplexipy.ModelInfo.__init__": {"tf": 1}, "perplexipy.PerplexityClient.__init__": {"tf": 1}, "perplexipy.errors.PerplexityClientError.__init__": {"tf": 1}, "perplexipy.responses.Responses.__init__": {"tf": 1}}, "df": 4, "p": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "x": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}, "perplexipy.PERPLEXITY_API_PREFIX": {"tf": 1}, "perplexipy.PERPLEXITY_API_URL": {"tf": 1}, "perplexipy.PERPLEXITY_DEFAULT_MODEL": {"tf": 1}, "perplexipy.PERPLEXITY_DEFAULT_ROLE": {"tf": 1}, "perplexipy.PERPLEXITY_TIMEOUT": {"tf": 1}, "perplexipy.PERPLEXITY_VALID_ROLES": {"tf": 1}}, "df": 7, "c": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.PerplexityClient": {"tf": 1}, "perplexipy.PerplexityClient.__init__": {"tf": 1}, "perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}, "perplexipy.PerplexityClient.models": {"tf": 1}, "perplexipy.PerplexityClient.model": {"tf": 1}}, "df": 7, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {"perplexipy.errors.PerplexityClientError": {"tf": 1}, "perplexipy.errors.PerplexityClientError.__init__": {"tf": 1}}, "df": 2}}}}}}}}}}}}}}}}}}}}, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "f": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "x": {"docs": {"perplexipy.PERPLEXITY_API_PREFIX": {"tf": 1}}, "df": 1}}}}}, "a": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.ModelInfo.parameterCount": {"tf": 1}}, "df": 1}}}}}}}}}}}}}}, "a": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "i": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}, "perplexipy.PERPLEXITY_API_PREFIX": {"tf": 1}, "perplexipy.PERPLEXITY_API_URL": {"tf": 1}}, "df": 3}}, "v": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy.ModelInfo.availability": {"tf": 1}}, "df": 1}}}}}}}}}}}, "c": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "v": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "l": {"docs": {"perplexipy.codex.CodexREPL.activeModel": {"tf": 1}}, "df": 1}}}}}}}}}}}, "k": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}}, "df": 1}}}, "u": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "l": {"docs": {"perplexipy.PERPLEXITY_API_URL": {"tf": 1}}, "df": 1}}}, "d": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "f": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.PERPLEXITY_DEFAULT_MODEL": {"tf": 1}, "perplexipy.PERPLEXITY_DEFAULT_ROLE": {"tf": 1}, "perplexipy.codex.DEFAULT_MODEL_NAME": {"tf": 1}}, "df": 3}}}}}}}, "m": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "l": {"docs": {"perplexipy.PERPLEXITY_DEFAULT_MODEL": {"tf": 1}, "perplexipy.PerplexityClient.model": {"tf": 1}, "perplexipy.codex.DEFAULT_MODEL_NAME": {"tf": 1}}, "df": 3, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "f": {"docs": {}, "df": 0, "o": {"docs": {"perplexipy.ModelInfo": {"tf": 1}, "perplexipy.ModelInfo.__init__": {"tf": 1}, "perplexipy.ModelInfo.parameterCount": {"tf": 1}, "perplexipy.ModelInfo.contextLength": {"tf": 1}, "perplexipy.ModelInfo.modelType": {"tf": 1}, "perplexipy.ModelInfo.availability": {"tf": 1}}, "df": 6}}}}, "t": {"docs": {}, "df": 0, "y": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.ModelInfo.modelType": {"tf": 1}}, "df": 1}}}}, "s": {"docs": {"perplexipy.PerplexityClient.models": {"tf": 1}}, "df": 1}}}}}}, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PERPLEXITY_DEFAULT_ROLE": {"tf": 1}}, "df": 1, "s": {"docs": {"perplexipy.PERPLEXITY_VALID_ROLES": {"tf": 1}}, "df": 1}}}}, "u": {"docs": {}, "df": 0, "n": {"docs": {"perplexipy.codex.CodexREPL.run": {"tf": 1}}, "df": 1}}, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.responses.Responses": {"tf": 1}, "perplexipy.responses.Responses.__init__": {"tf": 1}}, "df": 2}}}}}}}}}, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.PERPLEXITY_TIMEOUT": {"tf": 1}}, "df": 1}}}}}}}, "v": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "d": {"docs": {"perplexipy.PERPLEXITY_VALID_ROLES": {"tf": 1}}, "df": 1}}}}}, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.ModelInfo.__init__": {"tf": 1}, "perplexipy.PerplexityClient.__init__": {"tf": 1}, "perplexipy.errors.PerplexityClientError.__init__": {"tf": 1}, "perplexipy.responses.Responses.__init__": {"tf": 1}}, "df": 4}}}}, "c": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "x": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "h": {"docs": {"perplexipy.ModelInfo.contextLength": {"tf": 1}}, "df": 1}}}}}}}}}}}, "d": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "x": {"docs": {"perplexipy.codex.codex": {"tf": 1}}, "df": 1, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "l": {"docs": {"perplexipy.codex.CodexREPL": {"tf": 1}, "perplexipy.codex.CodexREPL.core": {"tf": 1}, "perplexipy.codex.CodexREPL.activeModel": {"tf": 1}, "perplexipy.codex.CodexREPL.editingMode": {"tf": 1}, "perplexipy.codex.CodexREPL.run": {"tf": 1}}, "df": 5}}}}, "c": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.codex.codexCore": {"tf": 1}}, "df": 1}}}}}}}, "r": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.codex.CodexREPL.core": {"tf": 1}}, "df": 1}}}}, "q": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1}}, "df": 1, "b": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "h": {"docs": {"perplexipy.PerplexityClient.queryBatch": {"tf": 1}}, "df": 1}}}}}, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PerplexityClient.queryStreamable": {"tf": 1}}, "df": 1}}}}}}}}}}}}}}}, "n": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.codex.DEFAULT_MODEL_NAME": {"tf": 1}}, "df": 1}}}}, "e": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.codex.CodexREPL.editingMode": {"tf": 1}}, "df": 1}}}}}}}}}}}}}, "fullname": {"root": {"docs": {"perplexipy.ModelInfo.__init__": {"tf": 1}, "perplexipy.PerplexityClient.__init__": {"tf": 1}, "perplexipy.errors.PerplexityClientError.__init__": {"tf": 1}, "perplexipy.responses.Responses.__init__": {"tf": 1}}, "df": 4, "p": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "x": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy": {"tf": 1}, "perplexipy.PERPLEXITY_API_KEY": {"tf": 1}, "perplexipy.PERPLEXITY_API_PREFIX": {"tf": 1}, "perplexipy.PERPLEXITY_API_URL": {"tf": 1}, "perplexipy.PERPLEXITY_DEFAULT_MODEL": {"tf": 1}, "perplexipy.PERPLEXITY_DEFAULT_ROLE": {"tf": 1}, "perplexipy.PERPLEXITY_TIMEOUT": {"tf": 1}, "perplexipy.PERPLEXITY_VALID_ROLES": {"tf": 1}, "perplexipy.ModelInfo": {"tf": 1}, "perplexipy.ModelInfo.__init__": {"tf": 1}, "perplexipy.ModelInfo.parameterCount": {"tf": 1}, "perplexipy.ModelInfo.contextLength": {"tf": 1}, "perplexipy.ModelInfo.modelType": {"tf": 1}, "perplexipy.ModelInfo.availability": {"tf": 1}, "perplexipy.PerplexityClient": {"tf": 1}, "perplexipy.PerplexityClient.__init__": {"tf": 1}, "perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}, "perplexipy.PerplexityClient.models": {"tf": 1}, "perplexipy.PerplexityClient.model": {"tf": 1}, "perplexipy.codex": {"tf": 1}, "perplexipy.codex.DEFAULT_MODEL_NAME": {"tf": 1}, "perplexipy.codex.CodexREPL": {"tf": 1}, "perplexipy.codex.CodexREPL.core": {"tf": 1}, "perplexipy.codex.CodexREPL.activeModel": {"tf": 1}, "perplexipy.codex.CodexREPL.editingMode": {"tf": 1}, "perplexipy.codex.CodexREPL.run": {"tf": 1}, "perplexipy.codex.codexCore": {"tf": 1}, "perplexipy.codex.codex": {"tf": 1}, "perplexipy.errors": {"tf": 1}, "perplexipy.errors.PerplexityClientError": {"tf": 1}, "perplexipy.errors.PerplexityClientError.__init__": {"tf": 1}, "perplexipy.responses": {"tf": 1}, "perplexipy.responses.Responses": {"tf": 1}, "perplexipy.responses.Responses.__init__": {"tf": 1}}, "df": 36}}, "t": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}, "perplexipy.PERPLEXITY_API_PREFIX": {"tf": 1}, "perplexipy.PERPLEXITY_API_URL": {"tf": 1}, "perplexipy.PERPLEXITY_DEFAULT_MODEL": {"tf": 1}, "perplexipy.PERPLEXITY_DEFAULT_ROLE": {"tf": 1}, "perplexipy.PERPLEXITY_TIMEOUT": {"tf": 1}, "perplexipy.PERPLEXITY_VALID_ROLES": {"tf": 1}}, "df": 7, "c": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.PerplexityClient": {"tf": 1}, "perplexipy.PerplexityClient.__init__": {"tf": 1}, "perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}, "perplexipy.PerplexityClient.models": {"tf": 1}, "perplexipy.PerplexityClient.model": {"tf": 1}}, "df": 7, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {"perplexipy.errors.PerplexityClientError": {"tf": 1}, "perplexipy.errors.PerplexityClientError.__init__": {"tf": 1}}, "df": 2}}}}}}}}}}}}}}}}}}}}, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "f": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "x": {"docs": {"perplexipy.PERPLEXITY_API_PREFIX": {"tf": 1}}, "df": 1}}}}}, "a": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.ModelInfo.parameterCount": {"tf": 1}}, "df": 1}}}}}}}}}}}}}}, "a": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "i": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}, "perplexipy.PERPLEXITY_API_PREFIX": {"tf": 1}, "perplexipy.PERPLEXITY_API_URL": {"tf": 1}}, "df": 3}}, "v": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy.ModelInfo.availability": {"tf": 1}}, "df": 1}}}}}}}}}}}, "c": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "v": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "l": {"docs": {"perplexipy.codex.CodexREPL.activeModel": {"tf": 1}}, "df": 1}}}}}}}}}}}, "k": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}}, "df": 1}}}, "u": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "l": {"docs": {"perplexipy.PERPLEXITY_API_URL": {"tf": 1}}, "df": 1}}}, "d": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "f": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.PERPLEXITY_DEFAULT_MODEL": {"tf": 1}, "perplexipy.PERPLEXITY_DEFAULT_ROLE": {"tf": 1}, "perplexipy.codex.DEFAULT_MODEL_NAME": {"tf": 1}}, "df": 3}}}}}}}, "m": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "l": {"docs": {"perplexipy.PERPLEXITY_DEFAULT_MODEL": {"tf": 1}, "perplexipy.PerplexityClient.model": {"tf": 1}, "perplexipy.codex.DEFAULT_MODEL_NAME": {"tf": 1}}, "df": 3, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "f": {"docs": {}, "df": 0, "o": {"docs": {"perplexipy.ModelInfo": {"tf": 1}, "perplexipy.ModelInfo.__init__": {"tf": 1}, "perplexipy.ModelInfo.parameterCount": {"tf": 1}, "perplexipy.ModelInfo.contextLength": {"tf": 1}, "perplexipy.ModelInfo.modelType": {"tf": 1}, "perplexipy.ModelInfo.availability": {"tf": 1}}, "df": 6}}}}, "t": {"docs": {}, "df": 0, "y": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.ModelInfo.modelType": {"tf": 1}}, "df": 1}}}}, "s": {"docs": {"perplexipy.PerplexityClient.models": {"tf": 1}}, "df": 1}}}}}}, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PERPLEXITY_DEFAULT_ROLE": {"tf": 1}}, "df": 1, "s": {"docs": {"perplexipy.PERPLEXITY_VALID_ROLES": {"tf": 1}}, "df": 1}}}}, "u": {"docs": {}, "df": 0, "n": {"docs": {"perplexipy.codex.CodexREPL.run": {"tf": 1}}, "df": 1}}, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.responses": {"tf": 1}, "perplexipy.responses.Responses": {"tf": 1.4142135623730951}, "perplexipy.responses.Responses.__init__": {"tf": 1.4142135623730951}}, "df": 3}}}}}}}}}, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.PERPLEXITY_TIMEOUT": {"tf": 1}}, "df": 1}}}}}}}, "v": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "d": {"docs": {"perplexipy.PERPLEXITY_VALID_ROLES": {"tf": 1}}, "df": 1}}}}}, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.ModelInfo.__init__": {"tf": 1}, "perplexipy.PerplexityClient.__init__": {"tf": 1}, "perplexipy.errors.PerplexityClientError.__init__": {"tf": 1}, "perplexipy.responses.Responses.__init__": {"tf": 1}}, "df": 4}}}}, "c": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "x": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "h": {"docs": {"perplexipy.ModelInfo.contextLength": {"tf": 1}}, "df": 1}}}}}}}}}}}, "d": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "x": {"docs": {"perplexipy.codex": {"tf": 1}, "perplexipy.codex.DEFAULT_MODEL_NAME": {"tf": 1}, "perplexipy.codex.CodexREPL": {"tf": 1}, "perplexipy.codex.CodexREPL.core": {"tf": 1}, "perplexipy.codex.CodexREPL.activeModel": {"tf": 1}, "perplexipy.codex.CodexREPL.editingMode": {"tf": 1}, "perplexipy.codex.CodexREPL.run": {"tf": 1}, "perplexipy.codex.codexCore": {"tf": 1}, "perplexipy.codex.codex": {"tf": 1.4142135623730951}}, "df": 9, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "l": {"docs": {"perplexipy.codex.CodexREPL": {"tf": 1}, "perplexipy.codex.CodexREPL.core": {"tf": 1}, "perplexipy.codex.CodexREPL.activeModel": {"tf": 1}, "perplexipy.codex.CodexREPL.editingMode": {"tf": 1}, "perplexipy.codex.CodexREPL.run": {"tf": 1}}, "df": 5}}}}, "c": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.codex.codexCore": {"tf": 1}}, "df": 1}}}}}}}, "r": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.codex.CodexREPL.core": {"tf": 1}}, "df": 1}}}}, "q": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1}}, "df": 1, "b": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "h": {"docs": {"perplexipy.PerplexityClient.queryBatch": {"tf": 1}}, "df": 1}}}}}, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PerplexityClient.queryStreamable": {"tf": 1}}, "df": 1}}}}}}}}}}}}}}}, "n": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.codex.DEFAULT_MODEL_NAME": {"tf": 1}}, "df": 1}}}}, "e": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.codex.CodexREPL.editingMode": {"tf": 1}}, "df": 1}}}}}}}}}}, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.errors": {"tf": 1}, "perplexipy.errors.PerplexityClientError": {"tf": 1}, "perplexipy.errors.PerplexityClientError.__init__": {"tf": 1}}, "df": 3}}}}}}}}, "annotation": {"root": {"docs": {"perplexipy.PerplexityClient.model": {"tf": 1}}, "df": 1, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "r": {"docs": {"perplexipy.PerplexityClient.model": {"tf": 1}}, "df": 1}}}}}, "default_value": {"root": {"0": {"docs": {"perplexipy.PERPLEXITY_TIMEOUT": {"tf": 1}}, "df": 1}, "3": {"0": {"docs": {"perplexipy.PERPLEXITY_TIMEOUT": {"tf": 1}}, "df": 1}, "2": {"docs": {}, "df": 0, "k": {"docs": {"perplexipy.PERPLEXITY_DEFAULT_MODEL": {"tf": 1}}, "df": 1}}, "docs": {"perplexipy.PERPLEXITY_DEFAULT_MODEL": {"tf": 1}}, "df": 1}, "8": {"docs": {}, "df": 0, "x": {"7": {"docs": {}, "df": 0, "b": {"docs": {"perplexipy.codex.DEFAULT_MODEL_NAME": {"tf": 1}}, "df": 1}}, "docs": {}, "df": 0}}, "docs": {"perplexipy.PERPLEXITY_API_PREFIX": {"tf": 1.4142135623730951}, "perplexipy.PERPLEXITY_API_URL": {"tf": 1.4142135623730951}, "perplexipy.PERPLEXITY_DEFAULT_MODEL": {"tf": 1.4142135623730951}, "perplexipy.PERPLEXITY_DEFAULT_ROLE": {"tf": 1.4142135623730951}, "perplexipy.PERPLEXITY_VALID_ROLES": {"tf": 1.4142135623730951}, "perplexipy.codex.DEFAULT_MODEL_NAME": {"tf": 1.4142135623730951}, "perplexipy.codex.codex": {"tf": 1.4142135623730951}}, "df": 7, "p": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "x": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}, "perplexipy.PERPLEXITY_API_URL": {"tf": 1}}, "df": 2}}}}}}}}}, "p": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "x": {"docs": {"perplexipy.PERPLEXITY_API_PREFIX": {"tf": 1}}, "df": 1}}}}, "a": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "i": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}}, "df": 1}}, "i": {"docs": {"perplexipy.PERPLEXITY_API_URL": {"tf": 1}}, "df": 1}, "s": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.PERPLEXITY_VALID_ROLES": {"tf": 1}}, "df": 1}}}}}}}}}, "k": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}}, "df": 1}}}, "x": {"2": {"7": {"docs": {"perplexipy.PERPLEXITY_API_PREFIX": {"tf": 1.4142135623730951}, "perplexipy.PERPLEXITY_API_URL": {"tf": 1.4142135623730951}, "perplexipy.PERPLEXITY_DEFAULT_MODEL": {"tf": 1.4142135623730951}, "perplexipy.PERPLEXITY_DEFAULT_ROLE": {"tf": 1.4142135623730951}, "perplexipy.PERPLEXITY_VALID_ROLES": {"tf": 2.449489742783178}, "perplexipy.codex.DEFAULT_MODEL_NAME": {"tf": 1.4142135623730951}}, "df": 6}, "docs": {}, "df": 0}, "docs": {}, "df": 0}, "h": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, ":": {"docs": {}, "df": 0, "/": {"docs": {}, "df": 0, "/": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "i": {"docs": {"perplexipy.PERPLEXITY_API_URL": {"tf": 1}}, "df": 1}}}}}}}}}}}, "l": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "a": {"docs": {"perplexipy.PERPLEXITY_DEFAULT_MODEL": {"tf": 1}}, "df": 1}}}}, "t": {"docs": {"perplexipy.codex.codex": {"tf": 1}}, "df": 1}}, "s": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "r": {"docs": {"perplexipy.PERPLEXITY_DEFAULT_MODEL": {"tf": 1}}, "df": 1}}}}, "m": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "l": {"docs": {"perplexipy.PERPLEXITY_DEFAULT_MODEL": {"tf": 1}}, "df": 1}}}}, "y": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "m": {"docs": {"perplexipy.PERPLEXITY_VALID_ROLES": {"tf": 1}}, "df": 1}}}}}}, "c": {"docs": {}, "df": 0, "h": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.PERPLEXITY_DEFAULT_MODEL": {"tf": 1}}, "df": 1}}}, "o": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "d": {"docs": {"perplexipy.codex.codex": {"tf": 1}}, "df": 1}}}}}, "d": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "x": {"docs": {"perplexipy.codex.codex": {"tf": 1}}, "df": 1}}}}}, "u": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {"perplexipy.PERPLEXITY_DEFAULT_ROLE": {"tf": 1}, "perplexipy.PERPLEXITY_VALID_ROLES": {"tf": 1}}, "df": 2}}}}, "m": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "x": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "l": {"docs": {"perplexipy.codex.DEFAULT_MODEL_NAME": {"tf": 1}}, "df": 1}}}}}}}, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.codex.DEFAULT_MODEL_NAME": {"tf": 1}}, "df": 1}}}}}}}}, "g": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.codex.codex": {"tf": 1}}, "df": 1}}}}, "signature": {"root": {"0": {"docs": {"perplexipy.codex.CodexREPL.activeModel": {"tf": 1}}, "df": 1}, "3": {"9": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1.4142135623730951}}, "df": 1}, "docs": {}, "df": 0}, "docs": {"perplexipy.ModelInfo.__init__": {"tf": 4.47213595499958}, "perplexipy.PerplexityClient.__init__": {"tf": 6.244997998398398}, "perplexipy.PerplexityClient.query": {"tf": 4.47213595499958}, "perplexipy.PerplexityClient.queryBatch": {"tf": 4.47213595499958}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 5.291502622129181}, "perplexipy.codex.CodexREPL.core": {"tf": 4.47213595499958}, "perplexipy.codex.CodexREPL.activeModel": {"tf": 5.0990195135927845}, "perplexipy.codex.CodexREPL.editingMode": {"tf": 7.416198487095663}, "perplexipy.codex.CodexREPL.run": {"tf": 3.1622776601683795}, "perplexipy.codex.codexCore": {"tf": 4}, "perplexipy.errors.PerplexityClientError.__init__": {"tf": 2.8284271247461903}, "perplexipy.responses.Responses.__init__": {"tf": 2.8284271247461903}}, "df": 12, "p": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.ModelInfo.__init__": {"tf": 1}}, "df": 1}}}}}}}}}}}}}, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "x": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}, "p": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy.PerplexityClient.queryStreamable": {"tf": 1}}, "df": 1}}}}}}}}}, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.codex.CodexREPL.editingMode": {"tf": 2}}, "df": 1, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"perplexipy.codex.CodexREPL.editingMode": {"tf": 1.4142135623730951}}, "df": 1}}}}}}}}}}}}}, "c": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "x": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "h": {"docs": {"perplexipy.ModelInfo.__init__": {"tf": 1}}, "df": 1}}}}}}}}}}}}}, "m": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.codex.CodexREPL.editingMode": {"tf": 1}}, "df": 1, "l": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "y": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.ModelInfo.__init__": {"tf": 1}}, "df": 1}}}}, "i": {"docs": {}, "df": 0, "d": {"docs": {"perplexipy.codex.CodexREPL.activeModel": {"tf": 1}}, "df": 1}}}}}}}, "a": {"docs": {}, "df": 0, "v": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy.ModelInfo.__init__": {"tf": 1}}, "df": 1}}}}}}}}}}}, "i": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}, "k": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "r": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.query": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}, "perplexipy.codex.CodexREPL.core": {"tf": 1.4142135623730951}, "perplexipy.codex.CodexREPL.activeModel": {"tf": 1}, "perplexipy.codex.codexCore": {"tf": 1.4142135623730951}}, "df": 7}}, "e": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "f": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}, "perplexipy.codex.CodexREPL.core": {"tf": 1}, "perplexipy.codex.CodexREPL.activeModel": {"tf": 1}, "perplexipy.codex.CodexREPL.editingMode": {"tf": 1}, "perplexipy.codex.CodexREPL.run": {"tf": 1}}, "df": 7}}, "s": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"perplexipy.codex.CodexREPL.editingMode": {"tf": 1}}, "df": 1}}}}}}, "h": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.codex.CodexREPL.editingMode": {"tf": 1.4142135623730951}}, "df": 1}}}}}}}}}, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}}}}}, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.errors.PerplexityClientError.__init__": {"tf": 1}}, "df": 1}}}}}}}}}}}}, "h": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, ":": {"docs": {}, "df": 0, "/": {"docs": {}, "df": 0, "/": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "i": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}}}}}}}}}, "u": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}}}}}, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "q": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy.codex.CodexREPL.core": {"tf": 1}, "perplexipy.codex.codexCore": {"tf": 1}}, "df": 2}}}}}}}}}, "f": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}}}, "q": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}}, "df": 3}}}}}, "t": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PerplexityClient.queryBatch": {"tf": 1}}, "df": 1}}}}, "o": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "k": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.codex.CodexREPL.editingMode": {"tf": 1.4142135623730951}}, "df": 1}}}}}}}, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.PerplexityClient.queryStreamable": {"tf": 1.4142135623730951}}, "df": 1, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "m": {"docs": {"perplexipy.responses.Responses.__init__": {"tf": 1}}, "df": 1}}}}}}}}}}}}}}}, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.codex.CodexREPL.activeModel": {"tf": 1}}, "df": 1}}}, "n": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.codex.CodexREPL.editingMode": {"tf": 1}}, "df": 1}}}}}}, "bases": {"root": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.ModelInfo": {"tf": 1}, "perplexipy.errors.PerplexityClientError": {"tf": 1}}, "df": 2}}}}}}}}, "t": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.ModelInfo": {"tf": 1}}, "df": 1}}}}}, "e": {"docs": {}, "df": 0, "x": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"perplexipy.errors.PerplexityClientError": {"tf": 1}}, "df": 1}}}}}}}}}}}, "doc": {"root": {"0": {"docs": {"perplexipy.ModelInfo.parameterCount": {"tf": 1}}, "df": 1}, "1": {"docs": {"perplexipy.ModelInfo.contextLength": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}}, "df": 2}, "2": {"docs": {"perplexipy.ModelInfo.modelType": {"tf": 1}}, "df": 1}, "3": {"docs": {"perplexipy.ModelInfo.availability": {"tf": 1}}, "df": 1}, "docs": {"perplexipy": {"tf": 1.7320508075688772}, "perplexipy.PERPLEXITY_API_KEY": {"tf": 3.605551275463989}, "perplexipy.PERPLEXITY_API_PREFIX": {"tf": 1.7320508075688772}, "perplexipy.PERPLEXITY_API_URL": {"tf": 1.7320508075688772}, "perplexipy.PERPLEXITY_DEFAULT_MODEL": {"tf": 1.7320508075688772}, "perplexipy.PERPLEXITY_DEFAULT_ROLE": {"tf": 1.7320508075688772}, "perplexipy.PERPLEXITY_TIMEOUT": {"tf": 1.7320508075688772}, "perplexipy.PERPLEXITY_VALID_ROLES": {"tf": 2.6457513110645907}, "perplexipy.ModelInfo": {"tf": 1.7320508075688772}, "perplexipy.ModelInfo.__init__": {"tf": 1.7320508075688772}, "perplexipy.ModelInfo.parameterCount": {"tf": 1.4142135623730951}, "perplexipy.ModelInfo.contextLength": {"tf": 1.4142135623730951}, "perplexipy.ModelInfo.modelType": {"tf": 1.4142135623730951}, "perplexipy.ModelInfo.availability": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient": {"tf": 1.7320508075688772}, "perplexipy.PerplexityClient.__init__": {"tf": 8.246211251235321}, "perplexipy.PerplexityClient.query": {"tf": 6.708203932499369}, "perplexipy.PerplexityClient.queryBatch": {"tf": 6.708203932499369}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 6.855654600401044}, "perplexipy.PerplexityClient.models": {"tf": 5.656854249492381}, "perplexipy.PerplexityClient.model": {"tf": 2.23606797749979}, "perplexipy.codex": {"tf": 1.7320508075688772}, "perplexipy.codex.DEFAULT_MODEL_NAME": {"tf": 1.7320508075688772}, "perplexipy.codex.CodexREPL": {"tf": 1.7320508075688772}, "perplexipy.codex.CodexREPL.core": {"tf": 4.47213595499958}, "perplexipy.codex.CodexREPL.activeModel": {"tf": 1.7320508075688772}, "perplexipy.codex.CodexREPL.editingMode": {"tf": 1.7320508075688772}, "perplexipy.codex.CodexREPL.run": {"tf": 1.7320508075688772}, "perplexipy.codex.codexCore": {"tf": 4.47213595499958}, "perplexipy.codex.codex": {"tf": 4.242640687119285}, "perplexipy.errors": {"tf": 1.7320508075688772}, "perplexipy.errors.PerplexityClientError": {"tf": 1.7320508075688772}, "perplexipy.errors.PerplexityClientError.__init__": {"tf": 1.7320508075688772}, "perplexipy.responses": {"tf": 1.7320508075688772}, "perplexipy.responses.Responses": {"tf": 1.7320508075688772}, "perplexipy.responses.Responses.__init__": {"tf": 1.7320508075688772}}, "df": 36, "p": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1.4142135623730951}}, "df": 1, "p": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "x": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}, "perplexipy.PerplexityClient.__init__": {"tf": 1.7320508075688772}, "perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.models": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.model": {"tf": 1}, "perplexipy.errors.PerplexityClientError": {"tf": 1}}, "df": 6, "c": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.PerplexityClient": {"tf": 1}, "perplexipy.PerplexityClient.__init__": {"tf": 1.4142135623730951}}, "df": 2, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}, "perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}}, "df": 4}}}}}}}}}}}}}, "p": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}, "perplexipy.PerplexityClient.__init__": {"tf": 1.7320508075688772}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}}, "df": 3}}}, "y": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy.PerplexityClient.models": {"tf": 1}}, "df": 1}}}}}}}}}, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 2}}}}, "f": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "x": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}}}}, "o": {"docs": {}, "df": 0, "v": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PerplexityClient.models": {"tf": 1}}, "df": 1, "r": {"docs": {"perplexipy.PerplexityClient.model": {"tf": 1}}, "df": 1}}}}}, "c": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.codex.codex": {"tf": 1}}, "df": 1, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {"perplexipy.codex.CodexREPL.core": {"tf": 1}, "perplexipy.codex.codexCore": {"tf": 1}, "perplexipy.codex.codex": {"tf": 1}}, "df": 3}}}}}}}, "g": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {"perplexipy.codex.CodexREPL.core": {"tf": 1}, "perplexipy.codex.codexCore": {"tf": 1}}, "df": 2}}}}}}}}}}, "w": {"docs": {}, "df": 0, "d": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}}, "df": 1}}, "a": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.ModelInfo": {"tf": 1}, "perplexipy.ModelInfo.__init__": {"tf": 1}, "perplexipy.PerplexityClient.models": {"tf": 1}}, "df": 3}}}}}}}}}}}}, "s": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}}, "df": 3}}}}}, "u": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.responses.Responses": {"tf": 1}}, "df": 1}}}}}}}, "a": {"docs": {"perplexipy.PERPLEXITY_VALID_ROLES": {"tf": 1}, "perplexipy.PerplexityClient.__init__": {"tf": 2.23606797749979}, "perplexipy.PerplexityClient.query": {"tf": 2.23606797749979}, "perplexipy.PerplexityClient.queryBatch": {"tf": 2.23606797749979}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 2}, "perplexipy.PerplexityClient.models": {"tf": 1.7320508075688772}, "perplexipy.codex.CodexREPL.core": {"tf": 1.7320508075688772}, "perplexipy.codex.codexCore": {"tf": 1.7320508075688772}, "perplexipy.codex.codex": {"tf": 2}, "perplexipy.responses.Responses": {"tf": 1.7320508075688772}}, "df": 10, "p": {"docs": {}, "df": 0, "i": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}, "perplexipy.PerplexityClient": {"tf": 1}, "perplexipy.PerplexityClient.__init__": {"tf": 2.6457513110645907}, "perplexipy.PerplexityClient.query": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1.4142135623730951}}, "df": 6}}, "s": {"docs": {"perplexipy.PerplexityClient.models": {"tf": 1}, "perplexipy.codex.codex": {"tf": 1}}, "df": 2, "d": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.PERPLEXITY_VALID_ROLES": {"tf": 1}}, "df": 1}}}}, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {"perplexipy.codex.codex": {"tf": 1}}, "df": 1}}}}}}}}, "v": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy.ModelInfo": {"tf": 1}, "perplexipy.ModelInfo.__init__": {"tf": 1}, "perplexipy.PerplexityClient.models": {"tf": 1}}, "df": 3}}}}}}}}}}}, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.ModelInfo.parameterCount": {"tf": 1}, "perplexipy.ModelInfo.contextLength": {"tf": 1}, "perplexipy.ModelInfo.modelType": {"tf": 1}, "perplexipy.ModelInfo.availability": {"tf": 1}}, "df": 4}}}, "l": {"docs": {"perplexipy.PerplexityClient": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}, "perplexipy.responses.Responses": {"tf": 1.4142135623730951}}, "df": 3}}, "c": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.PerplexityClient": {"tf": 1}}, "df": 1}}}}, "c": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.responses.Responses": {"tf": 1}}, "df": 1}}}}}, "r": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}, "perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}, "perplexipy.codex.CodexREPL.core": {"tf": 1}, "perplexipy.codex.codexCore": {"tf": 1}, "perplexipy.codex.codex": {"tf": 1}}, "df": 7}}}}}}}, "e": {"docs": {"perplexipy.PerplexityClient.models": {"tf": 1}}, "df": 1}}, "n": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}, "perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}}, "df": 4, "d": {"docs": {"perplexipy.PerplexityClient.queryStreamable": {"tf": 1.7320508075688772}, "perplexipy.codex.codex": {"tf": 1}, "perplexipy.responses.Responses": {"tf": 1.4142135623730951}}, "df": 3}}, "t": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}, "perplexipy.PerplexityClient.models": {"tf": 1}}, "df": 2}}}}}}}}}, "i": {"docs": {}, "df": 0, "/": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "/": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "l": {"docs": {"perplexipy.PerplexityClient.models": {"tf": 1}}, "df": 1}}}}}}}}}}}}, "f": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {"perplexipy.codex.codex": {"tf": 1}}, "df": 1}}}}}, "k": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}, "perplexipy.PerplexityClient.__init__": {"tf": 2.23606797749979}, "perplexipy.PerplexityClient.models": {"tf": 1}}, "df": 3}, "e": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {"perplexipy.PerplexityClient": {"tf": 1}}, "df": 1}}}}}}}, "i": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}, "perplexipy.PERPLEXITY_VALID_ROLES": {"tf": 1}, "perplexipy.PerplexityClient.__init__": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.query": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.model": {"tf": 1}}, "df": 7}, "f": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1.4142135623730951}, "perplexipy.PERPLEXITY_VALID_ROLES": {"tf": 1}, "perplexipy.PerplexityClient.__init__": {"tf": 2}, "perplexipy.PerplexityClient.query": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1.4142135623730951}, "perplexipy.codex.CodexREPL.core": {"tf": 1}, "perplexipy.codex.codexCore": {"tf": 1}}, "df": 8}, "t": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}, "perplexipy.PerplexityClient.__init__": {"tf": 1}, "perplexipy.codex.codex": {"tf": 1}, "perplexipy.responses.Responses": {"tf": 1.4142135623730951}}, "df": 4, "s": {"docs": {"perplexipy.PerplexityClient": {"tf": 1}, "perplexipy.PerplexityClient.model": {"tf": 1}}, "df": 2}, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.responses.Responses": {"tf": 1.4142135623730951}}, "df": 1}}}}}}}, "m": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PERPLEXITY_VALID_ROLES": {"tf": 1}}, "df": 1}}}}}}}}, "n": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.query": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.models": {"tf": 1}}, "df": 5, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.ModelInfo.__init__": {"tf": 1}, "perplexipy.PerplexityClient.__init__": {"tf": 1.4142135623730951}}, "df": 2}}, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {"perplexipy.PerplexityClient": {"tf": 1}}, "df": 1}}}}}}}}}}, "d": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}}}}, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "l": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}}, "g": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"perplexipy.PerplexityClient.queryStreamable": {"tf": 1}}, "df": 1}}}}}}}}}, "f": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"perplexipy.PerplexityClient.models": {"tf": 1}}, "df": 1}}}}}}}}}}}, "s": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}, "perplexipy.PERPLEXITY_VALID_ROLES": {"tf": 1}, "perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}, "perplexipy.responses.Responses": {"tf": 1}}, "df": 6, "e": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1.4142135623730951}}, "df": 1, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}}, "df": 1}}}}}}, "n": {"docs": {}, "df": 0, "d": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}, "perplexipy.codex.CodexREPL.core": {"tf": 1}, "perplexipy.codex.codexCore": {"tf": 1}}, "df": 5}}, "r": {"docs": {}, "df": 0, "v": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.model": {"tf": 1}}, "df": 3}}}}}}, "a": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}}, "df": 1}}}, "t": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}, "perplexipy.PerplexityClient.__init__": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.query": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}, "perplexipy.codex.CodexREPL.core": {"tf": 1}, "perplexipy.codex.codexCore": {"tf": 1}, "perplexipy.codex.codex": {"tf": 1.4142135623730951}}, "df": 8, "s": {"docs": {"perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}}, "df": 2}}}, "p": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.PerplexityClient.queryStreamable": {"tf": 1}, "perplexipy.responses.Responses": {"tf": 1}}, "df": 2}}}, "e": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PerplexityClient.queryStreamable": {"tf": 1}}, "df": 1}}}}, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {"perplexipy.PerplexityClient.queryStreamable": {"tf": 1}, "perplexipy.responses.Responses": {"tf": 1.4142135623730951}}, "df": 2}}}}}}}, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PerplexityClient": {"tf": 1}}, "df": 1, "s": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}}}, "u": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "f": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "l": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}}}}}}, "p": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}, "perplexipy.PerplexityClient.models": {"tf": 1.4142135623730951}}, "df": 4}}}}}}}}, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1.4142135623730951}, "perplexipy.codex.codex": {"tf": 1}}, "df": 3}}}}, "m": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "r": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}}, "df": 3}}}}, "p": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {"perplexipy.PerplexityClient.queryStreamable": {"tf": 1}}, "df": 1}}}}}}, "o": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "h": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}}, "df": 3}}}}}}}}}, "t": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1, "o": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1.7320508075688772}, "perplexipy.PerplexityClient.__init__": {"tf": 2.8284271247461903}, "perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.codex.CodexREPL.core": {"tf": 1}, "perplexipy.codex.codexCore": {"tf": 1}, "perplexipy.codex.codex": {"tf": 1.7320508075688772}, "perplexipy.responses.Responses": {"tf": 1}}, "df": 8, "k": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.codex.codex": {"tf": 1.4142135623730951}}, "df": 1}}}}}, "h": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 2}, "perplexipy.PerplexityClient": {"tf": 1}, "perplexipy.PerplexityClient.__init__": {"tf": 3}, "perplexipy.PerplexityClient.query": {"tf": 3}, "perplexipy.PerplexityClient.queryBatch": {"tf": 2.8284271247461903}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 3.1622776601683795}, "perplexipy.PerplexityClient.models": {"tf": 2}, "perplexipy.PerplexityClient.model": {"tf": 1.7320508075688772}, "perplexipy.codex.CodexREPL.core": {"tf": 2.23606797749979}, "perplexipy.codex.codexCore": {"tf": 2.23606797749979}, "perplexipy.codex.codex": {"tf": 2.23606797749979}, "perplexipy.responses.Responses": {"tf": 1.7320508075688772}}, "df": 12, "y": {"docs": {"perplexipy.PerplexityClient": {"tf": 1}}, "df": 1}}, "a": {"docs": {}, "df": 0, "n": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}}, "df": 3}, "t": {"docs": {"perplexipy.codex.codex": {"tf": 1}}, "df": 1}}, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "h": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}}, "df": 3}}}}}}, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}}}, "x": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}}, "df": 3, "u": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "l": {"docs": {"perplexipy.PerplexityClient.queryStreamable": {"tf": 1}, "perplexipy.responses.Responses": {"tf": 1}}, "df": 2}}}}}}, "u": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.models": {"tf": 1}}, "df": 2}}}}}, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "v": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}}, "df": 1, "i": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1.4142135623730951}}, "df": 1}}}}}}}}}, "c": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PerplexityClient": {"tf": 1}}, "df": 1, "s": {"docs": {"perplexipy.responses.Responses": {"tf": 1}}, "df": 1}}}}}}}}}}, "d": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1.4142135623730951}}, "df": 1}}}}}, "e": {"docs": {}, "df": 0, "d": {"docs": {"perplexipy.responses.Responses": {"tf": 1}}, "df": 1}}}, "a": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.responses.Responses": {"tf": 1}}, "df": 1}}}}}}, "m": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}, "perplexipy.PerplexityClient.__init__": {"tf": 1}, "perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}, "perplexipy.codex.CodexREPL.core": {"tf": 1}, "perplexipy.codex.codexCore": {"tf": 1}}, "df": 7}}}}, "a": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "h": {"docs": {"perplexipy.PerplexityClient": {"tf": 1}}, "df": 1}}, "s": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {"perplexipy.PerplexityClient.queryStreamable": {"tf": 1}}, "df": 1}}}}}, "f": {"docs": {}, "df": 0, "f": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}}}, "x": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}, "perplexipy.errors.PerplexityClientError": {"tf": 1}}, "df": 4}}}}}}}}, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}}, "df": 3, "s": {"docs": {"perplexipy.errors.PerplexityClientError": {"tf": 1}}, "df": 1}}}}}}, "v": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}}, "df": 1}}}}}}, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "d": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1.4142135623730951}}, "df": 1}}, "u": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PerplexityClient.model": {"tf": 1}}, "df": 1}}}}}, "o": {"docs": {}, "df": 0, "f": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}, "perplexipy.PERPLEXITY_VALID_ROLES": {"tf": 1}, "perplexipy.ModelInfo.__init__": {"tf": 1}, "perplexipy.PerplexityClient.__init__": {"tf": 1.7320508075688772}, "perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}, "perplexipy.PerplexityClient.models": {"tf": 1.4142135623730951}, "perplexipy.codex.CodexREPL.core": {"tf": 1}, "perplexipy.codex.codexCore": {"tf": 1}, "perplexipy.codex.codex": {"tf": 1}}, "df": 11, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {"perplexipy.codex.CodexREPL.core": {"tf": 1}, "perplexipy.codex.codexCore": {"tf": 1}}, "df": 2}}}}, "t": {"docs": {}, "df": 0, "h": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}}, "df": 3, "w": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}}, "df": 1}}}}}}}}, "b": {"docs": {}, "df": 0, "j": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.PERPLEXITY_VALID_ROLES": {"tf": 1}, "perplexipy.PerplexityClient.__init__": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}}, "df": 3, "s": {"docs": {"perplexipy.PerplexityClient": {"tf": 1}}, "df": 1}}}}}}, "w": {"docs": {}, "df": 0, "n": {"docs": {"perplexipy.PerplexityClient": {"tf": 1}}, "df": 1}}, "r": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}, "perplexipy.PerplexityClient.query": {"tf": 1.7320508075688772}, "perplexipy.PerplexityClient.queryBatch": {"tf": 2}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1.7320508075688772}, "perplexipy.codex.CodexREPL.core": {"tf": 1}, "perplexipy.codex.codexCore": {"tf": 1}}, "df": 6}, "n": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}, "perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}}, "df": 4}, "l": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy.PerplexityClient.queryStreamable": {"tf": 1}, "perplexipy.responses.Responses": {"tf": 1}}, "df": 2}}}, "p": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {"perplexipy.responses.Responses": {"tf": 1}}, "df": 1, "a": {"docs": {}, "df": 0, "i": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1.4142135623730951}, "perplexipy.responses.Responses": {"tf": 1}}, "df": 4}}}}}}, "n": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}}, "df": 1, "d": {"docs": {"perplexipy.PerplexityClient.models": {"tf": 1}}, "df": 1}}}}, "e": {"docs": {}, "df": 0, "w": {"docs": {"perplexipy.ModelInfo.__init__": {"tf": 1}, "perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 2}, "e": {"docs": {}, "df": 0, "d": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}, "u": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {"perplexipy.ModelInfo.parameterCount": {"tf": 1}, "perplexipy.ModelInfo.contextLength": {"tf": 1}, "perplexipy.ModelInfo.modelType": {"tf": 1}, "perplexipy.ModelInfo.availability": {"tf": 1}}, "df": 4}}}}}, "o": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1, "t": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}, "n": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}, "perplexipy.codex.CodexREPL.core": {"tf": 1}, "perplexipy.codex.codexCore": {"tf": 1}}, "df": 5}}}}, "u": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PERPLEXITY_VALID_ROLES": {"tf": 1}, "perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 2, "s": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}, "perplexipy.PerplexityClient.model": {"tf": 1}}, "df": 2}, "r": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1.4142135623730951}, "perplexipy.codex.CodexREPL.core": {"tf": 1.4142135623730951}, "perplexipy.codex.codexCore": {"tf": 1.4142135623730951}}, "df": 3, "q": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy.codex.CodexREPL.core": {"tf": 1}, "perplexipy.codex.codexCore": {"tf": 1}}, "df": 2}}}}}}}, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}, "perplexipy.responses.Responses": {"tf": 1}}, "df": 2}}}}, "r": {"docs": {}, "df": 0, "l": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}, "n": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}}}}}}, "d": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "v": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}}, "df": 1}}}}, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "n": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}, "c": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}}}}}}}}}}, "i": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy.PERPLEXITY_VALID_ROLES": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.models": {"tf": 1.4142135623730951}}, "df": 2}}}}}}}}, "s": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy.codex.codex": {"tf": 1}}, "df": 1, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {"perplexipy.codex.codex": {"tf": 1}}, "df": 1}}}}}}}}}, "e": {"docs": {}, "df": 0, "f": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.PerplexityClient.model": {"tf": 1.4142135623730951}}, "df": 1, "s": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}}}}, "s": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"perplexipy.PerplexityClient.models": {"tf": 1}}, "df": 1}}}}}}}}}}, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "a": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}}, "df": 3}}}}, "m": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}}, "df": 1}}}, "e": {"docs": {}, "df": 0, "l": {"docs": {"perplexipy.PERPLEXITY_VALID_ROLES": {"tf": 1}, "perplexipy.PerplexityClient.__init__": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}, "perplexipy.PerplexityClient.models": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.model": {"tf": 1.4142135623730951}, "perplexipy.codex.CodexREPL.core": {"tf": 1}, "perplexipy.codex.codexCore": {"tf": 1}}, "df": 9, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "f": {"docs": {}, "df": 0, "o": {"docs": {"perplexipy.ModelInfo": {"tf": 1}, "perplexipy.ModelInfo.__init__": {"tf": 1}, "perplexipy.PerplexityClient.models": {"tf": 1}}, "df": 3}}}}, "t": {"docs": {}, "df": 0, "y": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.ModelInfo": {"tf": 1}, "perplexipy.ModelInfo.__init__": {"tf": 1}, "perplexipy.PerplexityClient.models": {"tf": 1}}, "df": 3}}}}, "s": {"docs": {"perplexipy.PerplexityClient.models": {"tf": 1.4142135623730951}}, "df": 1}}}, "i": {"docs": {}, "df": 0, "f": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}}}}, "s": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}, "perplexipy.codex.CodexREPL.core": {"tf": 1}, "perplexipy.codex.codexCore": {"tf": 1}}, "df": 5}}, "r": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PerplexityClient.queryBatch": {"tf": 1}}, "df": 1}}}, "a": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"perplexipy.PERPLEXITY_VALID_ROLES": {"tf": 1}}, "df": 1}}}}}}}}}}, "t": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "h": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}, "l": {"docs": {}, "df": 0, "f": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}}, "df": 3}}}}}}}}, "u": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PerplexityClient": {"tf": 1}}, "df": 1}}}}}}}, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}}, "df": 2}}}}}, "t": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "a": {"docs": {"perplexipy.PerplexityClient.queryStreamable": {"tf": 1}, "perplexipy.responses.Responses": {"tf": 1}}, "df": 2}}}}}}}}, "l": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "d": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}}, "df": 1}}, "n": {"docs": {}, "df": 0, "g": {"docs": {"perplexipy.PerplexityClient.queryStreamable": {"tf": 1}}, "df": 1}}}, "i": {"docs": {}, "df": 0, "k": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PERPLEXITY_VALID_ROLES": {"tf": 1}}, "df": 1}}, "s": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.codex.codex": {"tf": 1}}, "df": 1, "e": {"docs": {}, "df": 0, "d": {"docs": {"perplexipy.PerplexityClient.models": {"tf": 1}}, "df": 1}}}}, "n": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.codex.codex": {"tf": 1}}, "df": 1}}}, "a": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}}, "df": 3}}}}}}}}}, "f": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "m": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}, "perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}, "perplexipy.PerplexityClient.model": {"tf": 1}, "perplexipy.responses.Responses": {"tf": 1}}, "df": 5}}}, "o": {"docs": {}, "df": 0, "r": {"docs": {"perplexipy.ModelInfo.parameterCount": {"tf": 1}, "perplexipy.ModelInfo.contextLength": {"tf": 1}, "perplexipy.ModelInfo.modelType": {"tf": 1}, "perplexipy.ModelInfo.availability": {"tf": 1}, "perplexipy.PerplexityClient.__init__": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.model": {"tf": 1}, "perplexipy.codex.CodexREPL.core": {"tf": 1}, "perplexipy.codex.codexCore": {"tf": 1}, "perplexipy.codex.codex": {"tf": 1}, "perplexipy.errors.PerplexityClientError": {"tf": 1}}, "df": 11}}, "i": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "d": {"docs": {"perplexipy.ModelInfo.parameterCount": {"tf": 1}, "perplexipy.ModelInfo.contextLength": {"tf": 1}, "perplexipy.ModelInfo.modelType": {"tf": 1}, "perplexipy.ModelInfo.availability": {"tf": 1}}, "df": 4}}}, "x": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}}, "u": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy.PerplexityClient": {"tf": 1}}, "df": 1}}}}}}}}}}}}}, "c": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.PERPLEXITY_VALID_ROLES": {"tf": 1}, "perplexipy.PerplexityClient.models": {"tf": 1}}, "df": 2}}}}}}}}}}, "n": {"docs": {"perplexipy.PerplexityClient": {"tf": 1}}, "df": 1}, "l": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}}, "df": 3}}}, "r": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.PerplexityClient.models": {"tf": 1}}, "df": 1}}}}, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "x": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "h": {"docs": {"perplexipy.ModelInfo": {"tf": 1}, "perplexipy.ModelInfo.__init__": {"tf": 1}, "perplexipy.PerplexityClient.models": {"tf": 1}}, "df": 3}}}}}}, "s": {"docs": {"perplexipy.PerplexityClient": {"tf": 1}}, "df": 1}}}, "n": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.PerplexityClient.queryStreamable": {"tf": 1}}, "df": 1}}}}, "n": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}}, "f": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}}}}}}}, "s": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.codex.codex": {"tf": 1.4142135623730951}}, "df": 1}}}}}, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}}}}}}}}}, "d": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}, "m": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "d": {"docs": {"perplexipy.codex.codex": {"tf": 1}}, "df": 1}}}}}}, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.ModelInfo.__init__": {"tf": 1}, "perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 2}}}}}, "u": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}}}}, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.PerplexityClient.queryStreamable": {"tf": 1}, "perplexipy.PerplexityClient.model": {"tf": 1}, "perplexipy.errors.PerplexityClientError": {"tf": 1}}, "df": 3}}}}, "e": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {"perplexipy.errors.PerplexityClientError": {"tf": 1}}, "df": 1}}}}}}}, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "q": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {"perplexipy.PERPLEXITY_VALID_ROLES": {"tf": 1}}, "df": 1}}}}, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {"perplexipy.PerplexityClient.model": {"tf": 1}}, "df": 1}}}}}}}}, "p": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}}}}}}}}, "g": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "r": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}}}, "t": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "n": {"docs": {"perplexipy.PerplexityClient.queryStreamable": {"tf": 1}, "perplexipy.PerplexityClient.model": {"tf": 1}}, "df": 2, "s": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}, "perplexipy.PerplexityClient.query": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 2}, "perplexipy.PerplexityClient.models": {"tf": 1}, "perplexipy.codex.CodexREPL.core": {"tf": 1}, "perplexipy.codex.codexCore": {"tf": 1}, "perplexipy.codex.codex": {"tf": 1}, "perplexipy.responses.Responses": {"tf": 1}}, "df": 9}}}}}, "c": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}}}}}}}}}}, "e": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "v": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}}, "df": 2}}}}}, "s": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1.4142135623730951}, "perplexipy.codex.codex": {"tf": 1}, "perplexipy.responses.Responses": {"tf": 1.4142135623730951}}, "df": 5, "s": {"docs": {"perplexipy.PerplexityClient.queryStreamable": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.model": {"tf": 1}, "perplexipy.responses.Responses": {"tf": 1}}, "df": 3}}}}}}, "u": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.codex.CodexREPL.core": {"tf": 1}, "perplexipy.codex.codexCore": {"tf": 1}, "perplexipy.codex.codex": {"tf": 1}}, "df": 3}}}}}, "o": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}, "a": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}, "perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}}, "df": 4}, "d": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1.4142135623730951}}, "df": 3}}}}}}, "b": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PerplexityClient": {"tf": 1}, "perplexipy.PerplexityClient.__init__": {"tf": 1}, "perplexipy.codex.codex": {"tf": 1}}, "df": 3}, "o": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "n": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}}}}, "a": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "q": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1.4142135623730951}}, "df": 3}}}}}}}}}}}}}, "t": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "h": {"docs": {"perplexipy.PerplexityClient.queryBatch": {"tf": 1}}, "df": 1}}}}, "y": {"docs": {"perplexipy.PerplexityClient.models": {"tf": 1}}, "df": 1}, "u": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.responses.Responses": {"tf": 1}}, "df": 1}}}}}, "h": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}, "perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}}, "df": 4}, "n": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {"perplexipy.errors.PerplexityClientError": {"tf": 1}}, "df": 1}}}}}}}, "t": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, ":": {"docs": {}, "df": 0, "/": {"docs": {}, "df": 0, "/": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.PerplexityClient.models": {"tf": 1}}, "df": 1}}}}}}}}}}}}, "q": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}, "y": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 2.23606797749979}, "perplexipy.PerplexityClient.queryBatch": {"tf": 2.23606797749979}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 2.23606797749979}, "perplexipy.codex.CodexREPL.core": {"tf": 2}, "perplexipy.codex.codexCore": {"tf": 2}, "perplexipy.codex.codex": {"tf": 1.4142135623730951}, "perplexipy.responses.Responses": {"tf": 1}}, "df": 7}}, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"perplexipy.codex.CodexREPL.core": {"tf": 1}, "perplexipy.codex.codexCore": {"tf": 1}}, "df": 2}}}}}}}}, "w": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "h": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}, "perplexipy.PerplexityClient.models": {"tf": 1.4142135623730951}, "perplexipy.codex.CodexREPL.core": {"tf": 1}, "perplexipy.codex.codexCore": {"tf": 1}, "perplexipy.codex.codex": {"tf": 1}}, "df": 7}}, "l": {"docs": {}, "df": 0, "l": {"docs": {"perplexipy.codex.codex": {"tf": 1}}, "df": 1}}}, "h": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "v": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}}, "df": 3}}}}}}}, "a": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.codex.CodexREPL.core": {"tf": 1}, "perplexipy.codex.codexCore": {"tf": 1}}, "df": 2}}}, "g": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "c": {"docs": {"perplexipy.errors.PerplexityClientError": {"tf": 1}}, "df": 1}}}}}}}}}}, "pipeline": ["trimmer"], "_isPrebuiltIndex": true};
+    /** pdoc search index */const docs = {"version": "0.9.5", "fields": ["qualname", "fullname", "annotation", "default_value", "signature", "bases", "doc"], "ref": "fullname", "documentStore": {"docs": {"perplexipy": {"fullname": "perplexipy", "modulename": "perplexipy", "kind": "module", "doc": "<p></p>\n"}, "perplexipy.PERPLEXITY_API_KEY": {"fullname": "perplexipy.PERPLEXITY_API_KEY", "modulename": "perplexipy", "qualname": "PERPLEXITY_API_KEY", "kind": "variable", "doc": "<p><code>PERPLEXITY_API_KEY</code> is set to the environment variable of the same name if\npresent, otherwise it's set to the empty string <code>''</code>.  PerplexiPy uses the\n<code>dotenv</code> module to load environment settings from <code>$PWD/.env</code> if present.</p>\n", "default_value": "$PERPLEXITY_API_KEY"}, "perplexipy.PERPLEXITY_API_PREFIX": {"fullname": "perplexipy.PERPLEXITY_API_PREFIX", "modulename": "perplexipy", "qualname": "PERPLEXITY_API_PREFIX", "kind": "variable", "doc": "<p></p>\n", "default_value": "&#x27;pplx-&#x27;"}, "perplexipy.PERPLEXITY_API_URL": {"fullname": "perplexipy.PERPLEXITY_API_URL", "modulename": "perplexipy", "qualname": "PERPLEXITY_API_URL", "kind": "variable", "doc": "<p></p>\n", "default_value": "&#x27;https://api.perplexity.ai&#x27;"}, "perplexipy.PERPLEXITY_DEFAULT_MODEL": {"fullname": "perplexipy.PERPLEXITY_DEFAULT_MODEL", "modulename": "perplexipy", "qualname": "PERPLEXITY_DEFAULT_MODEL", "kind": "variable", "doc": "<p></p>\n", "default_value": "&#x27;llama-3-sonar-small-32k-chat&#x27;"}, "perplexipy.PERPLEXITY_DEFAULT_ROLE": {"fullname": "perplexipy.PERPLEXITY_DEFAULT_ROLE", "modulename": "perplexipy", "qualname": "PERPLEXITY_DEFAULT_ROLE", "kind": "variable", "doc": "<p></p>\n", "default_value": "&#x27;user&#x27;"}, "perplexipy.PERPLEXITY_TIMEOUT": {"fullname": "perplexipy.PERPLEXITY_TIMEOUT", "modulename": "perplexipy", "qualname": "PERPLEXITY_TIMEOUT", "kind": "variable", "doc": "<p></p>\n", "default_value": "30.0"}, "perplexipy.PERPLEXITY_VALID_ROLES": {"fullname": "perplexipy.PERPLEXITY_VALID_ROLES", "modulename": "perplexipy", "qualname": "PERPLEXITY_VALID_ROLES", "kind": "variable", "doc": "<p>Immutable dictionary-like object of a model's capabilities.  Use <code>_asDict()</code> if\ndictionary manipulation is required.</p>\n", "default_value": "{&#x27;assistant&#x27;, &#x27;user&#x27;, &#x27;system&#x27;}"}, "perplexipy.ModelInfo": {"fullname": "perplexipy.ModelInfo", "modulename": "perplexipy", "qualname": "ModelInfo", "kind": "class", "doc": "<p>ModelInfo(parameterCount, contextLength, modelType, availability)</p>\n", "bases": "builtins.tuple"}, "perplexipy.ModelInfo.__init__": {"fullname": "perplexipy.ModelInfo.__init__", "modulename": "perplexipy", "qualname": "ModelInfo.__init__", "kind": "function", "doc": "<p>Create new instance of ModelInfo(parameterCount, contextLength, modelType, availability)</p>\n", "signature": "<span class=\"signature pdoc-code condensed\">(<span class=\"param\"><span class=\"n\">parameterCount</span>, </span><span class=\"param\"><span class=\"n\">contextLength</span>, </span><span class=\"param\"><span class=\"n\">modelType</span>, </span><span class=\"param\"><span class=\"n\">availability</span></span>)</span>"}, "perplexipy.ModelInfo.parameterCount": {"fullname": "perplexipy.ModelInfo.parameterCount", "modulename": "perplexipy", "qualname": "ModelInfo.parameterCount", "kind": "variable", "doc": "<p>Alias for field number 0</p>\n"}, "perplexipy.ModelInfo.contextLength": {"fullname": "perplexipy.ModelInfo.contextLength", "modulename": "perplexipy", "qualname": "ModelInfo.contextLength", "kind": "variable", "doc": "<p>Alias for field number 1</p>\n"}, "perplexipy.ModelInfo.modelType": {"fullname": "perplexipy.ModelInfo.modelType", "modulename": "perplexipy", "qualname": "ModelInfo.modelType", "kind": "variable", "doc": "<p>Alias for field number 2</p>\n"}, "perplexipy.ModelInfo.availability": {"fullname": "perplexipy.ModelInfo.availability", "modulename": "perplexipy", "qualname": "ModelInfo.availability", "kind": "variable", "doc": "<p>Alias for field number 3</p>\n"}, "perplexipy.PerplexityClient": {"fullname": "perplexipy.PerplexityClient", "modulename": "perplexipy", "qualname": "PerplexityClient", "kind": "class", "doc": "<p>PerplexityClient objects encapsulate all the API functionality.  They can be\ninstantiated across multiple contexts, each keeping its own state.</p>\n"}, "perplexipy.PerplexityClient.__init__": {"fullname": "perplexipy.PerplexityClient.__init__", "modulename": "perplexipy", "qualname": "PerplexityClient.__init__", "kind": "function", "doc": "<p>Create a new instance of <code>perplexipy.PerplexityClient</code> using the API\n<code>key</code> to connect to the corresponding <code>endpoint</code>.</p>\n\n<h2 id=\"arguments\">Arguments</h2>\n\n<pre><code>key\n</code></pre>\n\n<p>A valid API key string.  If not present, it defaults to <code>perplexipy.PERPLEXITY_API_KEY</code>.</p>\n\n<pre><code>endpoint\n</code></pre>\n\n<p>A string representing a URL to the Perplexity API.</p>\n\n<pre><code>unitTest\n</code></pre>\n\n<p>A Boolean to indicate if internal object states need to be modified for\nunit testing.  Has no effect in regular code.</p>\n\n<h2 id=\"returns\">Returns</h2>\n\n<p>An instance of <code>perplexipy.PerplexityClient</code> if successful.</p>\n\n<p>Attributes:</p>\n\n<p><code>model</code> - the current model to use in queries, user configurable.</p>\n\n<p>The role is fixed to <code>\"user\"</code> for Perplexity calls, per the API\nrecommendations.</p>\n\n<h2 id=\"raises\">Raises</h2>\n\n<pre><code>PerplexityClientError\n</code></pre>\n\n<p>If the API key is empty, or doesn't match one of the valid API prefixes\nper the documentation.</p>\n", "signature": "<span class=\"signature pdoc-code multiline\">(<span class=\"param\">\t<span class=\"n\">key</span><span class=\"p\">:</span> <span class=\"nb\">str</span>,</span><span class=\"param\">\t<span class=\"n\">endpoint</span><span class=\"p\">:</span> <span class=\"nb\">str</span> <span class=\"o\">=</span> <span class=\"s1\">&#39;https://api.perplexity.ai&#39;</span>,</span><span class=\"param\">\t<span class=\"n\">unitTest</span><span class=\"o\">=</span><span class=\"kc\">False</span></span>)</span>"}, "perplexipy.PerplexityClient.query": {"fullname": "perplexipy.PerplexityClient.query", "modulename": "perplexipy", "qualname": "PerplexityClient.query", "kind": "function", "doc": "<p>Send a single message query to the service, receive a single response.</p>\n\n<h2 id=\"arguments\">Arguments</h2>\n\n<pre><code>query\n</code></pre>\n\n<p>A string with the query in one of the model's supported languages.</p>\n\n<h2 id=\"returns\">Returns</h2>\n\n<p>A string with a response from the Perplexity service.</p>\n\n<h2 id=\"raises\">Raises</h2>\n\n<pre><code>Exception\n</code></pre>\n\n<p>An <code>openai.BadRequestError</code> or similar if the query is malformed or has\nsomething other than text data.  The error raised passes through\nwhatever the API raised.</p>\n\n<p>In most cases, the API returns <code>openai.BadRequestError</code>.</p>\n\n<pre><code>PerplexityClientError\n</code></pre>\n\n<p>If the query is <code>None</code> or empty.</p>\n", "signature": "<span class=\"signature pdoc-code condensed\">(<span class=\"param\"><span class=\"bp\">self</span>, </span><span class=\"param\"><span class=\"n\">query</span><span class=\"p\">:</span> <span class=\"nb\">str</span></span><span class=\"return-annotation\">) -> <span class=\"nb\">str</span>:</span></span>", "funcdef": "def"}, "perplexipy.PerplexityClient.queryBatch": {"fullname": "perplexipy.PerplexityClient.queryBatch", "modulename": "perplexipy", "qualname": "PerplexityClient.queryBatch", "kind": "function", "doc": "<p>Send a single message query to the service, receive a single response.</p>\n\n<h2 id=\"arguments\">Arguments</h2>\n\n<pre><code>query\n</code></pre>\n\n<p>A string with the query in one of the model's supported languages.</p>\n\n<h2 id=\"returns\">Returns</h2>\n\n<p>A tuple with a batch of 1 or more response strings.</p>\n\n<h2 id=\"raises\">Raises</h2>\n\n<pre><code>Exception\n</code></pre>\n\n<p>An <code>openai.BadRequestError</code> or similar if the query is malformed or has\nsomething other than text data.  The error raised passes through\nwhatever the API raised.</p>\n\n<p>In most cases, the API returns <code>openai.BadRequestError</code>.</p>\n\n<pre><code>PerplexityClientError\n</code></pre>\n\n<p>If the query is <code>None</code> or empty.</p>\n", "signature": "<span class=\"signature pdoc-code condensed\">(<span class=\"param\"><span class=\"bp\">self</span>, </span><span class=\"param\"><span class=\"n\">query</span><span class=\"p\">:</span> <span class=\"nb\">str</span></span><span class=\"return-annotation\">) -> <span class=\"nb\">tuple</span>:</span></span>", "funcdef": "def"}, "perplexipy.PerplexityClient.queryStreamable": {"fullname": "perplexipy.PerplexityClient.queryStreamable", "modulename": "perplexipy", "qualname": "PerplexityClient.queryStreamable", "kind": "function", "doc": "<p>Send a query and return a long, streamable response.</p>\n\n<h2 id=\"arguments\">Arguments</h2>\n\n<pre><code>query\n</code></pre>\n\n<p>A string with the query in one of the model's supported languages.</p>\n\n<h2 id=\"returns\">Returns</h2>\n\n<p>Returns a <code>perplexipy.Responses</code> object for streaming the textual\nresponses from the client.  The response strips all metadata and returns\nonly content strings, for simpler and easier integration.</p>\n\n<h2 id=\"raises\">Raises</h2>\n\n<pre><code>Exception\n</code></pre>\n\n<p>An <code>openai.BadRequestError</code> or similar if the query is malformed or has\nsomething other than text data.  The error raised passes through\nwhatever the API raised.</p>\n\n<p>In most cases, the API returns <code>openai.BadRequestError</code>.</p>\n\n<pre><code>PerplexityClientError\n</code></pre>\n\n<p>If the query is <code>None</code> or empty.</p>\n", "signature": "<span class=\"signature pdoc-code condensed\">(<span class=\"param\"><span class=\"bp\">self</span>, </span><span class=\"param\"><span class=\"n\">query</span><span class=\"p\">:</span> <span class=\"nb\">str</span></span><span class=\"return-annotation\">) -> <span class=\"n\">perplexipy</span><span class=\"o\">.</span><span class=\"n\">responses</span><span class=\"o\">.</span><span class=\"n\">Responses</span>:</span></span>", "funcdef": "def"}, "perplexipy.PerplexityClient.models": {"fullname": "perplexipy.PerplexityClient.models", "modulename": "perplexipy", "qualname": "PerplexityClient.models", "kind": "variable", "doc": "<p>Provide a dictionary of the models supported by Perplexity listed in:</p>\n\n<p><a href=\"https://docs.perplexity.ai/docs/model-cards\">https://docs.perplexity.ai/docs/model-cards</a></p>\n\n<h2 id=\"returns\">Returns</h2>\n\n<p>A dictionary of supported models as the key, with a <code>perplexypy.ModelInfo</code>\nnamed tuple with the model capabilities description.  The model\ninformation attributes are:</p>\n\n<ul>\n<li><code>parameterCount</code></li>\n<li><code>contextLength</code></li>\n<li><code>modelType</code></li>\n<li><code>availability</code></li>\n</ul>\n"}, "perplexipy.PerplexityClient.model": {"fullname": "perplexipy.PerplexityClient.model", "modulename": "perplexipy", "qualname": "PerplexityClient.model", "kind": "variable", "doc": "<p>Return the model the client uses for requesting responses from the\nservice provider.  Its default value is:  <code>PERPLEXITY_DEFAULT_MODEL</code>.</p>\n", "annotation": ": str"}, "perplexipy.codex": {"fullname": "perplexipy.codex", "modulename": "perplexipy.codex", "kind": "module", "doc": "<p></p>\n"}, "perplexipy.codex.DEFAULT_MODEL_NAME": {"fullname": "perplexipy.codex.DEFAULT_MODEL_NAME", "modulename": "perplexipy.codex", "qualname": "DEFAULT_MODEL_NAME", "kind": "variable", "doc": "<p>@public\nCodex Playground default model.</p>\n", "default_value": "&#x27;llama-3-sonar-small-32k-chat&#x27;"}, "perplexipy.codex.CodexREPL": {"fullname": "perplexipy.codex.CodexREPL", "modulename": "perplexipy.codex", "qualname": "CodexREPL", "kind": "class", "doc": "<p></p>\n"}, "perplexipy.codex.CodexREPL.core": {"fullname": "perplexipy.codex.CodexREPL.core", "modulename": "perplexipy.codex", "qualname": "CodexREPL.core", "kind": "function", "doc": "<p>Send a user query to the model for processing.</p>\n\n<h2 id=\"arguments\">Arguments</h2>\n\n<pre><code>userQuery\n</code></pre>\n\n<p>A string with the user query, most often a programming question.</p>\n\n<h2 id=\"returns\">Returns</h2>\n\n<p>The result of the query, or <code>None</code> if the query was empty.</p>\n", "signature": "<span class=\"signature pdoc-code condensed\">(<span class=\"param\"><span class=\"bp\">self</span>, </span><span class=\"param\"><span class=\"n\">userQuery</span><span class=\"p\">:</span> <span class=\"nb\">str</span></span><span class=\"return-annotation\">) -> <span class=\"nb\">str</span>:</span></span>", "funcdef": "def"}, "perplexipy.codex.CodexREPL.activeModel": {"fullname": "perplexipy.codex.CodexREPL.activeModel", "modulename": "perplexipy.codex", "qualname": "CodexREPL.activeModel", "kind": "function", "doc": "<p></p>\n", "signature": "<span class=\"signature pdoc-code condensed\">(<span class=\"param\"><span class=\"bp\">self</span>, </span><span class=\"param\"><span class=\"n\">modelID</span><span class=\"p\">:</span> <span class=\"nb\">int</span> <span class=\"o\">=</span> <span class=\"mi\">0</span></span><span class=\"return-annotation\">) -> <span class=\"nb\">str</span>:</span></span>", "funcdef": "def"}, "perplexipy.codex.CodexREPL.displayModels": {"fullname": "perplexipy.codex.CodexREPL.displayModels", "modulename": "perplexipy.codex", "qualname": "CodexREPL.displayModels", "kind": "function", "doc": "<p>Display the list of models supported by the API.</p>\n\n<h1 id=\"returns\">Returns</h1>\n\n<p>A list of strings, each corresponding to a model name.</p>\n", "signature": "<span class=\"signature pdoc-code condensed\">(<span class=\"param\"><span class=\"bp\">self</span></span><span class=\"return-annotation\">) -> <span class=\"nb\">list</span>:</span></span>", "funcdef": "def"}, "perplexipy.codex.CodexREPL.editingMode": {"fullname": "perplexipy.codex.CodexREPL.editingMode", "modulename": "perplexipy.codex", "qualname": "CodexREPL.editingMode", "kind": "function", "doc": "<p>Sets the editing mode to <code>vi</code> or <code>emacs</code>.</p>\n\n<h1 id=\"arguments\">Arguments</h1>\n\n<pre><code>session\n</code></pre>\n\n<p>An instance of <code>PromptSession</code> from the current Click hosting.</p>\n\n<pre><code>mode\n</code></pre>\n\n<p>A string with the values of 'vi' or 'emacs'; any other value is\noverriden with <code>vi</code>.</p>\n\n<h1 id=\"returns\">Returns</h1>\n\n<p>An updated PromptSession instance that with the value of <code>mode</code>.</p>\n", "signature": "<span class=\"signature pdoc-code multiline\">(<span class=\"param\">\t<span class=\"bp\">self</span>,</span><span class=\"param\">\t<span class=\"n\">session</span><span class=\"p\">:</span> <span class=\"n\">prompt_toolkit</span><span class=\"o\">.</span><span class=\"n\">shortcuts</span><span class=\"o\">.</span><span class=\"n\">prompt</span><span class=\"o\">.</span><span class=\"n\">PromptSession</span>,</span><span class=\"param\">\t<span class=\"n\">mode</span><span class=\"p\">:</span> <span class=\"nb\">str</span> <span class=\"o\">=</span> <span class=\"kc\">None</span></span><span class=\"return-annotation\">) -> <span class=\"n\">prompt_toolkit</span><span class=\"o\">.</span><span class=\"n\">shortcuts</span><span class=\"o\">.</span><span class=\"n\">prompt</span><span class=\"o\">.</span><span class=\"n\">PromptSession</span>:</span></span>", "funcdef": "def"}, "perplexipy.codex.CodexREPL.queryCodeStyle": {"fullname": "perplexipy.codex.CodexREPL.queryCodeStyle", "modulename": "perplexipy.codex", "qualname": "CodexREPL.queryCodeStyle", "kind": "variable", "doc": "<p>Return <code>True</code> if the current style is code, <code>False</code> for human.  The object uses\nthis Boolean value to determine the type of query to execute.  Future\nversions may use the words <code>code</code> or <code>human</code>, or perhaps an enum with\nthose values.</p>\n", "annotation": ": bool"}, "perplexipy.codex.CodexREPL.makeQuery": {"fullname": "perplexipy.codex.CodexREPL.makeQuery", "modulename": "perplexipy.codex", "qualname": "CodexREPL.makeQuery", "kind": "function", "doc": "<p>Execute a query using the <code>PerplexityClient</code> and return the result in\na string.</p>\n\n<h1 id=\"arguments\">Arguments</h1>\n\n<pre><code>userQuery\n</code></pre>\n\n<p>A free from, natural language string describing the request to the AI\nprovider.</p>\n\n<h1 id=\"returns\">Returns</h1>\n\n<p>The response from the AI/LLM.</p>\n\n<h1 id=\"raises\">Raises</h1>\n\n<p><code>ValueError</code> if <code>userQuery</code> is <code>None</code> or an empty string.</p>\n", "signature": "<span class=\"signature pdoc-code condensed\">(<span class=\"param\"><span class=\"bp\">self</span>, </span><span class=\"param\"><span class=\"n\">userQuery</span><span class=\"p\">:</span> <span class=\"nb\">str</span></span><span class=\"return-annotation\">) -> <span class=\"nb\">str</span>:</span></span>", "funcdef": "def"}, "perplexipy.codex.CodexREPL.run": {"fullname": "perplexipy.codex.CodexREPL.run", "modulename": "perplexipy.codex", "qualname": "CodexREPL.run", "kind": "function", "doc": "<p></p>\n", "signature": "<span class=\"signature pdoc-code condensed\">(<span class=\"param\"><span class=\"bp\">self</span></span><span class=\"return-annotation\">):</span></span>", "funcdef": "def"}, "perplexipy.codex.codexCore": {"fullname": "perplexipy.codex.codexCore", "modulename": "perplexipy.codex", "qualname": "codexCore", "kind": "function", "doc": "<p>Send a user query to the model for processing.</p>\n\n<h2 id=\"arguments\">Arguments</h2>\n\n<pre><code>userQuery\n</code></pre>\n\n<p>A string with the user query, most often a programming question.</p>\n\n<h2 id=\"returns\">Returns</h2>\n\n<p>The result of the query, or <code>None</code> if the query was empty.</p>\n", "signature": "<span class=\"signature pdoc-code condensed\">(<span class=\"param\"><span class=\"n\">userQuery</span><span class=\"p\">:</span> <span class=\"nb\">str</span></span><span class=\"return-annotation\">) -> <span class=\"nb\">str</span>:</span></span>", "funcdef": "def"}, "perplexipy.codex.codex": {"fullname": "perplexipy.codex.codex", "modulename": "perplexipy.codex", "qualname": "codex", "kind": "variable", "doc": "<p>Process a command line query and display the result to the console.</p>\n\n<h2 id=\"arguments\">Arguments</h2>\n\n<pre><code>tokens\n</code></pre>\n\n<p>A list of tokens that will be assembled as a single string for\nprocessing.</p>\n\n<h2 id=\"returns\">Returns</h2>\n\n<p>A string with the response to the query, after displaying it to the\nconsole.</p>\n", "default_value": "&lt;Command codex&gt;"}, "perplexipy.errors": {"fullname": "perplexipy.errors", "modulename": "perplexipy.errors", "kind": "module", "doc": "<p></p>\n"}, "perplexipy.errors.PerplexityClientError": {"fullname": "perplexipy.errors.PerplexityClientError", "modulename": "perplexipy.errors", "qualname": "PerplexityClientError", "kind": "class", "doc": "<p>Perplexity client generic errors, for cleaner exception handling.</p>\n", "bases": "builtins.Exception"}, "perplexipy.errors.PerplexityClientError.__init__": {"fullname": "perplexipy.errors.PerplexityClientError.__init__", "modulename": "perplexipy.errors", "qualname": "PerplexityClientError.__init__", "kind": "function", "doc": "<p></p>\n", "signature": "<span class=\"signature pdoc-code condensed\">(<span class=\"param\"><span class=\"n\">errorMessage</span></span>)</span>"}, "perplexipy.responses": {"fullname": "perplexipy.responses", "modulename": "perplexipy.responses", "kind": "module", "doc": "<p></p>\n"}, "perplexipy.responses.Responses": {"fullname": "perplexipy.responses.Responses", "modulename": "perplexipy.responses", "qualname": "Responses", "kind": "class", "doc": "<p>Encapsulates all the streaming responses from a query and enables access to\nit using a purpose-built iterable.  Strips all the OpenAI response metadata\nand returns only the textual response.  It's a streaming iterable,\nopen-ended.</p>\n"}, "perplexipy.responses.Responses.__init__": {"fullname": "perplexipy.responses.Responses.__init__", "modulename": "perplexipy.responses", "qualname": "Responses.__init__", "kind": "function", "doc": "<p></p>\n", "signature": "<span class=\"signature pdoc-code condensed\">(<span class=\"param\"><span class=\"n\">responsesStream</span></span>)</span>"}}, "docInfo": {"perplexipy": {"qualname": 0, "fullname": 1, "annotation": 0, "default_value": 0, "signature": 0, "bases": 0, "doc": 3}, "perplexipy.PERPLEXITY_API_KEY": {"qualname": 3, "fullname": 4, "annotation": 0, "default_value": 3, "signature": 0, "bases": 0, "doc": 50}, "perplexipy.PERPLEXITY_API_PREFIX": {"qualname": 3, "fullname": 4, "annotation": 0, "default_value": 5, "signature": 0, "bases": 0, "doc": 3}, "perplexipy.PERPLEXITY_API_URL": {"qualname": 3, "fullname": 4, "annotation": 0, "default_value": 7, "signature": 0, "bases": 0, "doc": 3}, "perplexipy.PERPLEXITY_DEFAULT_MODEL": {"qualname": 3, "fullname": 4, "annotation": 0, "default_value": 10, "signature": 0, "bases": 0, "doc": 3}, "perplexipy.PERPLEXITY_DEFAULT_ROLE": {"qualname": 3, "fullname": 4, "annotation": 0, "default_value": 5, "signature": 0, "bases": 0, "doc": 3}, "perplexipy.PERPLEXITY_TIMEOUT": {"qualname": 2, "fullname": 3, "annotation": 0, "default_value": 2, "signature": 0, "bases": 0, "doc": 3}, "perplexipy.PERPLEXITY_VALID_ROLES": {"qualname": 3, "fullname": 4, "annotation": 0, "default_value": 11, "signature": 0, "bases": 0, "doc": 23}, "perplexipy.ModelInfo": {"qualname": 1, "fullname": 2, "annotation": 0, "default_value": 0, "signature": 0, "bases": 2, "doc": 8}, "perplexipy.ModelInfo.__init__": {"qualname": 3, "fullname": 4, "annotation": 0, "default_value": 0, "signature": 24, "bases": 0, "doc": 12}, "perplexipy.ModelInfo.parameterCount": {"qualname": 2, "fullname": 3, "annotation": 0, "default_value": 0, "signature": 0, "bases": 0, "doc": 7}, "perplexipy.ModelInfo.contextLength": {"qualname": 2, "fullname": 3, "annotation": 0, "default_value": 0, "signature": 0, "bases": 0, "doc": 7}, "perplexipy.ModelInfo.modelType": {"qualname": 2, "fullname": 3, "annotation": 0, "default_value": 0, "signature": 0, "bases": 0, "doc": 7}, "perplexipy.ModelInfo.availability": {"qualname": 2, "fullname": 3, "annotation": 0, "default_value": 0, "signature": 0, "bases": 0, "doc": 7}, "perplexipy.PerplexityClient": {"qualname": 1, "fullname": 2, "annotation": 0, "default_value": 0, "signature": 0, "bases": 0, "doc": 22}, "perplexipy.PerplexityClient.__init__": {"qualname": 3, "fullname": 4, "annotation": 0, "default_value": 0, "signature": 50, "bases": 0, "doc": 187}, "perplexipy.PerplexityClient.query": {"qualname": 2, "fullname": 3, "annotation": 0, "default_value": 0, "signature": 24, "bases": 0, "doc": 126}, "perplexipy.PerplexityClient.queryBatch": {"qualname": 2, "fullname": 3, "annotation": 0, "default_value": 0, "signature": 24, "bases": 0, "doc": 128}, "perplexipy.PerplexityClient.queryStreamable": {"qualname": 2, "fullname": 3, "annotation": 0, "default_value": 0, "signature": 34, "bases": 0, "doc": 144}, "perplexipy.PerplexityClient.models": {"qualname": 2, "fullname": 3, "annotation": 0, "default_value": 0, "signature": 0, "bases": 0, "doc": 76}, "perplexipy.PerplexityClient.model": {"qualname": 2, "fullname": 3, "annotation": 2, "default_value": 0, "signature": 0, "bases": 0, "doc": 25}, "perplexipy.codex": {"qualname": 0, "fullname": 2, "annotation": 0, "default_value": 0, "signature": 0, "bases": 0, "doc": 3}, "perplexipy.codex.DEFAULT_MODEL_NAME": {"qualname": 3, "fullname": 5, "annotation": 0, "default_value": 10, "signature": 0, "bases": 0, "doc": 8}, "perplexipy.codex.CodexREPL": {"qualname": 1, "fullname": 3, "annotation": 0, "default_value": 0, "signature": 0, "bases": 0, "doc": 3}, "perplexipy.codex.CodexREPL.core": {"qualname": 2, "fullname": 4, "annotation": 0, "default_value": 0, "signature": 24, "bases": 0, "doc": 55}, "perplexipy.codex.CodexREPL.activeModel": {"qualname": 2, "fullname": 4, "annotation": 0, "default_value": 0, "signature": 31, "bases": 0, "doc": 3}, "perplexipy.codex.CodexREPL.displayModels": {"qualname": 2, "fullname": 4, "annotation": 0, "default_value": 0, "signature": 14, "bases": 0, "doc": 28}, "perplexipy.codex.CodexREPL.editingMode": {"qualname": 2, "fullname": 4, "annotation": 0, "default_value": 0, "signature": 76, "bases": 0, "doc": 83}, "perplexipy.codex.CodexREPL.queryCodeStyle": {"qualname": 2, "fullname": 4, "annotation": 2, "default_value": 0, "signature": 0, "bases": 0, "doc": 52}, "perplexipy.codex.CodexREPL.makeQuery": {"qualname": 2, "fullname": 4, "annotation": 0, "default_value": 0, "signature": 24, "bases": 0, "doc": 75}, "perplexipy.codex.CodexREPL.run": {"qualname": 2, "fullname": 4, "annotation": 0, "default_value": 0, "signature": 11, "bases": 0, "doc": 3}, "perplexipy.codex.codexCore": {"qualname": 1, "fullname": 3, "annotation": 0, "default_value": 0, "signature": 19, "bases": 0, "doc": 55}, "perplexipy.codex.codex": {"qualname": 1, "fullname": 3, "annotation": 0, "default_value": 6, "signature": 0, "bases": 0, "doc": 61}, "perplexipy.errors": {"qualname": 0, "fullname": 2, "annotation": 0, "default_value": 0, "signature": 0, "bases": 0, "doc": 3}, "perplexipy.errors.PerplexityClientError": {"qualname": 1, "fullname": 3, "annotation": 0, "default_value": 0, "signature": 0, "bases": 2, "doc": 11}, "perplexipy.errors.PerplexityClientError.__init__": {"qualname": 3, "fullname": 5, "annotation": 0, "default_value": 0, "signature": 9, "bases": 0, "doc": 3}, "perplexipy.responses": {"qualname": 0, "fullname": 2, "annotation": 0, "default_value": 0, "signature": 0, "bases": 0, "doc": 3}, "perplexipy.responses.Responses": {"qualname": 1, "fullname": 3, "annotation": 0, "default_value": 0, "signature": 0, "bases": 0, "doc": 40}, "perplexipy.responses.Responses.__init__": {"qualname": 3, "fullname": 5, "annotation": 0, "default_value": 0, "signature": 9, "bases": 0, "doc": 3}}, "length": 39, "save": true}, "index": {"qualname": {"root": {"docs": {"perplexipy.ModelInfo.__init__": {"tf": 1}, "perplexipy.PerplexityClient.__init__": {"tf": 1}, "perplexipy.errors.PerplexityClientError.__init__": {"tf": 1}, "perplexipy.responses.Responses.__init__": {"tf": 1}}, "df": 4, "p": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "x": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}, "perplexipy.PERPLEXITY_API_PREFIX": {"tf": 1}, "perplexipy.PERPLEXITY_API_URL": {"tf": 1}, "perplexipy.PERPLEXITY_DEFAULT_MODEL": {"tf": 1}, "perplexipy.PERPLEXITY_DEFAULT_ROLE": {"tf": 1}, "perplexipy.PERPLEXITY_TIMEOUT": {"tf": 1}, "perplexipy.PERPLEXITY_VALID_ROLES": {"tf": 1}}, "df": 7, "c": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.PerplexityClient": {"tf": 1}, "perplexipy.PerplexityClient.__init__": {"tf": 1}, "perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}, "perplexipy.PerplexityClient.models": {"tf": 1}, "perplexipy.PerplexityClient.model": {"tf": 1}}, "df": 7, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {"perplexipy.errors.PerplexityClientError": {"tf": 1}, "perplexipy.errors.PerplexityClientError.__init__": {"tf": 1}}, "df": 2}}}}}}}}}}}}}}}}}}}}, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "f": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "x": {"docs": {"perplexipy.PERPLEXITY_API_PREFIX": {"tf": 1}}, "df": 1}}}}}, "a": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.ModelInfo.parameterCount": {"tf": 1}}, "df": 1}}}}}}}}}}}}}}, "a": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "i": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}, "perplexipy.PERPLEXITY_API_PREFIX": {"tf": 1}, "perplexipy.PERPLEXITY_API_URL": {"tf": 1}}, "df": 3}}, "v": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy.ModelInfo.availability": {"tf": 1}}, "df": 1}}}}}}}}}}}, "c": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "v": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "l": {"docs": {"perplexipy.codex.CodexREPL.activeModel": {"tf": 1}}, "df": 1}}}}}}}}}}}, "k": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}}, "df": 1}}}, "u": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "l": {"docs": {"perplexipy.PERPLEXITY_API_URL": {"tf": 1}}, "df": 1}}}, "d": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "f": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.PERPLEXITY_DEFAULT_MODEL": {"tf": 1}, "perplexipy.PERPLEXITY_DEFAULT_ROLE": {"tf": 1}, "perplexipy.codex.DEFAULT_MODEL_NAME": {"tf": 1}}, "df": 3}}}}}}, "i": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "y": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.codex.CodexREPL.displayModels": {"tf": 1}}, "df": 1}}}}}}}}}}}}}, "m": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "l": {"docs": {"perplexipy.PERPLEXITY_DEFAULT_MODEL": {"tf": 1}, "perplexipy.PerplexityClient.model": {"tf": 1}, "perplexipy.codex.DEFAULT_MODEL_NAME": {"tf": 1}}, "df": 3, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "f": {"docs": {}, "df": 0, "o": {"docs": {"perplexipy.ModelInfo": {"tf": 1}, "perplexipy.ModelInfo.__init__": {"tf": 1}, "perplexipy.ModelInfo.parameterCount": {"tf": 1}, "perplexipy.ModelInfo.contextLength": {"tf": 1}, "perplexipy.ModelInfo.modelType": {"tf": 1}, "perplexipy.ModelInfo.availability": {"tf": 1}}, "df": 6}}}}, "t": {"docs": {}, "df": 0, "y": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.ModelInfo.modelType": {"tf": 1}}, "df": 1}}}}, "s": {"docs": {"perplexipy.PerplexityClient.models": {"tf": 1}}, "df": 1}}}}}, "a": {"docs": {}, "df": 0, "k": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "q": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy.codex.CodexREPL.makeQuery": {"tf": 1}}, "df": 1}}}}}}}}}, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PERPLEXITY_DEFAULT_ROLE": {"tf": 1}}, "df": 1, "s": {"docs": {"perplexipy.PERPLEXITY_VALID_ROLES": {"tf": 1}}, "df": 1}}}}, "u": {"docs": {}, "df": 0, "n": {"docs": {"perplexipy.codex.CodexREPL.run": {"tf": 1}}, "df": 1}}, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.responses.Responses": {"tf": 1}, "perplexipy.responses.Responses.__init__": {"tf": 1}}, "df": 2}}}}}}}}}, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.PERPLEXITY_TIMEOUT": {"tf": 1}}, "df": 1}}}}}}}, "v": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "d": {"docs": {"perplexipy.PERPLEXITY_VALID_ROLES": {"tf": 1}}, "df": 1}}}}}, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.ModelInfo.__init__": {"tf": 1}, "perplexipy.PerplexityClient.__init__": {"tf": 1}, "perplexipy.errors.PerplexityClientError.__init__": {"tf": 1}, "perplexipy.responses.Responses.__init__": {"tf": 1}}, "df": 4}}}}, "c": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "x": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "h": {"docs": {"perplexipy.ModelInfo.contextLength": {"tf": 1}}, "df": 1}}}}}}}}}}}, "d": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "x": {"docs": {"perplexipy.codex.codex": {"tf": 1}}, "df": 1, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "l": {"docs": {"perplexipy.codex.CodexREPL": {"tf": 1}, "perplexipy.codex.CodexREPL.core": {"tf": 1}, "perplexipy.codex.CodexREPL.activeModel": {"tf": 1}, "perplexipy.codex.CodexREPL.displayModels": {"tf": 1}, "perplexipy.codex.CodexREPL.editingMode": {"tf": 1}, "perplexipy.codex.CodexREPL.queryCodeStyle": {"tf": 1}, "perplexipy.codex.CodexREPL.makeQuery": {"tf": 1}, "perplexipy.codex.CodexREPL.run": {"tf": 1}}, "df": 8}}}}, "c": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.codex.codexCore": {"tf": 1}}, "df": 1}}}}}}}, "r": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.codex.CodexREPL.core": {"tf": 1}}, "df": 1}}}}, "q": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1}}, "df": 1, "b": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "h": {"docs": {"perplexipy.PerplexityClient.queryBatch": {"tf": 1}}, "df": 1}}}}}, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PerplexityClient.queryStreamable": {"tf": 1}}, "df": 1}}}}}}}}}}, "c": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "y": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.codex.CodexREPL.queryCodeStyle": {"tf": 1}}, "df": 1}}}}}}}}}}}}}}, "n": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.codex.DEFAULT_MODEL_NAME": {"tf": 1}}, "df": 1}}}}, "e": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.codex.CodexREPL.editingMode": {"tf": 1}}, "df": 1}}}}}}}}}}}}}, "fullname": {"root": {"docs": {"perplexipy.ModelInfo.__init__": {"tf": 1}, "perplexipy.PerplexityClient.__init__": {"tf": 1}, "perplexipy.errors.PerplexityClientError.__init__": {"tf": 1}, "perplexipy.responses.Responses.__init__": {"tf": 1}}, "df": 4, "p": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "x": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy": {"tf": 1}, "perplexipy.PERPLEXITY_API_KEY": {"tf": 1}, "perplexipy.PERPLEXITY_API_PREFIX": {"tf": 1}, "perplexipy.PERPLEXITY_API_URL": {"tf": 1}, "perplexipy.PERPLEXITY_DEFAULT_MODEL": {"tf": 1}, "perplexipy.PERPLEXITY_DEFAULT_ROLE": {"tf": 1}, "perplexipy.PERPLEXITY_TIMEOUT": {"tf": 1}, "perplexipy.PERPLEXITY_VALID_ROLES": {"tf": 1}, "perplexipy.ModelInfo": {"tf": 1}, "perplexipy.ModelInfo.__init__": {"tf": 1}, "perplexipy.ModelInfo.parameterCount": {"tf": 1}, "perplexipy.ModelInfo.contextLength": {"tf": 1}, "perplexipy.ModelInfo.modelType": {"tf": 1}, "perplexipy.ModelInfo.availability": {"tf": 1}, "perplexipy.PerplexityClient": {"tf": 1}, "perplexipy.PerplexityClient.__init__": {"tf": 1}, "perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}, "perplexipy.PerplexityClient.models": {"tf": 1}, "perplexipy.PerplexityClient.model": {"tf": 1}, "perplexipy.codex": {"tf": 1}, "perplexipy.codex.DEFAULT_MODEL_NAME": {"tf": 1}, "perplexipy.codex.CodexREPL": {"tf": 1}, "perplexipy.codex.CodexREPL.core": {"tf": 1}, "perplexipy.codex.CodexREPL.activeModel": {"tf": 1}, "perplexipy.codex.CodexREPL.displayModels": {"tf": 1}, "perplexipy.codex.CodexREPL.editingMode": {"tf": 1}, "perplexipy.codex.CodexREPL.queryCodeStyle": {"tf": 1}, "perplexipy.codex.CodexREPL.makeQuery": {"tf": 1}, "perplexipy.codex.CodexREPL.run": {"tf": 1}, "perplexipy.codex.codexCore": {"tf": 1}, "perplexipy.codex.codex": {"tf": 1}, "perplexipy.errors": {"tf": 1}, "perplexipy.errors.PerplexityClientError": {"tf": 1}, "perplexipy.errors.PerplexityClientError.__init__": {"tf": 1}, "perplexipy.responses": {"tf": 1}, "perplexipy.responses.Responses": {"tf": 1}, "perplexipy.responses.Responses.__init__": {"tf": 1}}, "df": 39}}, "t": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}, "perplexipy.PERPLEXITY_API_PREFIX": {"tf": 1}, "perplexipy.PERPLEXITY_API_URL": {"tf": 1}, "perplexipy.PERPLEXITY_DEFAULT_MODEL": {"tf": 1}, "perplexipy.PERPLEXITY_DEFAULT_ROLE": {"tf": 1}, "perplexipy.PERPLEXITY_TIMEOUT": {"tf": 1}, "perplexipy.PERPLEXITY_VALID_ROLES": {"tf": 1}}, "df": 7, "c": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.PerplexityClient": {"tf": 1}, "perplexipy.PerplexityClient.__init__": {"tf": 1}, "perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}, "perplexipy.PerplexityClient.models": {"tf": 1}, "perplexipy.PerplexityClient.model": {"tf": 1}}, "df": 7, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {"perplexipy.errors.PerplexityClientError": {"tf": 1}, "perplexipy.errors.PerplexityClientError.__init__": {"tf": 1}}, "df": 2}}}}}}}}}}}}}}}}}}}}, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "f": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "x": {"docs": {"perplexipy.PERPLEXITY_API_PREFIX": {"tf": 1}}, "df": 1}}}}}, "a": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.ModelInfo.parameterCount": {"tf": 1}}, "df": 1}}}}}}}}}}}}}}, "a": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "i": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}, "perplexipy.PERPLEXITY_API_PREFIX": {"tf": 1}, "perplexipy.PERPLEXITY_API_URL": {"tf": 1}}, "df": 3}}, "v": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy.ModelInfo.availability": {"tf": 1}}, "df": 1}}}}}}}}}}}, "c": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "v": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "l": {"docs": {"perplexipy.codex.CodexREPL.activeModel": {"tf": 1}}, "df": 1}}}}}}}}}}}, "k": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}}, "df": 1}}}, "u": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "l": {"docs": {"perplexipy.PERPLEXITY_API_URL": {"tf": 1}}, "df": 1}}}, "d": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "f": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.PERPLEXITY_DEFAULT_MODEL": {"tf": 1}, "perplexipy.PERPLEXITY_DEFAULT_ROLE": {"tf": 1}, "perplexipy.codex.DEFAULT_MODEL_NAME": {"tf": 1}}, "df": 3}}}}}}, "i": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "y": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.codex.CodexREPL.displayModels": {"tf": 1}}, "df": 1}}}}}}}}}}}}}, "m": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "l": {"docs": {"perplexipy.PERPLEXITY_DEFAULT_MODEL": {"tf": 1}, "perplexipy.PerplexityClient.model": {"tf": 1}, "perplexipy.codex.DEFAULT_MODEL_NAME": {"tf": 1}}, "df": 3, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "f": {"docs": {}, "df": 0, "o": {"docs": {"perplexipy.ModelInfo": {"tf": 1}, "perplexipy.ModelInfo.__init__": {"tf": 1}, "perplexipy.ModelInfo.parameterCount": {"tf": 1}, "perplexipy.ModelInfo.contextLength": {"tf": 1}, "perplexipy.ModelInfo.modelType": {"tf": 1}, "perplexipy.ModelInfo.availability": {"tf": 1}}, "df": 6}}}}, "t": {"docs": {}, "df": 0, "y": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.ModelInfo.modelType": {"tf": 1}}, "df": 1}}}}, "s": {"docs": {"perplexipy.PerplexityClient.models": {"tf": 1}}, "df": 1}}}}}, "a": {"docs": {}, "df": 0, "k": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "q": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy.codex.CodexREPL.makeQuery": {"tf": 1}}, "df": 1}}}}}}}}}, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PERPLEXITY_DEFAULT_ROLE": {"tf": 1}}, "df": 1, "s": {"docs": {"perplexipy.PERPLEXITY_VALID_ROLES": {"tf": 1}}, "df": 1}}}}, "u": {"docs": {}, "df": 0, "n": {"docs": {"perplexipy.codex.CodexREPL.run": {"tf": 1}}, "df": 1}}, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.responses": {"tf": 1}, "perplexipy.responses.Responses": {"tf": 1.4142135623730951}, "perplexipy.responses.Responses.__init__": {"tf": 1.4142135623730951}}, "df": 3}}}}}}}}}, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.PERPLEXITY_TIMEOUT": {"tf": 1}}, "df": 1}}}}}}}, "v": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "d": {"docs": {"perplexipy.PERPLEXITY_VALID_ROLES": {"tf": 1}}, "df": 1}}}}}, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.ModelInfo.__init__": {"tf": 1}, "perplexipy.PerplexityClient.__init__": {"tf": 1}, "perplexipy.errors.PerplexityClientError.__init__": {"tf": 1}, "perplexipy.responses.Responses.__init__": {"tf": 1}}, "df": 4}}}}, "c": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "x": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "h": {"docs": {"perplexipy.ModelInfo.contextLength": {"tf": 1}}, "df": 1}}}}}}}}}}}, "d": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "x": {"docs": {"perplexipy.codex": {"tf": 1}, "perplexipy.codex.DEFAULT_MODEL_NAME": {"tf": 1}, "perplexipy.codex.CodexREPL": {"tf": 1}, "perplexipy.codex.CodexREPL.core": {"tf": 1}, "perplexipy.codex.CodexREPL.activeModel": {"tf": 1}, "perplexipy.codex.CodexREPL.displayModels": {"tf": 1}, "perplexipy.codex.CodexREPL.editingMode": {"tf": 1}, "perplexipy.codex.CodexREPL.queryCodeStyle": {"tf": 1}, "perplexipy.codex.CodexREPL.makeQuery": {"tf": 1}, "perplexipy.codex.CodexREPL.run": {"tf": 1}, "perplexipy.codex.codexCore": {"tf": 1}, "perplexipy.codex.codex": {"tf": 1.4142135623730951}}, "df": 12, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "l": {"docs": {"perplexipy.codex.CodexREPL": {"tf": 1}, "perplexipy.codex.CodexREPL.core": {"tf": 1}, "perplexipy.codex.CodexREPL.activeModel": {"tf": 1}, "perplexipy.codex.CodexREPL.displayModels": {"tf": 1}, "perplexipy.codex.CodexREPL.editingMode": {"tf": 1}, "perplexipy.codex.CodexREPL.queryCodeStyle": {"tf": 1}, "perplexipy.codex.CodexREPL.makeQuery": {"tf": 1}, "perplexipy.codex.CodexREPL.run": {"tf": 1}}, "df": 8}}}}, "c": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.codex.codexCore": {"tf": 1}}, "df": 1}}}}}}}, "r": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.codex.CodexREPL.core": {"tf": 1}}, "df": 1}}}}, "q": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1}}, "df": 1, "b": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "h": {"docs": {"perplexipy.PerplexityClient.queryBatch": {"tf": 1}}, "df": 1}}}}}, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PerplexityClient.queryStreamable": {"tf": 1}}, "df": 1}}}}}}}}}}, "c": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "y": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.codex.CodexREPL.queryCodeStyle": {"tf": 1}}, "df": 1}}}}}}}}}}}}}}, "n": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.codex.DEFAULT_MODEL_NAME": {"tf": 1}}, "df": 1}}}}, "e": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.codex.CodexREPL.editingMode": {"tf": 1}}, "df": 1}}}}}}}}}}, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.errors": {"tf": 1}, "perplexipy.errors.PerplexityClientError": {"tf": 1}, "perplexipy.errors.PerplexityClientError.__init__": {"tf": 1}}, "df": 3}}}}}}}}, "annotation": {"root": {"docs": {"perplexipy.PerplexityClient.model": {"tf": 1}, "perplexipy.codex.CodexREPL.queryCodeStyle": {"tf": 1}}, "df": 2, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "r": {"docs": {"perplexipy.PerplexityClient.model": {"tf": 1}}, "df": 1}}}, "b": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "l": {"docs": {"perplexipy.codex.CodexREPL.queryCodeStyle": {"tf": 1}}, "df": 1}}}}}}, "default_value": {"root": {"0": {"docs": {"perplexipy.PERPLEXITY_TIMEOUT": {"tf": 1}}, "df": 1}, "3": {"0": {"docs": {"perplexipy.PERPLEXITY_TIMEOUT": {"tf": 1}}, "df": 1}, "2": {"docs": {}, "df": 0, "k": {"docs": {"perplexipy.PERPLEXITY_DEFAULT_MODEL": {"tf": 1}, "perplexipy.codex.DEFAULT_MODEL_NAME": {"tf": 1}}, "df": 2}}, "docs": {"perplexipy.PERPLEXITY_DEFAULT_MODEL": {"tf": 1}, "perplexipy.codex.DEFAULT_MODEL_NAME": {"tf": 1}}, "df": 2}, "docs": {"perplexipy.PERPLEXITY_API_PREFIX": {"tf": 1.4142135623730951}, "perplexipy.PERPLEXITY_API_URL": {"tf": 1.4142135623730951}, "perplexipy.PERPLEXITY_DEFAULT_MODEL": {"tf": 1.4142135623730951}, "perplexipy.PERPLEXITY_DEFAULT_ROLE": {"tf": 1.4142135623730951}, "perplexipy.PERPLEXITY_VALID_ROLES": {"tf": 1.4142135623730951}, "perplexipy.codex.DEFAULT_MODEL_NAME": {"tf": 1.4142135623730951}, "perplexipy.codex.codex": {"tf": 1.4142135623730951}}, "df": 7, "p": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "x": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}, "perplexipy.PERPLEXITY_API_URL": {"tf": 1}}, "df": 2}}}}}}}}}, "p": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "x": {"docs": {"perplexipy.PERPLEXITY_API_PREFIX": {"tf": 1}}, "df": 1}}}}, "a": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "i": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}}, "df": 1}}, "i": {"docs": {"perplexipy.PERPLEXITY_API_URL": {"tf": 1}}, "df": 1}, "s": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.PERPLEXITY_VALID_ROLES": {"tf": 1}}, "df": 1}}}}}}}}}, "k": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}}, "df": 1}}}, "x": {"2": {"7": {"docs": {"perplexipy.PERPLEXITY_API_PREFIX": {"tf": 1.4142135623730951}, "perplexipy.PERPLEXITY_API_URL": {"tf": 1.4142135623730951}, "perplexipy.PERPLEXITY_DEFAULT_MODEL": {"tf": 1.4142135623730951}, "perplexipy.PERPLEXITY_DEFAULT_ROLE": {"tf": 1.4142135623730951}, "perplexipy.PERPLEXITY_VALID_ROLES": {"tf": 2.449489742783178}, "perplexipy.codex.DEFAULT_MODEL_NAME": {"tf": 1.4142135623730951}}, "df": 6}, "docs": {}, "df": 0}, "docs": {}, "df": 0}, "h": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, ":": {"docs": {}, "df": 0, "/": {"docs": {}, "df": 0, "/": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "i": {"docs": {"perplexipy.PERPLEXITY_API_URL": {"tf": 1}}, "df": 1}}}}}}}}}}}, "l": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "a": {"docs": {"perplexipy.PERPLEXITY_DEFAULT_MODEL": {"tf": 1}, "perplexipy.codex.DEFAULT_MODEL_NAME": {"tf": 1}}, "df": 2}}}}, "t": {"docs": {"perplexipy.codex.codex": {"tf": 1}}, "df": 1}}, "s": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "r": {"docs": {"perplexipy.PERPLEXITY_DEFAULT_MODEL": {"tf": 1}, "perplexipy.codex.DEFAULT_MODEL_NAME": {"tf": 1}}, "df": 2}}}}, "m": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "l": {"docs": {"perplexipy.PERPLEXITY_DEFAULT_MODEL": {"tf": 1}, "perplexipy.codex.DEFAULT_MODEL_NAME": {"tf": 1}}, "df": 2}}}}, "y": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "m": {"docs": {"perplexipy.PERPLEXITY_VALID_ROLES": {"tf": 1}}, "df": 1}}}}}}, "c": {"docs": {}, "df": 0, "h": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.PERPLEXITY_DEFAULT_MODEL": {"tf": 1}, "perplexipy.codex.DEFAULT_MODEL_NAME": {"tf": 1}}, "df": 2}}}, "o": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "d": {"docs": {"perplexipy.codex.codex": {"tf": 1}}, "df": 1}}}}}, "d": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "x": {"docs": {"perplexipy.codex.codex": {"tf": 1}}, "df": 1}}}}}, "u": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {"perplexipy.PERPLEXITY_DEFAULT_ROLE": {"tf": 1}, "perplexipy.PERPLEXITY_VALID_ROLES": {"tf": 1}}, "df": 2}}}}, "g": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.codex.codex": {"tf": 1}}, "df": 1}}}}, "signature": {"root": {"0": {"docs": {"perplexipy.codex.CodexREPL.activeModel": {"tf": 1}}, "df": 1}, "3": {"9": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1.4142135623730951}}, "df": 1}, "docs": {}, "df": 0}, "docs": {"perplexipy.ModelInfo.__init__": {"tf": 4.47213595499958}, "perplexipy.PerplexityClient.__init__": {"tf": 6.244997998398398}, "perplexipy.PerplexityClient.query": {"tf": 4.47213595499958}, "perplexipy.PerplexityClient.queryBatch": {"tf": 4.47213595499958}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 5.291502622129181}, "perplexipy.codex.CodexREPL.core": {"tf": 4.47213595499958}, "perplexipy.codex.CodexREPL.activeModel": {"tf": 5.0990195135927845}, "perplexipy.codex.CodexREPL.displayModels": {"tf": 3.4641016151377544}, "perplexipy.codex.CodexREPL.editingMode": {"tf": 7.810249675906654}, "perplexipy.codex.CodexREPL.makeQuery": {"tf": 4.47213595499958}, "perplexipy.codex.CodexREPL.run": {"tf": 3.1622776601683795}, "perplexipy.codex.codexCore": {"tf": 4}, "perplexipy.errors.PerplexityClientError.__init__": {"tf": 2.8284271247461903}, "perplexipy.responses.Responses.__init__": {"tf": 2.8284271247461903}}, "df": 14, "p": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.ModelInfo.__init__": {"tf": 1}}, "df": 1}}}}}}}}}}}}}, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "x": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}, "p": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy.PerplexityClient.queryStreamable": {"tf": 1}}, "df": 1}}}}}}}}}, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.codex.CodexREPL.editingMode": {"tf": 2}}, "df": 1, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"perplexipy.codex.CodexREPL.editingMode": {"tf": 1.4142135623730951}}, "df": 1}}}}}}}}}}}}}, "c": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "x": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "h": {"docs": {"perplexipy.ModelInfo.__init__": {"tf": 1}}, "df": 1}}}}}}}}}}}}}, "m": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.codex.CodexREPL.editingMode": {"tf": 1}}, "df": 1, "l": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "y": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.ModelInfo.__init__": {"tf": 1}}, "df": 1}}}}, "i": {"docs": {}, "df": 0, "d": {"docs": {"perplexipy.codex.CodexREPL.activeModel": {"tf": 1}}, "df": 1}}}}}}}, "a": {"docs": {}, "df": 0, "v": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy.ModelInfo.__init__": {"tf": 1}}, "df": 1}}}}}}}}}}}, "i": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}, "k": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "r": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.query": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}, "perplexipy.codex.CodexREPL.core": {"tf": 1.4142135623730951}, "perplexipy.codex.CodexREPL.activeModel": {"tf": 1}, "perplexipy.codex.CodexREPL.editingMode": {"tf": 1}, "perplexipy.codex.CodexREPL.makeQuery": {"tf": 1.4142135623730951}, "perplexipy.codex.codexCore": {"tf": 1.4142135623730951}}, "df": 9}}, "e": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "f": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}, "perplexipy.codex.CodexREPL.core": {"tf": 1}, "perplexipy.codex.CodexREPL.activeModel": {"tf": 1}, "perplexipy.codex.CodexREPL.displayModels": {"tf": 1}, "perplexipy.codex.CodexREPL.editingMode": {"tf": 1}, "perplexipy.codex.CodexREPL.makeQuery": {"tf": 1}, "perplexipy.codex.CodexREPL.run": {"tf": 1}}, "df": 9}}, "s": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"perplexipy.codex.CodexREPL.editingMode": {"tf": 1}}, "df": 1}}}}}}, "h": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.codex.CodexREPL.editingMode": {"tf": 1.4142135623730951}}, "df": 1}}}}}}}}}, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}}}}}, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.errors.PerplexityClientError.__init__": {"tf": 1}}, "df": 1}}}}}}}}}}}}, "h": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, ":": {"docs": {}, "df": 0, "/": {"docs": {}, "df": 0, "/": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "i": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}}}}}}}}}, "u": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}}}}}, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "q": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy.codex.CodexREPL.core": {"tf": 1}, "perplexipy.codex.CodexREPL.makeQuery": {"tf": 1}, "perplexipy.codex.codexCore": {"tf": 1}}, "df": 3}}}}}}}}}, "f": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}}}, "q": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}}, "df": 3}}}}}, "t": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PerplexityClient.queryBatch": {"tf": 1}}, "df": 1}}}}, "o": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "k": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.codex.CodexREPL.editingMode": {"tf": 1.4142135623730951}}, "df": 1}}}}}}}, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.PerplexityClient.queryStreamable": {"tf": 1.4142135623730951}}, "df": 1, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "m": {"docs": {"perplexipy.responses.Responses.__init__": {"tf": 1}}, "df": 1}}}}}}}}}}}}}}}, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.codex.CodexREPL.activeModel": {"tf": 1}}, "df": 1}}}, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.codex.CodexREPL.displayModels": {"tf": 1}}, "df": 1}}}}, "n": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.codex.CodexREPL.editingMode": {"tf": 1}}, "df": 1}}}}}}, "bases": {"root": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.ModelInfo": {"tf": 1}, "perplexipy.errors.PerplexityClientError": {"tf": 1}}, "df": 2}}}}}}}}, "t": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.ModelInfo": {"tf": 1}}, "df": 1}}}}}, "e": {"docs": {}, "df": 0, "x": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"perplexipy.errors.PerplexityClientError": {"tf": 1}}, "df": 1}}}}}}}}}}}, "doc": {"root": {"0": {"docs": {"perplexipy.ModelInfo.parameterCount": {"tf": 1}}, "df": 1}, "1": {"docs": {"perplexipy.ModelInfo.contextLength": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}}, "df": 2}, "2": {"docs": {"perplexipy.ModelInfo.modelType": {"tf": 1}}, "df": 1}, "3": {"docs": {"perplexipy.ModelInfo.availability": {"tf": 1}}, "df": 1}, "docs": {"perplexipy": {"tf": 1.7320508075688772}, "perplexipy.PERPLEXITY_API_KEY": {"tf": 3.605551275463989}, "perplexipy.PERPLEXITY_API_PREFIX": {"tf": 1.7320508075688772}, "perplexipy.PERPLEXITY_API_URL": {"tf": 1.7320508075688772}, "perplexipy.PERPLEXITY_DEFAULT_MODEL": {"tf": 1.7320508075688772}, "perplexipy.PERPLEXITY_DEFAULT_ROLE": {"tf": 1.7320508075688772}, "perplexipy.PERPLEXITY_TIMEOUT": {"tf": 1.7320508075688772}, "perplexipy.PERPLEXITY_VALID_ROLES": {"tf": 2.6457513110645907}, "perplexipy.ModelInfo": {"tf": 1.7320508075688772}, "perplexipy.ModelInfo.__init__": {"tf": 1.7320508075688772}, "perplexipy.ModelInfo.parameterCount": {"tf": 1.4142135623730951}, "perplexipy.ModelInfo.contextLength": {"tf": 1.4142135623730951}, "perplexipy.ModelInfo.modelType": {"tf": 1.4142135623730951}, "perplexipy.ModelInfo.availability": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient": {"tf": 1.7320508075688772}, "perplexipy.PerplexityClient.__init__": {"tf": 8.246211251235321}, "perplexipy.PerplexityClient.query": {"tf": 6.708203932499369}, "perplexipy.PerplexityClient.queryBatch": {"tf": 6.708203932499369}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 6.855654600401044}, "perplexipy.PerplexityClient.models": {"tf": 5.656854249492381}, "perplexipy.PerplexityClient.model": {"tf": 2.23606797749979}, "perplexipy.codex": {"tf": 1.7320508075688772}, "perplexipy.codex.DEFAULT_MODEL_NAME": {"tf": 1.7320508075688772}, "perplexipy.codex.CodexREPL": {"tf": 1.7320508075688772}, "perplexipy.codex.CodexREPL.core": {"tf": 4.47213595499958}, "perplexipy.codex.CodexREPL.activeModel": {"tf": 1.7320508075688772}, "perplexipy.codex.CodexREPL.displayModels": {"tf": 2.8284271247461903}, "perplexipy.codex.CodexREPL.editingMode": {"tf": 6}, "perplexipy.codex.CodexREPL.queryCodeStyle": {"tf": 3.3166247903554}, "perplexipy.codex.CodexREPL.makeQuery": {"tf": 5.5677643628300215}, "perplexipy.codex.CodexREPL.run": {"tf": 1.7320508075688772}, "perplexipy.codex.codexCore": {"tf": 4.47213595499958}, "perplexipy.codex.codex": {"tf": 4.242640687119285}, "perplexipy.errors": {"tf": 1.7320508075688772}, "perplexipy.errors.PerplexityClientError": {"tf": 1.7320508075688772}, "perplexipy.errors.PerplexityClientError.__init__": {"tf": 1.7320508075688772}, "perplexipy.responses": {"tf": 1.7320508075688772}, "perplexipy.responses.Responses": {"tf": 1.7320508075688772}, "perplexipy.responses.Responses.__init__": {"tf": 1.7320508075688772}}, "df": 39, "p": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1.4142135623730951}}, "df": 1, "p": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "x": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}, "perplexipy.PerplexityClient.__init__": {"tf": 1.7320508075688772}, "perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.models": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.model": {"tf": 1}, "perplexipy.errors.PerplexityClientError": {"tf": 1}}, "df": 6, "c": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.PerplexityClient": {"tf": 1}, "perplexipy.PerplexityClient.__init__": {"tf": 1.4142135623730951}, "perplexipy.codex.CodexREPL.makeQuery": {"tf": 1}}, "df": 3, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}, "perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}}, "df": 4}}}}}}}}}}}}}, "p": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}, "perplexipy.PerplexityClient.__init__": {"tf": 1.7320508075688772}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}}, "df": 3}}}, "y": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy.PerplexityClient.models": {"tf": 1}}, "df": 1}}}}}}}, "h": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.codex.CodexREPL.queryCodeStyle": {"tf": 1}}, "df": 1}}}}}}, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 2}}}}, "f": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "x": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}}}}, "o": {"docs": {}, "df": 0, "v": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PerplexityClient.models": {"tf": 1}}, "df": 1, "r": {"docs": {"perplexipy.PerplexityClient.model": {"tf": 1}, "perplexipy.codex.CodexREPL.makeQuery": {"tf": 1}}, "df": 2}}}}}, "c": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.codex.codex": {"tf": 1}}, "df": 1, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {"perplexipy.codex.CodexREPL.core": {"tf": 1}, "perplexipy.codex.codexCore": {"tf": 1}, "perplexipy.codex.codex": {"tf": 1}}, "df": 3}}}}}}}, "g": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {"perplexipy.codex.CodexREPL.core": {"tf": 1}, "perplexipy.codex.codexCore": {"tf": 1}}, "df": 2}}}}}}}}, "m": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"perplexipy.codex.CodexREPL.editingMode": {"tf": 1.4142135623730951}}, "df": 1}}}}}}}}}}}}, "w": {"docs": {}, "df": 0, "d": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}}, "df": 1}}, "a": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.ModelInfo": {"tf": 1}, "perplexipy.ModelInfo.__init__": {"tf": 1}, "perplexipy.PerplexityClient.models": {"tf": 1}}, "df": 3}}}}}}}}}}}}, "s": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}}, "df": 3}}}}}, "u": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "c": {"docs": {"perplexipy.codex.DEFAULT_MODEL_NAME": {"tf": 1}}, "df": 1}}}}, "r": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.responses.Responses": {"tf": 1}}, "df": 1}}}}}}, "l": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "y": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "d": {"docs": {"perplexipy.codex.DEFAULT_MODEL_NAME": {"tf": 1}}, "df": 1}}}}}}}}}}, "a": {"docs": {"perplexipy.PERPLEXITY_VALID_ROLES": {"tf": 1}, "perplexipy.PerplexityClient.__init__": {"tf": 2.23606797749979}, "perplexipy.PerplexityClient.query": {"tf": 2.23606797749979}, "perplexipy.PerplexityClient.queryBatch": {"tf": 2.23606797749979}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 2}, "perplexipy.PerplexityClient.models": {"tf": 1.7320508075688772}, "perplexipy.codex.CodexREPL.core": {"tf": 1.7320508075688772}, "perplexipy.codex.CodexREPL.displayModels": {"tf": 1.4142135623730951}, "perplexipy.codex.CodexREPL.editingMode": {"tf": 1}, "perplexipy.codex.CodexREPL.makeQuery": {"tf": 1.7320508075688772}, "perplexipy.codex.codexCore": {"tf": 1.7320508075688772}, "perplexipy.codex.codex": {"tf": 2}, "perplexipy.responses.Responses": {"tf": 1.7320508075688772}}, "df": 13, "p": {"docs": {}, "df": 0, "i": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}, "perplexipy.PerplexityClient": {"tf": 1}, "perplexipy.PerplexityClient.__init__": {"tf": 2.6457513110645907}, "perplexipy.PerplexityClient.query": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1.4142135623730951}, "perplexipy.codex.CodexREPL.displayModels": {"tf": 1}}, "df": 7}}, "s": {"docs": {"perplexipy.PerplexityClient.models": {"tf": 1}, "perplexipy.codex.codex": {"tf": 1}}, "df": 2, "d": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.PERPLEXITY_VALID_ROLES": {"tf": 1}}, "df": 1}}}}, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {"perplexipy.codex.codex": {"tf": 1}}, "df": 1}}}}}}}}, "v": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy.ModelInfo": {"tf": 1}, "perplexipy.ModelInfo.__init__": {"tf": 1}, "perplexipy.PerplexityClient.models": {"tf": 1}}, "df": 3}}}}}}}}}}}, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.ModelInfo.parameterCount": {"tf": 1}, "perplexipy.ModelInfo.contextLength": {"tf": 1}, "perplexipy.ModelInfo.modelType": {"tf": 1}, "perplexipy.ModelInfo.availability": {"tf": 1}}, "df": 4}}}, "l": {"docs": {"perplexipy.PerplexityClient": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}, "perplexipy.responses.Responses": {"tf": 1.4142135623730951}}, "df": 3}}, "c": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.PerplexityClient": {"tf": 1}}, "df": 1}}}}, "c": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.responses.Responses": {"tf": 1}}, "df": 1}}}}}, "r": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}, "perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}, "perplexipy.codex.CodexREPL.core": {"tf": 1}, "perplexipy.codex.CodexREPL.editingMode": {"tf": 1}, "perplexipy.codex.CodexREPL.makeQuery": {"tf": 1}, "perplexipy.codex.codexCore": {"tf": 1}, "perplexipy.codex.codex": {"tf": 1}}, "df": 9}}}}}}}, "e": {"docs": {"perplexipy.PerplexityClient.models": {"tf": 1}}, "df": 1}}, "n": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}, "perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}, "perplexipy.codex.CodexREPL.editingMode": {"tf": 1.4142135623730951}, "perplexipy.codex.CodexREPL.queryCodeStyle": {"tf": 1}, "perplexipy.codex.CodexREPL.makeQuery": {"tf": 1}}, "df": 7, "d": {"docs": {"perplexipy.PerplexityClient.queryStreamable": {"tf": 1.7320508075688772}, "perplexipy.codex.CodexREPL.makeQuery": {"tf": 1}, "perplexipy.codex.codex": {"tf": 1}, "perplexipy.responses.Responses": {"tf": 1.4142135623730951}}, "df": 4}, "y": {"docs": {"perplexipy.codex.CodexREPL.editingMode": {"tf": 1}}, "df": 1}}, "t": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}, "perplexipy.PerplexityClient.models": {"tf": 1}}, "df": 2}}}}}}}}}, "i": {"docs": {"perplexipy.codex.CodexREPL.makeQuery": {"tf": 1}}, "df": 1, "/": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "/": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "l": {"docs": {"perplexipy.PerplexityClient.models": {"tf": 1}}, "df": 1}}}}}}}}}}, "l": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "m": {"docs": {"perplexipy.codex.CodexREPL.makeQuery": {"tf": 1}}, "df": 1}}}}}, "f": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {"perplexipy.codex.codex": {"tf": 1}}, "df": 1}}}}}, "k": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}, "perplexipy.PerplexityClient.__init__": {"tf": 2.23606797749979}, "perplexipy.PerplexityClient.models": {"tf": 1}}, "df": 3}, "e": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {"perplexipy.PerplexityClient": {"tf": 1}}, "df": 1}}}}}}}, "i": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}, "perplexipy.PERPLEXITY_VALID_ROLES": {"tf": 1}, "perplexipy.PerplexityClient.__init__": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.query": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.model": {"tf": 1}, "perplexipy.codex.CodexREPL.editingMode": {"tf": 1}, "perplexipy.codex.CodexREPL.queryCodeStyle": {"tf": 1}, "perplexipy.codex.CodexREPL.makeQuery": {"tf": 1}}, "df": 10}, "f": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1.4142135623730951}, "perplexipy.PERPLEXITY_VALID_ROLES": {"tf": 1}, "perplexipy.PerplexityClient.__init__": {"tf": 2}, "perplexipy.PerplexityClient.query": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1.4142135623730951}, "perplexipy.codex.CodexREPL.core": {"tf": 1}, "perplexipy.codex.CodexREPL.queryCodeStyle": {"tf": 1}, "perplexipy.codex.CodexREPL.makeQuery": {"tf": 1}, "perplexipy.codex.codexCore": {"tf": 1}}, "df": 10}, "t": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}, "perplexipy.PerplexityClient.__init__": {"tf": 1}, "perplexipy.codex.codex": {"tf": 1}, "perplexipy.responses.Responses": {"tf": 1.4142135623730951}}, "df": 4, "s": {"docs": {"perplexipy.PerplexityClient": {"tf": 1}, "perplexipy.PerplexityClient.model": {"tf": 1}}, "df": 2}, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.responses.Responses": {"tf": 1.4142135623730951}}, "df": 1}}}}}}}, "m": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PERPLEXITY_VALID_ROLES": {"tf": 1}}, "df": 1}}}}}}}}, "n": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.query": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.models": {"tf": 1}, "perplexipy.codex.CodexREPL.makeQuery": {"tf": 1}}, "df": 6, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.ModelInfo.__init__": {"tf": 1}, "perplexipy.PerplexityClient.__init__": {"tf": 1.4142135623730951}, "perplexipy.codex.CodexREPL.editingMode": {"tf": 1.4142135623730951}}, "df": 3}}, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {"perplexipy.PerplexityClient": {"tf": 1}}, "df": 1}}}}}}}}}}, "d": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}}}}, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "l": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}}, "g": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"perplexipy.PerplexityClient.queryStreamable": {"tf": 1}}, "df": 1}}}}}}}}}, "f": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"perplexipy.PerplexityClient.models": {"tf": 1}}, "df": 1}}}}}}}}}}}, "s": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}, "perplexipy.PERPLEXITY_VALID_ROLES": {"tf": 1}, "perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}, "perplexipy.responses.Responses": {"tf": 1}}, "df": 6, "e": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1.4142135623730951}}, "df": 1, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}}, "df": 1}}}}}, "s": {"docs": {"perplexipy.codex.CodexREPL.editingMode": {"tf": 1}}, "df": 1}}, "n": {"docs": {}, "df": 0, "d": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}, "perplexipy.codex.CodexREPL.core": {"tf": 1}, "perplexipy.codex.codexCore": {"tf": 1}}, "df": 5}}, "r": {"docs": {}, "df": 0, "v": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.model": {"tf": 1}}, "df": 3}}}}}, "s": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"perplexipy.codex.CodexREPL.editingMode": {"tf": 1}}, "df": 1}}}}}}, "a": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}}, "df": 1}}}, "t": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}, "perplexipy.PerplexityClient.__init__": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.query": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}, "perplexipy.codex.CodexREPL.core": {"tf": 1}, "perplexipy.codex.CodexREPL.editingMode": {"tf": 1}, "perplexipy.codex.CodexREPL.makeQuery": {"tf": 1.7320508075688772}, "perplexipy.codex.codexCore": {"tf": 1}, "perplexipy.codex.codex": {"tf": 1.4142135623730951}}, "df": 10, "s": {"docs": {"perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}, "perplexipy.codex.CodexREPL.displayModels": {"tf": 1}}, "df": 3}}}, "p": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.PerplexityClient.queryStreamable": {"tf": 1}, "perplexipy.responses.Responses": {"tf": 1}}, "df": 2}}}, "e": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PerplexityClient.queryStreamable": {"tf": 1}}, "df": 1}}}}, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {"perplexipy.PerplexityClient.queryStreamable": {"tf": 1}, "perplexipy.responses.Responses": {"tf": 1.4142135623730951}}, "df": 2}}}}}}}, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PerplexityClient": {"tf": 1}}, "df": 1, "s": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}}, "y": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.codex.CodexREPL.queryCodeStyle": {"tf": 1}}, "df": 1}}}}, "u": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "f": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "l": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}}}}}}, "p": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}, "perplexipy.PerplexityClient.models": {"tf": 1.4142135623730951}, "perplexipy.codex.CodexREPL.displayModels": {"tf": 1}}, "df": 5}}}}}}}}, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1.4142135623730951}, "perplexipy.codex.codex": {"tf": 1}}, "df": 3}}}}, "m": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "r": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}}, "df": 3}}}}, "p": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {"perplexipy.PerplexityClient.queryStreamable": {"tf": 1}}, "df": 1}}}}}}, "o": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "h": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}}, "df": 3}}}}}}}}}, "t": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1, "o": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1.7320508075688772}, "perplexipy.PerplexityClient.__init__": {"tf": 2.8284271247461903}, "perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.codex.CodexREPL.core": {"tf": 1}, "perplexipy.codex.CodexREPL.displayModels": {"tf": 1}, "perplexipy.codex.CodexREPL.editingMode": {"tf": 1}, "perplexipy.codex.CodexREPL.queryCodeStyle": {"tf": 1.4142135623730951}, "perplexipy.codex.CodexREPL.makeQuery": {"tf": 1}, "perplexipy.codex.codexCore": {"tf": 1}, "perplexipy.codex.codex": {"tf": 1.7320508075688772}, "perplexipy.responses.Responses": {"tf": 1}}, "df": 12, "k": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.codex.codex": {"tf": 1.4142135623730951}}, "df": 1}}}}}, "h": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 2}, "perplexipy.PerplexityClient": {"tf": 1}, "perplexipy.PerplexityClient.__init__": {"tf": 3}, "perplexipy.PerplexityClient.query": {"tf": 3}, "perplexipy.PerplexityClient.queryBatch": {"tf": 2.8284271247461903}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 3.1622776601683795}, "perplexipy.PerplexityClient.models": {"tf": 2}, "perplexipy.PerplexityClient.model": {"tf": 1.7320508075688772}, "perplexipy.codex.CodexREPL.core": {"tf": 2.23606797749979}, "perplexipy.codex.CodexREPL.displayModels": {"tf": 1.4142135623730951}, "perplexipy.codex.CodexREPL.editingMode": {"tf": 2}, "perplexipy.codex.CodexREPL.queryCodeStyle": {"tf": 2}, "perplexipy.codex.CodexREPL.makeQuery": {"tf": 2.449489742783178}, "perplexipy.codex.codexCore": {"tf": 2.23606797749979}, "perplexipy.codex.codex": {"tf": 2.23606797749979}, "perplexipy.responses.Responses": {"tf": 1.7320508075688772}}, "df": 16, "y": {"docs": {"perplexipy.PerplexityClient": {"tf": 1}}, "df": 1}}, "a": {"docs": {}, "df": 0, "n": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}}, "df": 3}, "t": {"docs": {"perplexipy.codex.CodexREPL.editingMode": {"tf": 1}, "perplexipy.codex.codex": {"tf": 1}}, "df": 2}}, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "h": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}}, "df": 3}}}}}, "i": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.codex.CodexREPL.queryCodeStyle": {"tf": 1}}, "df": 1}}, "o": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.codex.CodexREPL.queryCodeStyle": {"tf": 1}}, "df": 1}}}}, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}}}, "x": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}}, "df": 3, "u": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "l": {"docs": {"perplexipy.PerplexityClient.queryStreamable": {"tf": 1}, "perplexipy.responses.Responses": {"tf": 1}}, "df": 2}}}}}}, "u": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.models": {"tf": 1}}, "df": 2}}}}, "r": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.codex.CodexREPL.queryCodeStyle": {"tf": 1}}, "df": 1}}}, "y": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.codex.CodexREPL.queryCodeStyle": {"tf": 1}}, "df": 1}}}}, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "v": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}}, "df": 1, "i": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1.4142135623730951}}, "df": 1}}}}}}}}}, "c": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PerplexityClient": {"tf": 1}}, "df": 1, "s": {"docs": {"perplexipy.responses.Responses": {"tf": 1}}, "df": 1}}}}}}}}}}, "d": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1.4142135623730951}}, "df": 1}}}}}, "e": {"docs": {}, "df": 0, "d": {"docs": {"perplexipy.responses.Responses": {"tf": 1}}, "df": 1}}}, "u": {"docs": {}, "df": 0, "m": {"docs": {"perplexipy.codex.CodexREPL.queryCodeStyle": {"tf": 1}}, "df": 1}}, "a": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.responses.Responses": {"tf": 1}}, "df": 1}}}}}}, "m": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}, "perplexipy.PerplexityClient.__init__": {"tf": 1}, "perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}, "perplexipy.codex.CodexREPL.core": {"tf": 1}, "perplexipy.codex.CodexREPL.makeQuery": {"tf": 1}, "perplexipy.codex.codexCore": {"tf": 1}}, "df": 8}}}, "a": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.codex.CodexREPL.editingMode": {"tf": 1.4142135623730951}}, "df": 1}}}}, "a": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "h": {"docs": {"perplexipy.PerplexityClient": {"tf": 1}, "perplexipy.codex.CodexREPL.displayModels": {"tf": 1}}, "df": 2}}, "s": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {"perplexipy.PerplexityClient.queryStreamable": {"tf": 1}}, "df": 1}}}}}, "f": {"docs": {}, "df": 0, "f": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}}}, "x": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}, "perplexipy.errors.PerplexityClientError": {"tf": 1}}, "df": 4}}}}}}}, "e": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.codex.CodexREPL.queryCodeStyle": {"tf": 1}, "perplexipy.codex.CodexREPL.makeQuery": {"tf": 1}}, "df": 2}}}}}}, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}}, "df": 3, "s": {"docs": {"perplexipy.errors.PerplexityClientError": {"tf": 1}}, "df": 1}}}}}, "d": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {"perplexipy.codex.CodexREPL.editingMode": {"tf": 1}}, "df": 1}}}}}}}, "v": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}}, "df": 1}}}}}}, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "d": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1.4142135623730951}}, "df": 1}}, "u": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PerplexityClient.model": {"tf": 1}, "perplexipy.codex.CodexREPL.editingMode": {"tf": 1.4142135623730951}, "perplexipy.codex.CodexREPL.queryCodeStyle": {"tf": 1}}, "df": 3, "s": {"docs": {"perplexipy.codex.CodexREPL.editingMode": {"tf": 1}, "perplexipy.codex.CodexREPL.queryCodeStyle": {"tf": 1}}, "df": 2}, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {"perplexipy.codex.CodexREPL.makeQuery": {"tf": 1}}, "df": 1}}}}}}}}}, "i": {"docs": {"perplexipy.codex.CodexREPL.editingMode": {"tf": 1.7320508075688772}}, "df": 1}, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.codex.CodexREPL.queryCodeStyle": {"tf": 1}}, "df": 1}}}}}}}}, "o": {"docs": {}, "df": 0, "f": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}, "perplexipy.PERPLEXITY_VALID_ROLES": {"tf": 1}, "perplexipy.ModelInfo.__init__": {"tf": 1}, "perplexipy.PerplexityClient.__init__": {"tf": 1.7320508075688772}, "perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}, "perplexipy.PerplexityClient.models": {"tf": 1.4142135623730951}, "perplexipy.codex.CodexREPL.core": {"tf": 1}, "perplexipy.codex.CodexREPL.displayModels": {"tf": 1.4142135623730951}, "perplexipy.codex.CodexREPL.editingMode": {"tf": 1.7320508075688772}, "perplexipy.codex.CodexREPL.queryCodeStyle": {"tf": 1}, "perplexipy.codex.codexCore": {"tf": 1}, "perplexipy.codex.codex": {"tf": 1}}, "df": 14, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {"perplexipy.codex.CodexREPL.core": {"tf": 1}, "perplexipy.codex.codexCore": {"tf": 1}}, "df": 2}}}}, "t": {"docs": {}, "df": 0, "h": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}, "perplexipy.codex.CodexREPL.editingMode": {"tf": 1}}, "df": 4, "w": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}}, "df": 1}}}}}}}}, "b": {"docs": {}, "df": 0, "j": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.PERPLEXITY_VALID_ROLES": {"tf": 1}, "perplexipy.PerplexityClient.__init__": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}, "perplexipy.codex.CodexREPL.queryCodeStyle": {"tf": 1}}, "df": 4, "s": {"docs": {"perplexipy.PerplexityClient": {"tf": 1}}, "df": 1}}}}}}, "w": {"docs": {}, "df": 0, "n": {"docs": {"perplexipy.PerplexityClient": {"tf": 1}}, "df": 1}}, "r": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}, "perplexipy.PerplexityClient.query": {"tf": 1.7320508075688772}, "perplexipy.PerplexityClient.queryBatch": {"tf": 2}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1.7320508075688772}, "perplexipy.codex.CodexREPL.core": {"tf": 1}, "perplexipy.codex.CodexREPL.editingMode": {"tf": 1.4142135623730951}, "perplexipy.codex.CodexREPL.queryCodeStyle": {"tf": 1.4142135623730951}, "perplexipy.codex.CodexREPL.makeQuery": {"tf": 1}, "perplexipy.codex.codexCore": {"tf": 1}}, "df": 9}, "n": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}, "perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}}, "df": 4}, "l": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy.PerplexityClient.queryStreamable": {"tf": 1}, "perplexipy.responses.Responses": {"tf": 1}}, "df": 2}}}, "p": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {"perplexipy.responses.Responses": {"tf": 1}}, "df": 1, "a": {"docs": {}, "df": 0, "i": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1.4142135623730951}, "perplexipy.responses.Responses": {"tf": 1}}, "df": 4}}}}}, "v": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {"perplexipy.codex.CodexREPL.editingMode": {"tf": 1}}, "df": 1}}}}}}}}}, "n": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}, "perplexipy.codex.CodexREPL.displayModels": {"tf": 1}}, "df": 2, "d": {"docs": {"perplexipy.PerplexityClient.models": {"tf": 1}}, "df": 1}}}, "t": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "l": {"docs": {"perplexipy.codex.CodexREPL.makeQuery": {"tf": 1}}, "df": 1}}}}}}, "e": {"docs": {}, "df": 0, "w": {"docs": {"perplexipy.ModelInfo.__init__": {"tf": 1}, "perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 2}, "e": {"docs": {}, "df": 0, "d": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}, "u": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {"perplexipy.ModelInfo.parameterCount": {"tf": 1}, "perplexipy.ModelInfo.contextLength": {"tf": 1}, "perplexipy.ModelInfo.modelType": {"tf": 1}, "perplexipy.ModelInfo.availability": {"tf": 1}}, "df": 4}}}}}, "o": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1, "t": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}, "n": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}, "perplexipy.codex.CodexREPL.core": {"tf": 1}, "perplexipy.codex.CodexREPL.makeQuery": {"tf": 1}, "perplexipy.codex.codexCore": {"tf": 1}}, "df": 6}}}}, "u": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PERPLEXITY_VALID_ROLES": {"tf": 1}, "perplexipy.PerplexityClient.__init__": {"tf": 1}, "perplexipy.codex.CodexREPL.queryCodeStyle": {"tf": 1}}, "df": 3, "s": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}, "perplexipy.PerplexityClient.model": {"tf": 1}, "perplexipy.codex.CodexREPL.queryCodeStyle": {"tf": 1}}, "df": 3}, "r": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1.4142135623730951}, "perplexipy.codex.CodexREPL.core": {"tf": 1.4142135623730951}, "perplexipy.codex.codexCore": {"tf": 1.4142135623730951}}, "df": 3, "q": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy.codex.CodexREPL.core": {"tf": 1}, "perplexipy.codex.CodexREPL.makeQuery": {"tf": 1.4142135623730951}, "perplexipy.codex.codexCore": {"tf": 1}}, "df": 3}}}}}}}, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}, "perplexipy.codex.CodexREPL.makeQuery": {"tf": 1}, "perplexipy.responses.Responses": {"tf": 1}}, "df": 3}}}}, "r": {"docs": {}, "df": 0, "l": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}, "n": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}}}}}, "p": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {"perplexipy.codex.CodexREPL.editingMode": {"tf": 1}}, "df": 1}}}}}}}, "d": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "v": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}}, "df": 1}}}}, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "n": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}, "c": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}}}}}}}}}}, "i": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy.PERPLEXITY_VALID_ROLES": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.models": {"tf": 1.4142135623730951}}, "df": 2}}}}}}}}, "s": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy.codex.CodexREPL.displayModels": {"tf": 1}, "perplexipy.codex.codex": {"tf": 1}}, "df": 2, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {"perplexipy.codex.codex": {"tf": 1}}, "df": 1}}}}}}}}}, "e": {"docs": {}, "df": 0, "f": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.PerplexityClient.model": {"tf": 1.4142135623730951}, "perplexipy.codex.DEFAULT_MODEL_NAME": {"tf": 1}}, "df": 2, "s": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}}}}, "s": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"perplexipy.PerplexityClient.models": {"tf": 1}}, "df": 1}}}}}, "b": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {"perplexipy.codex.CodexREPL.makeQuery": {"tf": 1}}, "df": 1}}}}}}}}, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.codex.CodexREPL.queryCodeStyle": {"tf": 1}}, "df": 1}}}}}}}}, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "a": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}}, "df": 3}}}}, "m": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}}, "df": 1}}}, "e": {"docs": {"perplexipy.codex.CodexREPL.editingMode": {"tf": 1.7320508075688772}}, "df": 1, "l": {"docs": {"perplexipy.PERPLEXITY_VALID_ROLES": {"tf": 1}, "perplexipy.PerplexityClient.__init__": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}, "perplexipy.PerplexityClient.models": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.model": {"tf": 1.4142135623730951}, "perplexipy.codex.DEFAULT_MODEL_NAME": {"tf": 1}, "perplexipy.codex.CodexREPL.core": {"tf": 1}, "perplexipy.codex.CodexREPL.displayModels": {"tf": 1}, "perplexipy.codex.codexCore": {"tf": 1}}, "df": 11, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "f": {"docs": {}, "df": 0, "o": {"docs": {"perplexipy.ModelInfo": {"tf": 1}, "perplexipy.ModelInfo.__init__": {"tf": 1}, "perplexipy.PerplexityClient.models": {"tf": 1}}, "df": 3}}}}, "t": {"docs": {}, "df": 0, "y": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.ModelInfo": {"tf": 1}, "perplexipy.ModelInfo.__init__": {"tf": 1}, "perplexipy.PerplexityClient.models": {"tf": 1}}, "df": 3}}}}, "s": {"docs": {"perplexipy.PerplexityClient.models": {"tf": 1.4142135623730951}, "perplexipy.codex.CodexREPL.displayModels": {"tf": 1}}, "df": 2}}}, "i": {"docs": {}, "df": 0, "f": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}}}}, "s": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}, "perplexipy.codex.CodexREPL.core": {"tf": 1}, "perplexipy.codex.codexCore": {"tf": 1}}, "df": 5}}, "r": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PerplexityClient.queryBatch": {"tf": 1}}, "df": 1}}}, "a": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"perplexipy.PERPLEXITY_VALID_ROLES": {"tf": 1}}, "df": 1}}}}}}}}}}, "t": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "h": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}, "l": {"docs": {}, "df": 0, "f": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}}, "df": 3}}}}}}}, "y": {"docs": {"perplexipy.codex.CodexREPL.queryCodeStyle": {"tf": 1}}, "df": 1}}, "u": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PerplexityClient": {"tf": 1}}, "df": 1}}}}}}}, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}}, "df": 2}}}}}, "t": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "a": {"docs": {"perplexipy.PerplexityClient.queryStreamable": {"tf": 1}, "perplexipy.responses.Responses": {"tf": 1}}, "df": 2}}}}}}}}, "l": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "d": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}}, "df": 1}}, "n": {"docs": {}, "df": 0, "g": {"docs": {"perplexipy.PerplexityClient.queryStreamable": {"tf": 1}}, "df": 1}}}, "i": {"docs": {}, "df": 0, "k": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PERPLEXITY_VALID_ROLES": {"tf": 1}}, "df": 1}}, "s": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.codex.CodexREPL.displayModels": {"tf": 1.4142135623730951}, "perplexipy.codex.codex": {"tf": 1}}, "df": 2, "e": {"docs": {}, "df": 0, "d": {"docs": {"perplexipy.PerplexityClient.models": {"tf": 1}}, "df": 1}}}}, "n": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.codex.codex": {"tf": 1}}, "df": 1}}}, "a": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.codex.CodexREPL.makeQuery": {"tf": 1}}, "df": 1, "s": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}}, "df": 3}}}}}}}}}, "f": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "m": {"docs": {"perplexipy.PERPLEXITY_API_KEY": {"tf": 1}, "perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}, "perplexipy.PerplexityClient.model": {"tf": 1}, "perplexipy.codex.CodexREPL.editingMode": {"tf": 1}, "perplexipy.codex.CodexREPL.makeQuery": {"tf": 1.4142135623730951}, "perplexipy.responses.Responses": {"tf": 1}}, "df": 7}}, "e": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.codex.CodexREPL.makeQuery": {"tf": 1}}, "df": 1}}}, "o": {"docs": {}, "df": 0, "r": {"docs": {"perplexipy.ModelInfo.parameterCount": {"tf": 1}, "perplexipy.ModelInfo.contextLength": {"tf": 1}, "perplexipy.ModelInfo.modelType": {"tf": 1}, "perplexipy.ModelInfo.availability": {"tf": 1}, "perplexipy.PerplexityClient.__init__": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.model": {"tf": 1}, "perplexipy.codex.CodexREPL.core": {"tf": 1}, "perplexipy.codex.CodexREPL.queryCodeStyle": {"tf": 1}, "perplexipy.codex.codexCore": {"tf": 1}, "perplexipy.codex.codex": {"tf": 1}, "perplexipy.errors.PerplexityClientError": {"tf": 1}}, "df": 12}}, "i": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "d": {"docs": {"perplexipy.ModelInfo.parameterCount": {"tf": 1}, "perplexipy.ModelInfo.contextLength": {"tf": 1}, "perplexipy.ModelInfo.modelType": {"tf": 1}, "perplexipy.ModelInfo.availability": {"tf": 1}}, "df": 4}}}, "x": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}}, "u": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy.PerplexityClient": {"tf": 1}}, "df": 1}}}}}}}}}}}, "t": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.codex.CodexREPL.queryCodeStyle": {"tf": 1}}, "df": 1}}}}}, "a": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.codex.CodexREPL.queryCodeStyle": {"tf": 1}}, "df": 1}}}}}, "c": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.PERPLEXITY_VALID_ROLES": {"tf": 1}, "perplexipy.PerplexityClient.models": {"tf": 1}}, "df": 2}}}}}}}}}}, "n": {"docs": {"perplexipy.PerplexityClient": {"tf": 1}}, "df": 1}, "l": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}}, "df": 3}}}, "r": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.PerplexityClient.models": {"tf": 1}}, "df": 1}}}}, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "x": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "h": {"docs": {"perplexipy.ModelInfo": {"tf": 1}, "perplexipy.ModelInfo.__init__": {"tf": 1}, "perplexipy.PerplexityClient.models": {"tf": 1}}, "df": 3}}}}}}, "s": {"docs": {"perplexipy.PerplexityClient": {"tf": 1}}, "df": 1}}}, "n": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.PerplexityClient.queryStreamable": {"tf": 1}}, "df": 1}}}}, "n": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}}, "f": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}}}}}}}, "s": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.codex.codex": {"tf": 1.4142135623730951}}, "df": 1}}}}}, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}, "perplexipy.codex.CodexREPL.displayModels": {"tf": 1}}, "df": 2}}}}}}}}}}}, "d": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}, "perplexipy.codex.CodexREPL.queryCodeStyle": {"tf": 1.4142135623730951}}, "df": 2, "x": {"docs": {"perplexipy.codex.DEFAULT_MODEL_NAME": {"tf": 1}}, "df": 1}}}, "m": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "d": {"docs": {"perplexipy.codex.codex": {"tf": 1}}, "df": 1}}}}}}, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.ModelInfo.__init__": {"tf": 1}, "perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 2}}}}}, "u": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}, "perplexipy.codex.CodexREPL.editingMode": {"tf": 1}, "perplexipy.codex.CodexREPL.queryCodeStyle": {"tf": 1}}, "df": 3}}}}}}, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.PerplexityClient.queryStreamable": {"tf": 1}, "perplexipy.PerplexityClient.model": {"tf": 1}, "perplexipy.errors.PerplexityClientError": {"tf": 1}}, "df": 3}}}, "c": {"docs": {}, "df": 0, "k": {"docs": {"perplexipy.codex.CodexREPL.editingMode": {"tf": 1}}, "df": 1}}}, "e": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {"perplexipy.errors.PerplexityClientError": {"tf": 1}}, "df": 1}}}}}}}, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "q": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {"perplexipy.PERPLEXITY_VALID_ROLES": {"tf": 1}}, "df": 1}}}}, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.codex.CodexREPL.makeQuery": {"tf": 1}}, "df": 1, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {"perplexipy.PerplexityClient.model": {"tf": 1}}, "df": 1}}}}}}}}, "p": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}}}}}}}}, "g": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "r": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}}}, "t": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "n": {"docs": {"perplexipy.PerplexityClient.queryStreamable": {"tf": 1}, "perplexipy.PerplexityClient.model": {"tf": 1}, "perplexipy.codex.CodexREPL.queryCodeStyle": {"tf": 1}, "perplexipy.codex.CodexREPL.makeQuery": {"tf": 1}}, "df": 4, "s": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}, "perplexipy.PerplexityClient.query": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 2}, "perplexipy.PerplexityClient.models": {"tf": 1}, "perplexipy.codex.CodexREPL.core": {"tf": 1}, "perplexipy.codex.CodexREPL.displayModels": {"tf": 1}, "perplexipy.codex.CodexREPL.editingMode": {"tf": 1}, "perplexipy.codex.CodexREPL.makeQuery": {"tf": 1}, "perplexipy.codex.codexCore": {"tf": 1}, "perplexipy.codex.codex": {"tf": 1}, "perplexipy.responses.Responses": {"tf": 1}}, "df": 12}}}}}, "c": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}}}}}}}}}}, "e": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "v": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}}, "df": 2}}}}}, "s": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1.4142135623730951}, "perplexipy.codex.CodexREPL.makeQuery": {"tf": 1}, "perplexipy.codex.codex": {"tf": 1}, "perplexipy.responses.Responses": {"tf": 1.4142135623730951}}, "df": 6, "s": {"docs": {"perplexipy.PerplexityClient.queryStreamable": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.model": {"tf": 1}, "perplexipy.responses.Responses": {"tf": 1}}, "df": 3}}}}}}, "u": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.codex.CodexREPL.core": {"tf": 1}, "perplexipy.codex.CodexREPL.makeQuery": {"tf": 1}, "perplexipy.codex.codexCore": {"tf": 1}, "perplexipy.codex.codex": {"tf": 1}}, "df": 4}}}}}, "o": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}, "a": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}, "perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}, "perplexipy.codex.CodexREPL.makeQuery": {"tf": 1}}, "df": 5}, "d": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1.4142135623730951}}, "df": 3}}}}}}, "b": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PerplexityClient": {"tf": 1}, "perplexipy.PerplexityClient.__init__": {"tf": 1}, "perplexipy.codex.codex": {"tf": 1}}, "df": 3}, "o": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "n": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}, "perplexipy.codex.CodexREPL.queryCodeStyle": {"tf": 1}}, "df": 2}}}}}}, "a": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "q": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1.4142135623730951}}, "df": 3}}}}}}}}}}}}}, "t": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "h": {"docs": {"perplexipy.PerplexityClient.queryBatch": {"tf": 1}}, "df": 1}}}}, "y": {"docs": {"perplexipy.PerplexityClient.models": {"tf": 1}, "perplexipy.codex.CodexREPL.displayModels": {"tf": 1}}, "df": 2}, "u": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.responses.Responses": {"tf": 1}}, "df": 1}}}}}, "h": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}, "perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}}, "df": 4}, "n": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {"perplexipy.errors.PerplexityClientError": {"tf": 1}}, "df": 1}}}}}}}, "t": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, ":": {"docs": {}, "df": 0, "/": {"docs": {}, "df": 0, "/": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.PerplexityClient.models": {"tf": 1}}, "df": 1}}}}}}}}}}}, "o": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {"perplexipy.codex.CodexREPL.editingMode": {"tf": 1}}, "df": 1}}}}}}, "u": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "n": {"docs": {"perplexipy.codex.CodexREPL.queryCodeStyle": {"tf": 1.4142135623730951}}, "df": 1}}}}}, "q": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}, "y": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 2.23606797749979}, "perplexipy.PerplexityClient.queryBatch": {"tf": 2.23606797749979}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 2.23606797749979}, "perplexipy.codex.CodexREPL.core": {"tf": 2}, "perplexipy.codex.CodexREPL.queryCodeStyle": {"tf": 1}, "perplexipy.codex.CodexREPL.makeQuery": {"tf": 1}, "perplexipy.codex.codexCore": {"tf": 2}, "perplexipy.codex.codex": {"tf": 1.4142135623730951}, "perplexipy.responses.Responses": {"tf": 1}}, "df": 9}}, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"perplexipy.codex.CodexREPL.core": {"tf": 1}, "perplexipy.codex.codexCore": {"tf": 1}}, "df": 2}}}}}}}}, "w": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "h": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1.4142135623730951}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}, "perplexipy.PerplexityClient.models": {"tf": 1.4142135623730951}, "perplexipy.codex.CodexREPL.core": {"tf": 1}, "perplexipy.codex.CodexREPL.editingMode": {"tf": 1.7320508075688772}, "perplexipy.codex.CodexREPL.queryCodeStyle": {"tf": 1}, "perplexipy.codex.codexCore": {"tf": 1}, "perplexipy.codex.codex": {"tf": 1}}, "df": 9}}, "l": {"docs": {}, "df": 0, "l": {"docs": {"perplexipy.codex.codex": {"tf": 1}}, "df": 1}}}, "h": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "v": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryBatch": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}}, "df": 3}}}}}}}, "a": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.codex.CodexREPL.core": {"tf": 1}, "perplexipy.codex.codexCore": {"tf": 1}}, "df": 2}}, "o": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.codex.CodexREPL.queryCodeStyle": {"tf": 1}}, "df": 1}}}}}, "g": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "c": {"docs": {"perplexipy.errors.PerplexityClientError": {"tf": 1}}, "df": 1}}}}}}}}}}, "pipeline": ["trimmer"], "_isPrebuiltIndex": true};
 
     // mirrored in build-search-index.js (part 1)
     // Also split on html tags. this is a cheap heuristic, but good enough.
diff --git a/perplexipy/__init__.py b/perplexipy/__init__.py
index 886e0f1..23f83db 100644
--- a/perplexipy/__init__.py
+++ b/perplexipy/__init__.py
@@ -255,15 +255,12 @@ def models(self, unitTest = False):
         - `availability`
         """
         supportedModels = OrderedDict({
-            'codellama-70b-instruct': ModelInfo('70B', 16384, 'chat completion', 'open source',),
             'llama-3-70b-instruct': ModelInfo('70B', 8192, 'chat completion', 'open source'),
             'llama-3-8b-instruct': ModelInfo('8B', 8192, 'chat completion', 'open source'),
             'llama-3-sonar-large-32k-chat': ModelInfo('8x7B', 32768, 'chat completion', 'Perplexity',),
             'llama-3-sonar-large-32k-online': ModelInfo('8x7B', 32768, 'chat completion', 'Perplexity',),
             'llama-3-sonar-small-32k-chat': ModelInfo('7B', 32768, 'chat completion', 'Perplexity',),
             'llama-3-sonar-small-32k-online': ModelInfo('7B', 32768, 'chat completion', 'Perplexity',),
-            'mistral-7b-instruct': ModelInfo('7B', 16384, 'chat completion', 'open source',),
-            'mixtral-8x7b-instruct': ModelInfo('8x7B', 16384, 'chat completion', 'open source',),
         })
 
         return supportedModels
diff --git a/perplexipy/codex.py b/perplexipy/codex.py
index bf298ba..cea36ba 100644
--- a/perplexipy/codex.py
+++ b/perplexipy/codex.py
@@ -7,6 +7,7 @@
 from prompt_toolkit import print_formatted_text as printF
 from prompt_toolkit.enums import EditingMode
 
+from perplexipy import PERPLEXITY_DEFAULT_MODEL
 from perplexipy import PerplexityClient
 from perplexipy import __VERSION__
 
@@ -34,7 +35,11 @@
 @private
 """
 
-DEFAULT_MODEL_NAME = 'mixtral-8x7b-instruct'
+DEFAULT_MODEL_NAME = PERPLEXITY_DEFAULT_MODEL
+"""
+@public
+Codex Playground default model.
+"""
 DEFAULT_VIM_EDIT_MODE = True
 """
 @private
@@ -79,6 +84,7 @@ def __init__(self):
         self._client = PerplexityClient(key = os.environ['PERPLEXITY_API_KEY'])
         self._client.model = DEFAULT_MODEL_NAME
         self._queryCodeStyle = True
+        self._editingMode = EditingMode.VI
 
 
     def core(self, userQuery: str) -> str:
@@ -95,6 +101,7 @@ def core(self, userQuery: str) -> str:
         The result of the query, or `None` if the query was empty.
         """
         result = None
+        userQuery = userQuery.strip()
         if userQuery:
             if not self._client:
                 self._client = PerplexityClient(key = os.environ['PERPLEXITY_API_KEY'])
@@ -117,7 +124,7 @@ def activeModel(self, modelID: int = 0) -> str:
 
 
 
-    def _displayModels(self) -> list:
+    def displayModels(self) -> list:
         """
         Display the list of models supported by the API.
 
@@ -125,7 +132,7 @@ def _displayModels(self) -> list:
         =======
         A list of strings, each corresponding to a model name.
         """
-        _activeModel()
+        self.activeModel()
         print('Available models:\n')
         n = 1
         for model in self._client.models.keys():
@@ -136,28 +143,100 @@ def _displayModels(self) -> list:
         return list(self._client.models.keys())
 
 
-    def editingMode(self, session: PromptSession, mode = None) -> PromptSession:
+    def editingMode(self, session: PromptSession, mode: str = None) -> PromptSession:
+        """
+        Sets the editing mode to `vi` or `emacs`.
+
+        Arguments
+        =========
+            session
+        An instance of `PromptSession` from the current Click hosting.
+
+            mode
+        A string with the values of 'vi' or 'emacs'; any other value is
+        overriden with `vi`.
+
+        Returns
+        =======
+        An updated PromptSession instance that with the value of `mode`.
+        """
         if mode:
             mode = mode.lower()
-            newEditingMode = EditingMode.EMACS if mode == 'emacs' else EditingMode.VI
-            session = PromptSession(editing_mode = newEditingMode)
+            self._editingMode = EditingMode.EMACS if mode == 'emacs' else EditingMode.VI
+            session = PromptSession(editing_mode = self._editingMode)
 
         editingMode = str(session.editing_mode).replace('EditingMode.', '').lower()
         click.secho('Editing mode = %s' % editingMode, fg = 'bright_blue')
 
         return session
 
-    def _queryStyle(self, newStyle: str = None) -> bool:
+
+    @property
+    def queryCodeStyle(self) -> bool:
+        """
+        Return `True` if the current style is code, `False` for human.  The object uses
+        this Boolean value to determine the type of query to execute.  Future
+        versions may use the words `code` or `human`, or perhaps an enum with
+        those values.
+        """
+        return self._queryCodeStyle
+
+
+    @queryCodeStyle.setter
+    def queryCodeStyle(self, newStyle: str = None) -> bool:
+        """
+        Set the receiver query code style to `newStyle`.  Code style queries
+        generate responses that include code snippets in Python or JavaScript,
+        and URLs to references that show how to address the query topic.
+        `human` style queries produce textual, prose responses that address the
+        query topic in detail, and may or may not contain code, even if the
+        query was about a programming concept.
+
+        The method will default to `code` style for any value of `newStyle` that
+        isn't `code`.
+
+        Arguments
+        =========
+            `newStyle`
+        A string with either value of 'code' or 'human'.
+
+        Returns
+        =======
+        `True` if the current style is code, `False` for human.  The object uses
+        this Boolean value to determine the type of query to execute.  Future
+        versions may use the words `code` or `human`, or perhaps an enum with
+        those values.
+        """
         if newStyle:
             self._queryCodeStyle = newStyle != 'human'
         click.secho('Coding query style = %s' % self._queryCodeStyle, fg = 'bright_blue')
-        return self._queryCodeStyle
 
-    def _makeQuery(self, userQuery: str) -> str:
+
+    def makeQuery(self, userQuery: str) -> str:
+        """
+        Execute a query using the `PerplexityClient` and return the result in
+        a string.
+
+        Arguments
+        =========
+            userQuery
+        A free from, natural language string describing the request to the AI
+        provider.
+
+        Returns
+        =======
+        The response from the AI/LLM.
+
+        Raises
+        ======
+        `ValueError` if `userQuery` is `None` or an empty string.
+        """
+        if not userQuery:
+            raise ValueError('userQuery string cannot be empty')
         if self._queryCodeStyle:
             userQuery = QUERY_DETAILED+userQuery
 
-        return codex.core(userQuery)
+        return self.core(userQuery)
 
 
     def _saveConfigTo(self, config: dict, fileName: str = CONFIG_FILE_NAME, pathName = CONFIG_PATH):
@@ -377,6 +456,8 @@ def _runREPL() -> str:
     _queryStyle('code' if config['queryCodeStyle'] else 'human')
     while True:
         userQuery = session.prompt('Ask anything (/exit to end): ')
+        if not userQuery:
+            continue
         if userQuery[0] in ('/', '?', ':'):
             parts = userQuery.split(' ')
             command = parts[0]
diff --git a/pyproject.toml b/pyproject.toml
index 82f5050..5e702ce 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -31,7 +31,7 @@ license = { text='BSD-3' }
 name = 'PerplexiPy'
 readme = 'README.md'
 requires-python = '>=3.9'
-version = '1.0.7'
+version = '1.1.1'
 
 
 [project.scripts]


Test patch:
diff --git a/tests/codex-test.py b/tests/codex-test.py
index 038b795..eeb7742 100644
--- a/tests/codex-test.py
+++ b/tests/codex-test.py
@@ -4,13 +4,13 @@
 from unittest.mock import patch
 
 from click.testing import CliRunner
+from perplexipy.codex import CodexREPL
 from perplexipy.codex import DEFAULT_MODEL_NAME
-from perplexipy.codex import _activeModel
-from perplexipy.codex import _die
-from perplexipy.codex import _displayModels
-from perplexipy.codex import _loadConfigFrom
+from perplexipy.codex import _die # noqa: F401
 from perplexipy.codex import codex
 from perplexipy.codex import codexCore
+from prompt_toolkit import PromptSession
+from prompt_toolkit.enums import EditingMode
 
 import os
 import pytest
@@ -22,15 +22,20 @@
 TEST_CONFIG_FILE_NAME = os.path.join(TEST_CONFIG_PATH, 'codex-repl.yaml')
 
 
+# *** globals ***
+
+_codex = None # test_CodexREPL() initializes it
+
+
 # *** fixtures ***
 
 @pytest.fixture
-def _configFileName():
+def configFileName():
     return TEST_CONFIG_FILE_NAME
 
 
 @pytest.fixture
-def _configPath():
+def configPath():
     return TEST_CONFIG_PATH
 
 
@@ -39,13 +44,27 @@ def stdoutHide(monkeypatch):
     monkeypatch.setattr('sys.stdout', open('/dev/null', 'w'))
 
 
+@pytest.fixture
+def codexInstance():
+    if not _codex:
+        raise RuntimeError("test_CodexREPL() hasn't been executed!")
+
+    return _codex
+
+
 # *** tests ***
 
-@pytest.mark.skip('_die() works')
+@pytest.mark.skip("_die() doesn't require a unit test")
 def test__die():
     pass
 
 
+def test_CodexREPL():
+    global _codex
+
+    _codex = CodexREPL()
+
+
 def test_codexCore():
     result = codexCore(TEST_QUERY)
     assert result
@@ -68,42 +87,80 @@ def test_codex(stdinMock):
     result = runner.invoke(codex, [ ])
 
 
-def test__loadConfigFrom(_configFileName, _configPath):
-    assert not os.path.exists(_configPath)
-    assert not os.path.exists(_configFileName)
-    config = _loadConfigFrom(_configFileName, _configPath)
-    assert os.path.exists(_configPath)
-    assert os.path.exists(_configFileName)
+def test_CodexRepl__loadConfigFrom(codexInstance, configFileName, configPath):
+    print(configPath)
+    bogusPath = tempfile.TemporaryDirectory().name
+    bogusFileName = os.path.join(bogusPath, 'codex-repl.yaml')
+    assert not os.path.exists(bogusPath)
+    assert not os.path.exists(bogusFileName)
+    config = codexInstance._loadConfigFrom(configFileName, configPath)
+    assert os.path.exists(configPath)
+    assert os.path.exists(configFileName)
     assert isinstance(config, dict)
     assert config['activeModel'] == DEFAULT_MODEL_NAME
-    assert config['activeModel'] in _displayModels()
+    assert config['activeModel'] in codexInstance.displayModels()
 
     # Config file already exists:
-    config = _loadConfigFrom(_configFileName, _configPath)
+    config = codexInstance._loadConfigFrom(configFileName, configPath)
     assert isinstance(config, dict)
 
 
-def test__displayModels():
-    models = _displayModels()
+def test_CodexREPL_displayModels(codexInstance):
+    models = codexInstance.displayModels()
     assert models
     assert isinstance(models, list)
     assert DEFAULT_MODEL_NAME in models
 
 
-def test__activateModel():
-    model = _activeModel()
+def test_CodexREPL_activateModel(codexInstance):
+    model = codexInstance.activeModel()
     assert model
     assert isinstance(model, str)
 
-    models = _displayModels()
+    models = codexInstance.displayModels()
 
     modelID = len(models)
-    model = _activeModel(modelID)
+    model = codexInstance.activeModel(modelID)
     assert models[modelID-1] == model
     modelID = 2
-    model = _activeModel(modelID)
+    model = codexInstance.activeModel(modelID)
     assert models[modelID-1] == model
 
 
-# test__activateModel()
+def test_CodexREPL_editingMode(codexInstance):
+    session = PromptSession()
+    editingMode = codexInstance._editingMode
+    session = codexInstance.editingMode(session, str(EditingMode.EMACS).replace('EditingMode.', ''))
+    assert codexInstance._editingMode == EditingMode.EMACS
+    session = codexInstance.editingMode(session, str(editingMode).replace('EditingMode.', ''))
+    assert codexInstance._editingMode == editingMode
+
+
+def test_CodexREPL_queryStyle(codexInstance):
+    queryStyle = codexInstance.queryCodeStyle
+    newStyle = 'human' if queryStyle else 'code'
+    codexInstance.queryCodeStyle = newStyle
+    assert ('human' if not codexInstance.queryCodeStyle else 'code') == newStyle
+    codexInstance.queryCodeStyle = 'bogus'
+    assert codexInstance.queryCodeStyle
+    codexInstance.queryCodeStyle = queryStyle
+
+
+def test_CodexREPL_makeQuery(codexInstance):
+    result = codexInstance.makeQuery(TEST_QUERY)
+    assert result
+    assert isinstance(result, str)
+
+    with pytest.raises(ValueError):
+        assert not codexInstance.makeQuery('')
+    with pytest.raises(ValueError):
+        assert not codexInstance.makeQuery(None)
+
+
+# test_CodexREPL()
+# test_CodexRepl__loadConfigFrom(_codex, TEST_CONFIG_FILE_NAME, TEST_CONFIG_PATH)
+# test_CodexREPL_editingMode(_codex)
+# test_CodexREPL_queryStyle(_codex)
+# test_CodexREPL_makeQuery(_codex)
+