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

Issue:
BUG: Codex and PerplexiPy hard crash if the API key has weird characters or is otherwise invalid



Discussion / hints:
Low priority.

Fix patch:
diff --git a/Makefile b/Makefile
index 048296f..817c1b5 100644
--- a/Makefile
+++ b/Makefile
@@ -11,6 +11,7 @@ DEVPI_USER=$(shell cat ./devpi-user.txt)
 DIST=./dist
 MANPAGES=./manpages
 PACKAGE=$(shell cat package.txt)
+PERPLEXITY_API_KEY=$(shell cut -d "\"" -f 2 .env)
 REQUIREMENTS=requirements.txt
 VERSION=$(shell echo "from $(PACKAGE) import __VERSION__; print(__VERSION__)" | python)
 
@@ -48,7 +49,7 @@ devpi:
 docs: ALWAYS
 	mkdir -p $(API_DOC_DIR)
 	[[ -e ".env" ]] && mv ".env" "_env"
-	VERSION="$(VERSION)" pdoc --logo="https://images2.imgbox.com/57/94/AsI1WSfy_o.png" --favicon="https://cime.net/upload_area/favicon.ico" -n -o $(API_DOC_DIR) -t ./resources $(PACKAGE)
+	PERPLEXITY_API_KEY=$(PERPLEXITY_API_KEY) VERSION="$(VERSION)" PDOC_ALLOW_EXEC=1 pdoc --logo="https://images2.imgbox.com/57/94/AsI1WSfy_o.png" --favicon="https://cime.net/upload_area/favicon.ico" -n -o $(API_DOC_DIR) -t ./resources $(PACKAGE)
 	[[ -e "_env" ]] && mv "_env" ".env"
 
 
diff --git a/README.md b/README.md
index 9fb6662..6f87e5a 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-% perplexipy(3) Version 1.0.6 | Perplexity AI high level API documentation
+% perplexipy(3) Version 1.0.7 | Perplexity AI high level API documentation
 
 Name
 ====
diff --git a/codex-README.md b/codex-README.md
index 34eeb53..b79c8cc 100644
--- a/codex-README.md
+++ b/codex-README.md
@@ -1,4 +1,4 @@
-% Codex(3) Version 1.0.6 | PerplexiPy command line code explainer
+% Codex(3) Version 1.0.7 | PerplexiPy command line code explainer
 
 Name
 ====
diff --git a/docs/perplexipy.html b/docs/perplexipy.html
index e51be48..b45e3cf 100644
--- a/docs/perplexipy.html
+++ b/docs/perplexipy.html
@@ -154,286 +154,285 @@ <h1 class="modulename">
 </span><span id="L-32"><a href="#L-32"><span class="linenos"> 32</span></a>
 </span><span id="L-33"><a href="#L-33"><span class="linenos"> 33</span></a>
 </span><span id="L-34"><a href="#L-34"><span class="linenos"> 34</span></a><span class="n">_CLAUDE_MODEL</span> <span class="o">=</span> <span class="s1">&#39;claude-3-haiku&#39;</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 class="sd">`PERPLEXITY_API_KEY` is set to the environment variable of the same name if</span>
-</span><span id="L-37"><a href="#L-37"><span class="linenos"> 37</span></a><span class="sd">present, otherwise it&#39;s set to the empty string `&#39;&#39;`.</span>
-</span><span id="L-38"><a href="#L-38"><span class="linenos"> 38</span></a><span class="sd">&quot;&quot;&quot;</span>
-</span><span id="L-39"><a href="#L-39"><span class="linenos"> 39</span></a><span class="n">PERPLEXITY_API_KEY</span> <span class="o">=</span> <span class="n">os</span><span class="o">.</span><span class="n">environ</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s1">&#39;PERPLEXITY_API_KEY&#39;</span><span class="p">,</span> <span class="n">default</span> <span class="o">=</span> <span class="s1">&#39;&#39;</span><span class="p">)</span>
-</span><span id="L-40"><a href="#L-40"><span class="linenos"> 40</span></a><span class="n">PERPLEXITY_API_PREFIX</span> <span class="o">=</span> <span class="s1">&#39;pplx-&#39;</span>
-</span><span id="L-41"><a href="#L-41"><span class="linenos"> 41</span></a><span class="n">PERPLEXITY_API_URL</span> <span class="o">=</span> <span class="s1">&#39;https://api.perplexity.ai&#39;</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="sd">The default model is **mistral-7b-instruct** because of it&#39;s efficiency and</span>
-</span><span id="L-44"><a href="#L-44"><span class="linenos"> 44</span></a><span class="sd">performance qualities.  Ref:  https://arxiv.org/abs/2310.06825</span>
-</span><span id="L-45"><a href="#L-45"><span class="linenos"> 45</span></a><span class="sd">&quot;&quot;&quot;</span>
-</span><span id="L-46"><a href="#L-46"><span class="linenos"> 46</span></a><span class="n">PERPLEXITY_DEFAULT_MODEL</span> <span class="o">=</span> <span class="s1">&#39;llama-3-sonar-small-32k-chat&#39;</span>
-</span><span id="L-47"><a href="#L-47"><span class="linenos"> 47</span></a><span class="n">PERPLEXITY_DEFAULT_ROLE</span> <span class="o">=</span> <span class="s1">&#39;user&#39;</span>
-</span><span id="L-48"><a href="#L-48"><span class="linenos"> 48</span></a><span class="n">PERPLEXITY_TIMEOUT</span> <span class="o">=</span> <span class="mf">30.0</span> <span class="c1"># seconds</span>
-</span><span id="L-49"><a href="#L-49"><span class="linenos"> 49</span></a><span class="n">PERPLEXITY_VALID_ROLES</span> <span class="o">=</span> <span class="p">{</span> <span class="s1">&#39;assistant&#39;</span><span class="p">,</span> <span class="s1">&#39;system&#39;</span><span class="p">,</span> <span class="s1">&#39;user&#39;</span><span class="p">,</span> <span class="p">}</span> <span class="c1"># future proofing.</span>
-</span><span id="L-50"><a href="#L-50"><span class="linenos"> 50</span></a>
-</span><span id="L-51"><a href="#L-51"><span class="linenos"> 51</span></a>
+</span><span id="L-35"><a href="#L-35"><span class="linenos"> 35</span></a><span class="n">PERPLEXITY_API_KEY</span> <span class="o">=</span> <span class="n">os</span><span class="o">.</span><span class="n">environ</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s1">&#39;PERPLEXITY_API_KEY&#39;</span><span class="p">,</span> <span class="n">default</span> <span class="o">=</span> <span class="s1">&#39;&#39;</span><span class="p">)</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 class="sd">`PERPLEXITY_API_KEY` is set to the environment variable of the same name if</span>
+</span><span id="L-38"><a href="#L-38"><span class="linenos"> 38</span></a><span class="sd">present, otherwise it&#39;s set to the empty string `&#39;&#39;`.  PerplexiPy uses the</span>
+</span><span id="L-39"><a href="#L-39"><span class="linenos"> 39</span></a><span class="sd">`dotenv` module to load environment settings from `$PWD/.env` if present.</span>
+</span><span id="L-40"><a href="#L-40"><span class="linenos"> 40</span></a><span class="sd">&quot;&quot;&quot;</span>
+</span><span id="L-41"><a href="#L-41"><span class="linenos"> 41</span></a><span class="n">PERPLEXITY_API_PREFIX</span> <span class="o">=</span> <span class="s1">&#39;pplx-&#39;</span>
+</span><span id="L-42"><a href="#L-42"><span class="linenos"> 42</span></a><span class="n">PERPLEXITY_API_URL</span> <span class="o">=</span> <span class="s1">&#39;https://api.perplexity.ai&#39;</span>
+</span><span id="L-43"><a href="#L-43"><span class="linenos"> 43</span></a><span class="n">PERPLEXITY_DEFAULT_MODEL</span> <span class="o">=</span> <span class="s1">&#39;llama-3-sonar-small-32k-chat&#39;</span>
+</span><span id="L-44"><a href="#L-44"><span class="linenos"> 44</span></a><span class="n">PERPLEXITY_DEFAULT_ROLE</span> <span class="o">=</span> <span class="s1">&#39;user&#39;</span>
+</span><span id="L-45"><a href="#L-45"><span class="linenos"> 45</span></a><span class="n">PERPLEXITY_TIMEOUT</span> <span class="o">=</span> <span class="mf">30.0</span> <span class="c1"># seconds</span>
+</span><span id="L-46"><a href="#L-46"><span class="linenos"> 46</span></a><span class="n">PERPLEXITY_VALID_ROLES</span> <span class="o">=</span> <span class="p">{</span> <span class="s1">&#39;assistant&#39;</span><span class="p">,</span> <span class="s1">&#39;system&#39;</span><span class="p">,</span> <span class="s1">&#39;user&#39;</span><span class="p">,</span> <span class="p">}</span> <span class="c1"># future proofing.</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><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">Immutable dictionary-like object of a model&#39;s capabilities.  Use `_asDict()` if</span>
+</span><span id="L-51"><a href="#L-51"><span class="linenos"> 51</span></a><span class="sd">dictionary manipulation is required.</span>
 </span><span id="L-52"><a href="#L-52"><span class="linenos"> 52</span></a><span class="sd">&quot;&quot;&quot;</span>
-</span><span id="L-53"><a href="#L-53"><span class="linenos"> 53</span></a><span class="sd">Immutable dictionary-like object of a model&#39;s capabilities.  Use `_asDict()` if</span>
-</span><span id="L-54"><a href="#L-54"><span class="linenos"> 54</span></a><span class="sd">dictionary manipulation is required.</span>
-</span><span id="L-55"><a href="#L-55"><span class="linenos"> 55</span></a><span class="sd">&quot;&quot;&quot;</span>
-</span><span id="L-56"><a href="#L-56"><span class="linenos"> 56</span></a><span class="n">ModelInfo</span> <span class="o">=</span> <span class="n">namedtuple</span><span class="p">(</span><span class="s1">&#39;ModelInfo&#39;</span><span class="p">,</span> <span class="p">[</span> <span class="s1">&#39;parameterCount&#39;</span><span class="p">,</span> <span class="s1">&#39;contextLength&#39;</span><span class="p">,</span> <span class="s1">&#39;modelType&#39;</span><span class="p">,</span> <span class="s1">&#39;availability&#39;</span><span class="p">,</span> <span class="p">])</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">class</span> <span class="nc">PerplexityClient</span><span class="p">:</span>
-</span><span id="L-60"><a href="#L-60"><span class="linenos"> 60</span></a><span class="w">    </span><span class="sd">&quot;&quot;&quot;</span>
-</span><span id="L-61"><a href="#L-61"><span class="linenos"> 61</span></a><span class="sd">    PerplexityClient objects encapsulate all the API functionality.  They can be</span>
-</span><span id="L-62"><a href="#L-62"><span class="linenos"> 62</span></a><span class="sd">    instantiated across multiple contexts, each keeping its own state.</span>
-</span><span id="L-63"><a href="#L-63"><span class="linenos"> 63</span></a><span class="sd">    &quot;&quot;&quot;</span>
-</span><span id="L-64"><a href="#L-64"><span class="linenos"> 64</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 class="n">key</span><span class="p">:</span> <span class="nb">str</span><span class="p">,</span> <span class="n">endpoint</span><span class="p">:</span><span class="nb">str</span> <span class="o">=</span> <span class="n">PERPLEXITY_API_URL</span><span class="p">,</span> <span class="n">unitTest</span> <span class="o">=</span> <span class="kc">False</span><span class="p">):</span>
-</span><span id="L-65"><a href="#L-65"><span class="linenos"> 65</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
-</span><span id="L-66"><a href="#L-66"><span class="linenos"> 66</span></a><span class="sd">        Create a new instance of `perplexipy.PerplexityClient` using the API</span>
-</span><span id="L-67"><a href="#L-67"><span class="linenos"> 67</span></a><span class="sd">        `key` to connect to the corresponding `endpoint`.</span>
-</span><span id="L-68"><a href="#L-68"><span class="linenos"> 68</span></a>
-</span><span id="L-69"><a href="#L-69"><span class="linenos"> 69</span></a><span class="sd">        Arguments</span>
-</span><span id="L-70"><a href="#L-70"><span class="linenos"> 70</span></a><span class="sd">        ---------</span>
-</span><span id="L-71"><a href="#L-71"><span class="linenos"> 71</span></a><span class="sd">            key</span>
-</span><span id="L-72"><a href="#L-72"><span class="linenos"> 72</span></a><span class="sd">        A valid API key string.  If not present, it defaults to `perplexipy.PERPLEXITY_API_KEY`.</span>
+</span><span id="L-53"><a href="#L-53"><span class="linenos"> 53</span></a><span class="n">ModelInfo</span> <span class="o">=</span> <span class="n">namedtuple</span><span class="p">(</span><span class="s1">&#39;ModelInfo&#39;</span><span class="p">,</span> <span class="p">[</span> <span class="s1">&#39;parameterCount&#39;</span><span class="p">,</span> <span class="s1">&#39;contextLength&#39;</span><span class="p">,</span> <span class="s1">&#39;modelType&#39;</span><span class="p">,</span> <span class="s1">&#39;availability&#39;</span><span class="p">,</span> <span class="p">])</span>
+</span><span id="L-54"><a href="#L-54"><span class="linenos"> 54</span></a>
+</span><span id="L-55"><a href="#L-55"><span class="linenos"> 55</span></a>
+</span><span id="L-56"><a href="#L-56"><span class="linenos"> 56</span></a><span class="k">class</span> <span class="nc">PerplexityClient</span><span class="p">:</span>
+</span><span id="L-57"><a href="#L-57"><span class="linenos"> 57</span></a><span class="w">    </span><span class="sd">&quot;&quot;&quot;</span>
+</span><span id="L-58"><a href="#L-58"><span class="linenos"> 58</span></a><span class="sd">    PerplexityClient objects encapsulate all the API functionality.  They can be</span>
+</span><span id="L-59"><a href="#L-59"><span class="linenos"> 59</span></a><span class="sd">    instantiated across multiple contexts, each keeping its own state.</span>
+</span><span id="L-60"><a href="#L-60"><span class="linenos"> 60</span></a><span class="sd">    &quot;&quot;&quot;</span>
+</span><span id="L-61"><a href="#L-61"><span class="linenos"> 61</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 class="n">key</span><span class="p">:</span> <span class="nb">str</span><span class="p">,</span> <span class="n">endpoint</span><span class="p">:</span><span class="nb">str</span> <span class="o">=</span> <span class="n">PERPLEXITY_API_URL</span><span class="p">,</span> <span class="n">unitTest</span> <span class="o">=</span> <span class="kc">False</span><span class="p">):</span>
+</span><span id="L-62"><a href="#L-62"><span class="linenos"> 62</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
+</span><span id="L-63"><a href="#L-63"><span class="linenos"> 63</span></a><span class="sd">        Create a new instance of `perplexipy.PerplexityClient` using the API</span>
+</span><span id="L-64"><a href="#L-64"><span class="linenos"> 64</span></a><span class="sd">        `key` to connect to the corresponding `endpoint`.</span>
+</span><span id="L-65"><a href="#L-65"><span class="linenos"> 65</span></a>
+</span><span id="L-66"><a href="#L-66"><span class="linenos"> 66</span></a><span class="sd">        Arguments</span>
+</span><span id="L-67"><a href="#L-67"><span class="linenos"> 67</span></a><span class="sd">        ---------</span>
+</span><span id="L-68"><a href="#L-68"><span class="linenos"> 68</span></a><span class="sd">            key</span>
+</span><span id="L-69"><a href="#L-69"><span class="linenos"> 69</span></a><span class="sd">        A valid API key string.  If not present, it defaults to `perplexipy.PERPLEXITY_API_KEY`.</span>
+</span><span id="L-70"><a href="#L-70"><span class="linenos"> 70</span></a>
+</span><span id="L-71"><a href="#L-71"><span class="linenos"> 71</span></a><span class="sd">            endpoint</span>
+</span><span id="L-72"><a href="#L-72"><span class="linenos"> 72</span></a><span class="sd">        A string representing a URL to the Perplexity API.</span>
 </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="sd">            endpoint</span>
-</span><span id="L-75"><a href="#L-75"><span class="linenos"> 75</span></a><span class="sd">        A string representing a URL to the Perplexity API.</span>
-</span><span id="L-76"><a href="#L-76"><span class="linenos"> 76</span></a>
-</span><span id="L-77"><a href="#L-77"><span class="linenos"> 77</span></a><span class="sd">            unitTest</span>
-</span><span id="L-78"><a href="#L-78"><span class="linenos"> 78</span></a><span class="sd">        A Boolean to indicate if internal object states need to be modified for</span>
-</span><span id="L-79"><a href="#L-79"><span class="linenos"> 79</span></a><span class="sd">        unit testing.  Has no effect in regular code.</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="sd">        Returns</span>
-</span><span id="L-82"><a href="#L-82"><span class="linenos"> 82</span></a><span class="sd">        -------</span>
-</span><span id="L-83"><a href="#L-83"><span class="linenos"> 83</span></a><span class="sd">        An instance of `perplexipy.PerplexityClient` if successful.</span>
-</span><span id="L-84"><a href="#L-84"><span class="linenos"> 84</span></a>
-</span><span id="L-85"><a href="#L-85"><span class="linenos"> 85</span></a><span class="sd">        Attributes:</span>
-</span><span id="L-86"><a href="#L-86"><span class="linenos"> 86</span></a>
-</span><span id="L-87"><a href="#L-87"><span class="linenos"> 87</span></a><span class="sd">        `model` - the current model to use in queries, user configurable.</span>
+</span><span id="L-74"><a href="#L-74"><span class="linenos"> 74</span></a><span class="sd">            unitTest</span>
+</span><span id="L-75"><a href="#L-75"><span class="linenos"> 75</span></a><span class="sd">        A Boolean to indicate if internal object states need to be modified for</span>
+</span><span id="L-76"><a href="#L-76"><span class="linenos"> 76</span></a><span class="sd">        unit testing.  Has no effect in regular code.</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="sd">        Returns</span>
+</span><span id="L-79"><a href="#L-79"><span class="linenos"> 79</span></a><span class="sd">        -------</span>
+</span><span id="L-80"><a href="#L-80"><span class="linenos"> 80</span></a><span class="sd">        An instance of `perplexipy.PerplexityClient` if successful.</span>
+</span><span id="L-81"><a href="#L-81"><span class="linenos"> 81</span></a>
+</span><span id="L-82"><a href="#L-82"><span class="linenos"> 82</span></a><span class="sd">        Attributes:</span>
+</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="sd">        `model` - the current model to use in queries, user configurable.</span>
+</span><span id="L-85"><a href="#L-85"><span class="linenos"> 85</span></a>
+</span><span id="L-86"><a href="#L-86"><span class="linenos"> 86</span></a><span class="sd">        The role is fixed to `&quot;user&quot;` for Perplexity calls, per the API</span>
+</span><span id="L-87"><a href="#L-87"><span class="linenos"> 87</span></a><span class="sd">        recommendations.</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 class="sd">        The role is fixed to `&quot;user&quot;` for Perplexity calls, per the API</span>
-</span><span id="L-90"><a href="#L-90"><span class="linenos"> 90</span></a><span class="sd">        recommendations.</span>
-</span><span id="L-91"><a href="#L-91"><span class="linenos"> 91</span></a>
-</span><span id="L-92"><a href="#L-92"><span class="linenos"> 92</span></a><span class="sd">        Raises</span>
-</span><span id="L-93"><a href="#L-93"><span class="linenos"> 93</span></a><span class="sd">        ------</span>
-</span><span id="L-94"><a href="#L-94"><span class="linenos"> 94</span></a><span class="sd">            PerplexityClientError</span>
-</span><span id="L-95"><a href="#L-95"><span class="linenos"> 95</span></a><span class="sd">        If the API key is empty, or doesn&#39;t match one of the valid API prefixes</span>
-</span><span id="L-96"><a href="#L-96"><span class="linenos"> 96</span></a><span class="sd">        per the documentation.</span>
-</span><span id="L-97"><a href="#L-97"><span class="linenos"> 97</span></a><span class="sd">        &quot;&quot;&quot;</span>
-</span><span id="L-98"><a href="#L-98"><span class="linenos"> 98</span></a>        <span class="k">if</span> <span class="ow">not</span> <span class="n">key</span><span class="p">:</span>
-</span><span id="L-99"><a href="#L-99"><span class="linenos"> 99</span></a>            <span class="k">raise</span> <span class="n">PerplexityClientError</span><span class="p">(</span><span class="s1">&#39;Provide a valid key argument during instantiation&#39;</span><span class="p">)</span>
-</span><span id="L-100"><a href="#L-100"><span class="linenos">100</span></a>        <span class="k">if</span> <span class="ow">not</span> <span class="n">PERPLEXITY_API_PREFIX</span> <span class="ow">in</span> <span class="n">key</span><span class="p">:</span>
-</span><span id="L-101"><a href="#L-101"><span class="linenos">101</span></a>            <span class="k">raise</span> <span class="n">PerplexityClientError</span><span class="p">(</span><span class="s1">&#39;The key </span><span class="si">%s</span><span class="s1"> i missing the pplx- prefix - invalid API key&#39;</span><span class="p">)</span>
-</span><span id="L-102"><a href="#L-102"><span class="linenos">102</span></a>
-</span><span id="L-103"><a href="#L-103"><span class="linenos">103</span></a>        <span class="bp">self</span><span class="o">.</span><span class="n">_endpoint</span> <span class="o">=</span> <span class="n">endpoint</span>
-</span><span id="L-104"><a href="#L-104"><span class="linenos">104</span></a>        <span class="bp">self</span><span class="o">.</span><span class="n">_key</span> <span class="o">=</span> <span class="n">key</span>
-</span><span id="L-105"><a href="#L-105"><span class="linenos">105</span></a>        <span class="bp">self</span><span class="o">.</span><span class="n">_role</span> <span class="o">=</span> <span class="n">PERPLEXITY_DEFAULT_ROLE</span>
-</span><span id="L-106"><a href="#L-106"><span class="linenos">106</span></a>        <span class="bp">self</span><span class="o">.</span><span class="n">_model</span> <span class="o">=</span> <span class="n">PERPLEXITY_DEFAULT_MODEL</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">OpenAI</span><span class="p">(</span>
-</span><span id="L-108"><a href="#L-108"><span class="linenos">108</span></a>            <span class="n">api_key</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_key</span><span class="p">,</span>
-</span><span id="L-109"><a href="#L-109"><span class="linenos">109</span></a>            <span class="n">base_url</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_endpoint</span><span class="p">,</span>
-</span><span id="L-110"><a href="#L-110"><span class="linenos">110</span></a>            <span class="n">timeout</span> <span class="o">=</span> <span class="n">PERPLEXITY_TIMEOUT</span><span class="p">,</span>
-</span><span id="L-111"><a href="#L-111"><span class="linenos">111</span></a>        <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">_unitTest</span> <span class="o">=</span> <span class="n">unitTest</span>
+</span><span id="L-89"><a href="#L-89"><span class="linenos"> 89</span></a><span class="sd">        Raises</span>
+</span><span id="L-90"><a href="#L-90"><span class="linenos"> 90</span></a><span class="sd">        ------</span>
+</span><span id="L-91"><a href="#L-91"><span class="linenos"> 91</span></a><span class="sd">            PerplexityClientError</span>
+</span><span id="L-92"><a href="#L-92"><span class="linenos"> 92</span></a><span class="sd">        If the API key is empty, or doesn&#39;t match one of the valid API prefixes</span>
+</span><span id="L-93"><a href="#L-93"><span class="linenos"> 93</span></a><span class="sd">        per the documentation.</span>
+</span><span id="L-94"><a href="#L-94"><span class="linenos"> 94</span></a><span class="sd">        &quot;&quot;&quot;</span>
+</span><span id="L-95"><a href="#L-95"><span class="linenos"> 95</span></a>        <span class="k">if</span> <span class="ow">not</span> <span class="n">key</span><span class="p">:</span>
+</span><span id="L-96"><a href="#L-96"><span class="linenos"> 96</span></a>            <span class="k">raise</span> <span class="n">PerplexityClientError</span><span class="p">(</span><span class="s1">&#39;Provide a valid key argument during instantiation&#39;</span><span class="p">)</span>
+</span><span id="L-97"><a href="#L-97"><span class="linenos"> 97</span></a>        <span class="k">if</span> <span class="ow">not</span> <span class="n">PERPLEXITY_API_PREFIX</span> <span class="ow">in</span> <span class="n">key</span><span class="p">:</span>
+</span><span id="L-98"><a href="#L-98"><span class="linenos"> 98</span></a>            <span class="k">raise</span> <span class="n">PerplexityClientError</span><span class="p">(</span><span class="s1">&#39;The key </span><span class="si">%s</span><span class="s1"> is missing the pplx- prefix - invalid API key&#39;</span> <span class="o">%</span> <span class="n">key</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="nb">all</span><span class="p">(</span><span class="nb">ord</span><span class="p">(</span><span class="s1">&#39; &#39;</span><span class="p">)</span> <span class="o">&lt;=</span> <span class="nb">ord</span><span class="p">(</span><span class="n">c</span><span class="p">)</span> <span class="o">&lt;=</span> <span class="nb">ord</span><span class="p">(</span><span class="s1">&#39;~&#39;</span><span class="p">)</span> <span class="k">for</span> <span class="n">c</span> <span class="ow">in</span> <span class="n">key</span><span class="p">):</span>
+</span><span id="L-100"><a href="#L-100"><span class="linenos">100</span></a>            <span class="k">raise</span> <span class="n">PerplexityClientError</span><span class="p">(</span><span class="s1">&#39;The key </span><span class="si">%s</span><span class="s1"> contains invalid characters&#39;</span> <span class="o">%</span> <span class="n">key</span><span class="p">)</span>
+</span><span id="L-101"><a href="#L-101"><span class="linenos">101</span></a>
+</span><span id="L-102"><a href="#L-102"><span class="linenos">102</span></a>        <span class="bp">self</span><span class="o">.</span><span class="n">_endpoint</span> <span class="o">=</span> <span class="n">endpoint</span>
+</span><span id="L-103"><a href="#L-103"><span class="linenos">103</span></a>        <span class="bp">self</span><span class="o">.</span><span class="n">_key</span> <span class="o">=</span> <span class="n">key</span>
+</span><span id="L-104"><a href="#L-104"><span class="linenos">104</span></a>        <span class="bp">self</span><span class="o">.</span><span class="n">_role</span> <span class="o">=</span> <span class="n">PERPLEXITY_DEFAULT_ROLE</span>
+</span><span id="L-105"><a href="#L-105"><span class="linenos">105</span></a>        <span class="bp">self</span><span class="o">.</span><span class="n">_model</span> <span class="o">=</span> <span class="n">PERPLEXITY_DEFAULT_MODEL</span>
+</span><span id="L-106"><a href="#L-106"><span class="linenos">106</span></a>        <span class="bp">self</span><span class="o">.</span><span class="n">_client</span> <span class="o">=</span> <span class="n">OpenAI</span><span class="p">(</span>
+</span><span id="L-107"><a href="#L-107"><span class="linenos">107</span></a>            <span class="n">api_key</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_key</span><span class="p">,</span>
+</span><span id="L-108"><a href="#L-108"><span class="linenos">108</span></a>            <span class="n">base_url</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_endpoint</span><span class="p">,</span>
+</span><span id="L-109"><a href="#L-109"><span class="linenos">109</span></a>            <span class="n">timeout</span> <span class="o">=</span> <span class="n">PERPLEXITY_TIMEOUT</span><span class="p">,</span>
+</span><span id="L-110"><a href="#L-110"><span class="linenos">110</span></a>        <span class="p">)</span>
+</span><span id="L-111"><a href="#L-111"><span class="linenos">111</span></a>        <span class="bp">self</span><span class="o">.</span><span class="n">_unitTest</span> <span class="o">=</span> <span class="n">unitTest</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><span id="L-115"><a href="#L-115"><span class="linenos">115</span></a>    <span class="k">def</span> <span class="nf">query</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">query</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-116"><a href="#L-116"><span class="linenos">116</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
-</span><span id="L-117"><a href="#L-117"><span class="linenos">117</span></a><span class="sd">        Send a single message query to the service, receive a single response.</span>
-</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 class="sd">        Arguments</span>
-</span><span id="L-120"><a href="#L-120"><span class="linenos">120</span></a><span class="sd">        ---------</span>
-</span><span id="L-121"><a href="#L-121"><span class="linenos">121</span></a><span class="sd">            query</span>
-</span><span id="L-122"><a href="#L-122"><span class="linenos">122</span></a><span class="sd">        A string with the query in one of the model&#39;s supported languages.</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 string with a response from the Perplexity service.</span>
-</span><span id="L-127"><a href="#L-127"><span class="linenos">127</span></a>
-</span><span id="L-128"><a href="#L-128"><span class="linenos">128</span></a><span class="sd">        Raises</span>
-</span><span id="L-129"><a href="#L-129"><span class="linenos">129</span></a><span class="sd">        ------</span>
-</span><span id="L-130"><a href="#L-130"><span class="linenos">130</span></a><span class="sd">            Exception</span>
-</span><span id="L-131"><a href="#L-131"><span class="linenos">131</span></a><span class="sd">        An `openai.BadRequestError` or similar if the query is malformed or has</span>
-</span><span id="L-132"><a href="#L-132"><span class="linenos">132</span></a><span class="sd">        something other than text data.  The error raised passes through</span>
-</span><span id="L-133"><a href="#L-133"><span class="linenos">133</span></a><span class="sd">        whatever the API raised.</span>
-</span><span id="L-134"><a href="#L-134"><span class="linenos">134</span></a>
-</span><span id="L-135"><a href="#L-135"><span class="linenos">135</span></a><span class="sd">        In most cases, the API returns `openai.BadRequestError`.</span>
-</span><span id="L-136"><a href="#L-136"><span class="linenos">136</span></a>
-</span><span id="L-137"><a href="#L-137"><span class="linenos">137</span></a><span class="sd">            PerplexityClientError</span>
-</span><span id="L-138"><a href="#L-138"><span class="linenos">138</span></a><span class="sd">        If the query is `None` or empty.</span>
-</span><span id="L-139"><a href="#L-139"><span class="linenos">139</span></a><span class="sd">        &quot;&quot;&quot;</span>
-</span><span id="L-140"><a href="#L-140"><span class="linenos">140</span></a>        <span class="k">if</span> <span class="ow">not</span> <span class="n">query</span><span class="p">:</span>
-</span><span id="L-141"><a href="#L-141"><span class="linenos">141</span></a>            <span class="k">raise</span> <span class="n">PerplexityClientError</span><span class="p">(</span><span class="s1">&#39;query cannot be None or empty&#39;</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="n">messages</span> <span class="o">=</span> <span class="p">[</span> <span class="p">{</span> <span class="s1">&#39;role&#39;</span><span class="p">:</span> <span class="bp">self</span><span class="o">.</span><span class="n">_role</span><span class="p">,</span> <span class="s1">&#39;content&#39;</span><span class="p">:</span> <span class="n">query</span><span class="p">,</span> <span class="p">},</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">response</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">chat</span><span class="o">.</span><span class="n">completions</span><span class="o">.</span><span class="n">create</span><span class="p">(</span>
-</span><span id="L-146"><a href="#L-146"><span class="linenos">146</span></a>            <span class="n">model</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">model</span><span class="p">,</span>
-</span><span id="L-147"><a href="#L-147"><span class="linenos">147</span></a>            <span class="n">messages</span> <span class="o">=</span> <span class="n">messages</span><span class="p">,</span>
-</span><span id="L-148"><a href="#L-148"><span class="linenos">148</span></a>            <span class="c1"># TODO: check the OpenAI documentation to see how this is used.</span>
-</span><span id="L-149"><a href="#L-149"><span class="linenos">149</span></a>            <span class="c1"># See:  https://docs.mistral.ai/platform/guardrailing/</span>
-</span><span id="L-150"><a href="#L-150"><span class="linenos">150</span></a>            <span class="c1"># No guardrailing.</span>
-</span><span id="L-151"><a href="#L-151"><span class="linenos">151</span></a>            <span class="c1"># safe_mode = False,</span>
-</span><span id="L-152"><a href="#L-152"><span class="linenos">152</span></a>        <span class="p">)</span>
-</span><span id="L-153"><a href="#L-153"><span class="linenos">153</span></a>
-</span><span id="L-154"><a href="#L-154"><span class="linenos">154</span></a>        <span class="n">result</span> <span class="o">=</span> <span class="n">response</span><span class="o">.</span><span class="n">choices</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="o">.</span><span class="n">message</span><span class="o">.</span><span class="n">content</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">return</span> <span class="n">result</span>
+</span><span id="L-114"><a href="#L-114"><span class="linenos">114</span></a>    <span class="k">def</span> <span class="nf">query</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">query</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-115"><a href="#L-115"><span class="linenos">115</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
+</span><span id="L-116"><a href="#L-116"><span class="linenos">116</span></a><span class="sd">        Send a single message query to the service, receive a single response.</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 class="sd">        Arguments</span>
+</span><span id="L-119"><a href="#L-119"><span class="linenos">119</span></a><span class="sd">        ---------</span>
+</span><span id="L-120"><a href="#L-120"><span class="linenos">120</span></a><span class="sd">            query</span>
+</span><span id="L-121"><a href="#L-121"><span class="linenos">121</span></a><span class="sd">        A string with the query in one of the model&#39;s supported languages.</span>
+</span><span id="L-122"><a href="#L-122"><span class="linenos">122</span></a>
+</span><span id="L-123"><a href="#L-123"><span class="linenos">123</span></a><span class="sd">        Returns</span>
+</span><span id="L-124"><a href="#L-124"><span class="linenos">124</span></a><span class="sd">        -------</span>
+</span><span id="L-125"><a href="#L-125"><span class="linenos">125</span></a><span class="sd">        A string with a response from the Perplexity service.</span>
+</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="sd">        Raises</span>
+</span><span id="L-128"><a href="#L-128"><span class="linenos">128</span></a><span class="sd">        ------</span>
+</span><span id="L-129"><a href="#L-129"><span class="linenos">129</span></a><span class="sd">            Exception</span>
+</span><span id="L-130"><a href="#L-130"><span class="linenos">130</span></a><span class="sd">        An `openai.BadRequestError` or similar if the query is malformed or has</span>
+</span><span id="L-131"><a href="#L-131"><span class="linenos">131</span></a><span class="sd">        something other than text data.  The error raised passes through</span>
+</span><span id="L-132"><a href="#L-132"><span class="linenos">132</span></a><span class="sd">        whatever the API raised.</span>
+</span><span id="L-133"><a href="#L-133"><span class="linenos">133</span></a>
+</span><span id="L-134"><a href="#L-134"><span class="linenos">134</span></a><span class="sd">        In most cases, the API returns `openai.BadRequestError`.</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="sd">            PerplexityClientError</span>
+</span><span id="L-137"><a href="#L-137"><span class="linenos">137</span></a><span class="sd">        If the query is `None` or empty.</span>
+</span><span id="L-138"><a href="#L-138"><span class="linenos">138</span></a><span class="sd">        &quot;&quot;&quot;</span>
+</span><span id="L-139"><a href="#L-139"><span class="linenos">139</span></a>        <span class="k">if</span> <span class="ow">not</span> <span class="n">query</span><span class="p">:</span>
+</span><span id="L-140"><a href="#L-140"><span class="linenos">140</span></a>            <span class="k">raise</span> <span class="n">PerplexityClientError</span><span class="p">(</span><span class="s1">&#39;query cannot be None or empty&#39;</span><span class="p">)</span>
+</span><span id="L-141"><a href="#L-141"><span class="linenos">141</span></a>
+</span><span id="L-142"><a href="#L-142"><span class="linenos">142</span></a>        <span class="n">messages</span> <span class="o">=</span> <span class="p">[</span> <span class="p">{</span> <span class="s1">&#39;role&#39;</span><span class="p">:</span> <span class="bp">self</span><span class="o">.</span><span class="n">_role</span><span class="p">,</span> <span class="s1">&#39;content&#39;</span><span class="p">:</span> <span class="n">query</span><span class="p">,</span> <span class="p">},</span> <span class="p">]</span>
+</span><span id="L-143"><a href="#L-143"><span class="linenos">143</span></a>
+</span><span id="L-144"><a href="#L-144"><span class="linenos">144</span></a>        <span class="n">response</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">chat</span><span class="o">.</span><span class="n">completions</span><span class="o">.</span><span class="n">create</span><span class="p">(</span>
+</span><span id="L-145"><a href="#L-145"><span class="linenos">145</span></a>            <span class="n">model</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">model</span><span class="p">,</span>
+</span><span id="L-146"><a href="#L-146"><span class="linenos">146</span></a>            <span class="n">messages</span> <span class="o">=</span> <span class="n">messages</span><span class="p">,</span>
+</span><span id="L-147"><a href="#L-147"><span class="linenos">147</span></a>            <span class="c1"># TODO: check the OpenAI documentation to see how this is used.</span>
+</span><span id="L-148"><a href="#L-148"><span class="linenos">148</span></a>            <span class="c1"># See:  https://docs.mistral.ai/platform/guardrailing/</span>
+</span><span id="L-149"><a href="#L-149"><span class="linenos">149</span></a>            <span class="c1"># No guardrailing.</span>
+</span><span id="L-150"><a href="#L-150"><span class="linenos">150</span></a>            <span class="c1"># safe_mode = False,</span>
+</span><span id="L-151"><a href="#L-151"><span class="linenos">151</span></a>        <span class="p">)</span>
+</span><span id="L-152"><a href="#L-152"><span class="linenos">152</span></a>
+</span><span id="L-153"><a href="#L-153"><span class="linenos">153</span></a>        <span class="n">result</span> <span class="o">=</span> <span class="n">response</span><span class="o">.</span><span class="n">choices</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="o">.</span><span class="n">message</span><span class="o">.</span><span class="n">content</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="k">return</span> <span class="n">result</span>
+</span><span id="L-156"><a href="#L-156"><span class="linenos">156</span></a>
 </span><span id="L-157"><a href="#L-157"><span class="linenos">157</span></a>
-</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="k">def</span> <span class="nf">queryBatch</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">query</span><span class="p">:</span> <span class="nb">str</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">tuple</span><span class="p">:</span>
-</span><span id="L-160"><a href="#L-160"><span class="linenos">160</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
-</span><span id="L-161"><a href="#L-161"><span class="linenos">161</span></a><span class="sd">        Send a single message query to the service, receive a single response.</span>
-</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="sd">        Arguments</span>
-</span><span id="L-164"><a href="#L-164"><span class="linenos">164</span></a><span class="sd">        ---------</span>
-</span><span id="L-165"><a href="#L-165"><span class="linenos">165</span></a><span class="sd">            query</span>
-</span><span id="L-166"><a href="#L-166"><span class="linenos">166</span></a><span class="sd">        A string with the query in one of the model&#39;s supported languages.</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="sd">        Returns</span>
-</span><span id="L-169"><a href="#L-169"><span class="linenos">169</span></a><span class="sd">        -------</span>
-</span><span id="L-170"><a href="#L-170"><span class="linenos">170</span></a><span class="sd">        A tuple with a batch of 1 or more response strings.</span>
-</span><span id="L-171"><a href="#L-171"><span class="linenos">171</span></a>
-</span><span id="L-172"><a href="#L-172"><span class="linenos">172</span></a><span class="sd">        Raises</span>
-</span><span id="L-173"><a href="#L-173"><span class="linenos">173</span></a><span class="sd">        ------</span>
-</span><span id="L-174"><a href="#L-174"><span class="linenos">174</span></a><span class="sd">            Exception</span>
-</span><span id="L-175"><a href="#L-175"><span class="linenos">175</span></a><span class="sd">        An `openai.BadRequestError` or similar if the query is malformed or has</span>
-</span><span id="L-176"><a href="#L-176"><span class="linenos">176</span></a><span class="sd">        something other than text data.  The error raised passes through</span>
-</span><span id="L-177"><a href="#L-177"><span class="linenos">177</span></a><span class="sd">        whatever the API raised.</span>
-</span><span id="L-178"><a href="#L-178"><span class="linenos">178</span></a>
-</span><span id="L-179"><a href="#L-179"><span class="linenos">179</span></a><span class="sd">        In most cases, the API returns `openai.BadRequestError`.</span>
-</span><span id="L-180"><a href="#L-180"><span class="linenos">180</span></a>
-</span><span id="L-181"><a href="#L-181"><span class="linenos">181</span></a><span class="sd">            PerplexityClientError</span>
-</span><span id="L-182"><a href="#L-182"><span class="linenos">182</span></a><span class="sd">        If the query is `None` or empty.</span>
-</span><span id="L-183"><a href="#L-183"><span class="linenos">183</span></a><span class="sd">        &quot;&quot;&quot;</span>
-</span><span id="L-184"><a href="#L-184"><span class="linenos">184</span></a>        <span class="k">if</span> <span class="ow">not</span> <span class="n">query</span><span class="p">:</span>
-</span><span id="L-185"><a href="#L-185"><span class="linenos">185</span></a>            <span class="k">raise</span> <span class="n">PerplexityClientError</span><span class="p">(</span><span class="s1">&#39;query cannot be None or empty&#39;</span><span class="p">)</span>
-</span><span id="L-186"><a href="#L-186"><span class="linenos">186</span></a>
-</span><span id="L-187"><a href="#L-187"><span class="linenos">187</span></a>        <span class="n">messages</span> <span class="o">=</span> <span class="p">[</span> <span class="p">{</span> <span class="s1">&#39;role&#39;</span><span class="p">:</span> <span class="bp">self</span><span class="o">.</span><span class="n">_role</span><span class="p">,</span> <span class="s1">&#39;content&#39;</span><span class="p">:</span> <span class="n">query</span><span class="p">,</span> <span class="p">},</span> <span class="p">]</span>
-</span><span id="L-188"><a href="#L-188"><span class="linenos">188</span></a>
-</span><span id="L-189"><a href="#L-189"><span class="linenos">189</span></a>        <span class="n">response</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">chat</span><span class="o">.</span><span class="n">completions</span><span class="o">.</span><span class="n">create</span><span class="p">(</span>
-</span><span id="L-190"><a href="#L-190"><span class="linenos">190</span></a>            <span class="n">model</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">model</span><span class="p">,</span>
-</span><span id="L-191"><a href="#L-191"><span class="linenos">191</span></a>            <span class="n">messages</span> <span class="o">=</span> <span class="n">messages</span><span class="p">,</span>
-</span><span id="L-192"><a href="#L-192"><span class="linenos">192</span></a>        <span class="p">)</span>
-</span><span id="L-193"><a href="#L-193"><span class="linenos">193</span></a>
-</span><span id="L-194"><a href="#L-194"><span class="linenos">194</span></a>        <span class="n">result</span> <span class="o">=</span> <span class="nb">tuple</span><span class="p">(</span><span class="n">choice</span><span class="o">.</span><span class="n">message</span><span class="o">.</span><span class="n">content</span> <span class="k">for</span> <span class="n">choice</span> <span class="ow">in</span> <span class="n">response</span><span class="o">.</span><span class="n">choices</span><span class="p">)</span>
-</span><span id="L-195"><a href="#L-195"><span class="linenos">195</span></a>
-</span><span id="L-196"><a href="#L-196"><span class="linenos">196</span></a>        <span class="k">return</span> <span class="n">result</span>
+</span><span id="L-158"><a href="#L-158"><span class="linenos">158</span></a>    <span class="k">def</span> <span class="nf">queryBatch</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">query</span><span class="p">:</span> <span class="nb">str</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">tuple</span><span class="p">:</span>
+</span><span id="L-159"><a href="#L-159"><span class="linenos">159</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
+</span><span id="L-160"><a href="#L-160"><span class="linenos">160</span></a><span class="sd">        Send a single message query to the service, receive a single response.</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 class="sd">        Arguments</span>
+</span><span id="L-163"><a href="#L-163"><span class="linenos">163</span></a><span class="sd">        ---------</span>
+</span><span id="L-164"><a href="#L-164"><span class="linenos">164</span></a><span class="sd">            query</span>
+</span><span id="L-165"><a href="#L-165"><span class="linenos">165</span></a><span class="sd">        A string with the query in one of the model&#39;s supported languages.</span>
+</span><span id="L-166"><a href="#L-166"><span class="linenos">166</span></a>
+</span><span id="L-167"><a href="#L-167"><span class="linenos">167</span></a><span class="sd">        Returns</span>
+</span><span id="L-168"><a href="#L-168"><span class="linenos">168</span></a><span class="sd">        -------</span>
+</span><span id="L-169"><a href="#L-169"><span class="linenos">169</span></a><span class="sd">        A tuple with a batch of 1 or more response strings.</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="sd">        Raises</span>
+</span><span id="L-172"><a href="#L-172"><span class="linenos">172</span></a><span class="sd">        ------</span>
+</span><span id="L-173"><a href="#L-173"><span class="linenos">173</span></a><span class="sd">            Exception</span>
+</span><span id="L-174"><a href="#L-174"><span class="linenos">174</span></a><span class="sd">        An `openai.BadRequestError` or similar if the query is malformed or has</span>
+</span><span id="L-175"><a href="#L-175"><span class="linenos">175</span></a><span class="sd">        something other than text data.  The error raised passes through</span>
+</span><span id="L-176"><a href="#L-176"><span class="linenos">176</span></a><span class="sd">        whatever the API raised.</span>
+</span><span id="L-177"><a href="#L-177"><span class="linenos">177</span></a>
+</span><span id="L-178"><a href="#L-178"><span class="linenos">178</span></a><span class="sd">        In most cases, the API returns `openai.BadRequestError`.</span>
+</span><span id="L-179"><a href="#L-179"><span class="linenos">179</span></a>
+</span><span id="L-180"><a href="#L-180"><span class="linenos">180</span></a><span class="sd">            PerplexityClientError</span>
+</span><span id="L-181"><a href="#L-181"><span class="linenos">181</span></a><span class="sd">        If the query is `None` or empty.</span>
+</span><span id="L-182"><a href="#L-182"><span class="linenos">182</span></a><span class="sd">        &quot;&quot;&quot;</span>
+</span><span id="L-183"><a href="#L-183"><span class="linenos">183</span></a>        <span class="k">if</span> <span class="ow">not</span> <span class="n">query</span><span class="p">:</span>
+</span><span id="L-184"><a href="#L-184"><span class="linenos">184</span></a>            <span class="k">raise</span> <span class="n">PerplexityClientError</span><span class="p">(</span><span class="s1">&#39;query cannot be None or empty&#39;</span><span class="p">)</span>
+</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="n">messages</span> <span class="o">=</span> <span class="p">[</span> <span class="p">{</span> <span class="s1">&#39;role&#39;</span><span class="p">:</span> <span class="bp">self</span><span class="o">.</span><span class="n">_role</span><span class="p">,</span> <span class="s1">&#39;content&#39;</span><span class="p">:</span> <span class="n">query</span><span class="p">,</span> <span class="p">},</span> <span class="p">]</span>
+</span><span id="L-187"><a href="#L-187"><span class="linenos">187</span></a>
+</span><span id="L-188"><a href="#L-188"><span class="linenos">188</span></a>        <span class="n">response</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">chat</span><span class="o">.</span><span class="n">completions</span><span class="o">.</span><span class="n">create</span><span class="p">(</span>
+</span><span id="L-189"><a href="#L-189"><span class="linenos">189</span></a>            <span class="n">model</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">model</span><span class="p">,</span>
+</span><span id="L-190"><a href="#L-190"><span class="linenos">190</span></a>            <span class="n">messages</span> <span class="o">=</span> <span class="n">messages</span><span class="p">,</span>
+</span><span id="L-191"><a href="#L-191"><span class="linenos">191</span></a>        <span class="p">)</span>
+</span><span id="L-192"><a href="#L-192"><span class="linenos">192</span></a>
+</span><span id="L-193"><a href="#L-193"><span class="linenos">193</span></a>        <span class="n">result</span> <span class="o">=</span> <span class="nb">tuple</span><span class="p">(</span><span class="n">choice</span><span class="o">.</span><span class="n">message</span><span class="o">.</span><span class="n">content</span> <span class="k">for</span> <span class="n">choice</span> <span class="ow">in</span> <span class="n">response</span><span class="o">.</span><span class="n">choices</span><span class="p">)</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="k">return</span> <span class="n">result</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><span id="L-198"><a href="#L-198"><span class="linenos">198</span></a>
-</span><span id="L-199"><a href="#L-199"><span class="linenos">199</span></a>    <span class="k">def</span> <span class="nf">queryStreamable</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">query</span><span class="p">:</span> <span class="nb">str</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">Responses</span><span class="p">:</span>
-</span><span id="L-200"><a href="#L-200"><span class="linenos">200</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
-</span><span id="L-201"><a href="#L-201"><span class="linenos">201</span></a><span class="sd">        Send a query and return a long, streamable response.</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">        Arguments</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">            query</span>
-</span><span id="L-206"><a href="#L-206"><span class="linenos">206</span></a><span class="sd">        A string with the query in one of the model&#39;s supported languages.</span>
-</span><span id="L-207"><a href="#L-207"><span class="linenos">207</span></a>
-</span><span id="L-208"><a href="#L-208"><span class="linenos">208</span></a><span class="sd">        Returns</span>
-</span><span id="L-209"><a href="#L-209"><span class="linenos">209</span></a><span class="sd">        -------</span>
-</span><span id="L-210"><a href="#L-210"><span class="linenos">210</span></a><span class="sd">        Returns a `perplexipy.Responses` object for streaming the textual</span>
-</span><span id="L-211"><a href="#L-211"><span class="linenos">211</span></a><span class="sd">        responses from the client.  The response strips all metadata and returns</span>
-</span><span id="L-212"><a href="#L-212"><span class="linenos">212</span></a><span class="sd">        only content strings, for simpler and easier integration.</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 class="sd">        Raises</span>
-</span><span id="L-215"><a href="#L-215"><span class="linenos">215</span></a><span class="sd">        ------</span>
-</span><span id="L-216"><a href="#L-216"><span class="linenos">216</span></a><span class="sd">            Exception</span>
-</span><span id="L-217"><a href="#L-217"><span class="linenos">217</span></a><span class="sd">        An `openai.BadRequestError` or similar if the query is malformed or has</span>
-</span><span id="L-218"><a href="#L-218"><span class="linenos">218</span></a><span class="sd">        something other than text data.  The error raised passes through</span>
-</span><span id="L-219"><a href="#L-219"><span class="linenos">219</span></a><span class="sd">        whatever the API raised.</span>
-</span><span id="L-220"><a href="#L-220"><span class="linenos">220</span></a>
-</span><span id="L-221"><a href="#L-221"><span class="linenos">221</span></a><span class="sd">        In most cases, the API returns `openai.BadRequestError`.</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="sd">            PerplexityClientError</span>
-</span><span id="L-224"><a href="#L-224"><span class="linenos">224</span></a><span class="sd">        If the query is `None` or empty.</span>
-</span><span id="L-225"><a href="#L-225"><span class="linenos">225</span></a><span class="sd">        &quot;&quot;&quot;</span>
-</span><span id="L-226"><a href="#L-226"><span class="linenos">226</span></a>        <span class="k">if</span> <span class="ow">not</span> <span class="n">query</span><span class="p">:</span>
-</span><span id="L-227"><a href="#L-227"><span class="linenos">227</span></a>            <span class="k">raise</span> <span class="n">PerplexityClientError</span><span class="p">(</span><span class="s1">&#39;query cannot be None or empty&#39;</span><span class="p">)</span>
-</span><span id="L-228"><a href="#L-228"><span class="linenos">228</span></a>
-</span><span id="L-229"><a href="#L-229"><span class="linenos">229</span></a>        <span class="n">messages</span> <span class="o">=</span> <span class="p">[</span> <span class="p">{</span> <span class="s1">&#39;role&#39;</span><span class="p">:</span> <span class="bp">self</span><span class="o">.</span><span class="n">_role</span><span class="p">,</span> <span class="s1">&#39;content&#39;</span><span class="p">:</span> <span class="n">query</span><span class="p">,</span> <span class="p">},</span> <span class="p">]</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="n">response</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">chat</span><span class="o">.</span><span class="n">completions</span><span class="o">.</span><span class="n">create</span><span class="p">(</span>
-</span><span id="L-232"><a href="#L-232"><span class="linenos">232</span></a>            <span class="n">model</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">model</span><span class="p">,</span>
-</span><span id="L-233"><a href="#L-233"><span class="linenos">233</span></a>            <span class="n">messages</span> <span class="o">=</span> <span class="n">messages</span><span class="p">,</span>
-</span><span id="L-234"><a href="#L-234"><span class="linenos">234</span></a>            <span class="n">stream</span> <span class="o">=</span> <span class="kc">True</span><span class="p">,</span>
-</span><span id="L-235"><a href="#L-235"><span class="linenos">235</span></a>        <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 class="k">return</span> <span class="n">Responses</span><span class="p">(</span><span class="n">response</span><span class="p">)</span>
+</span><span id="L-198"><a href="#L-198"><span class="linenos">198</span></a>    <span class="k">def</span> <span class="nf">queryStreamable</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">query</span><span class="p">:</span> <span class="nb">str</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">Responses</span><span class="p">:</span>
+</span><span id="L-199"><a href="#L-199"><span class="linenos">199</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
+</span><span id="L-200"><a href="#L-200"><span class="linenos">200</span></a><span class="sd">        Send a query and return a long, streamable response.</span>
+</span><span id="L-201"><a href="#L-201"><span class="linenos">201</span></a>
+</span><span id="L-202"><a href="#L-202"><span class="linenos">202</span></a><span class="sd">        Arguments</span>
+</span><span id="L-203"><a href="#L-203"><span class="linenos">203</span></a><span class="sd">        ---------</span>
+</span><span id="L-204"><a href="#L-204"><span class="linenos">204</span></a><span class="sd">            query</span>
+</span><span id="L-205"><a href="#L-205"><span class="linenos">205</span></a><span class="sd">        A string with the query in one of the model&#39;s supported languages.</span>
+</span><span id="L-206"><a href="#L-206"><span class="linenos">206</span></a>
+</span><span id="L-207"><a href="#L-207"><span class="linenos">207</span></a><span class="sd">        Returns</span>
+</span><span id="L-208"><a href="#L-208"><span class="linenos">208</span></a><span class="sd">        -------</span>
+</span><span id="L-209"><a href="#L-209"><span class="linenos">209</span></a><span class="sd">        Returns a `perplexipy.Responses` object for streaming the textual</span>
+</span><span id="L-210"><a href="#L-210"><span class="linenos">210</span></a><span class="sd">        responses from the client.  The response strips all metadata and returns</span>
+</span><span id="L-211"><a href="#L-211"><span class="linenos">211</span></a><span class="sd">        only content strings, for simpler and easier integration.</span>
+</span><span id="L-212"><a href="#L-212"><span class="linenos">212</span></a>
+</span><span id="L-213"><a href="#L-213"><span class="linenos">213</span></a><span class="sd">        Raises</span>
+</span><span id="L-214"><a href="#L-214"><span class="linenos">214</span></a><span class="sd">        ------</span>
+</span><span id="L-215"><a href="#L-215"><span class="linenos">215</span></a><span class="sd">            Exception</span>
+</span><span id="L-216"><a href="#L-216"><span class="linenos">216</span></a><span class="sd">        An `openai.BadRequestError` or similar if the query is malformed or has</span>
+</span><span id="L-217"><a href="#L-217"><span class="linenos">217</span></a><span class="sd">        something other than text data.  The error raised passes through</span>
+</span><span id="L-218"><a href="#L-218"><span class="linenos">218</span></a><span class="sd">        whatever the API raised.</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">        In most cases, the API returns `openai.BadRequestError`.</span>
+</span><span id="L-221"><a href="#L-221"><span class="linenos">221</span></a>
+</span><span id="L-222"><a href="#L-222"><span class="linenos">222</span></a><span class="sd">            PerplexityClientError</span>
+</span><span id="L-223"><a href="#L-223"><span class="linenos">223</span></a><span class="sd">        If the query is `None` or empty.</span>
+</span><span id="L-224"><a href="#L-224"><span class="linenos">224</span></a><span class="sd">        &quot;&quot;&quot;</span>
+</span><span id="L-225"><a href="#L-225"><span class="linenos">225</span></a>        <span class="k">if</span> <span class="ow">not</span> <span class="n">query</span><span class="p">:</span>
+</span><span id="L-226"><a href="#L-226"><span class="linenos">226</span></a>            <span class="k">raise</span> <span class="n">PerplexityClientError</span><span class="p">(</span><span class="s1">&#39;query cannot be None or empty&#39;</span><span class="p">)</span>
+</span><span id="L-227"><a href="#L-227"><span class="linenos">227</span></a>
+</span><span id="L-228"><a href="#L-228"><span class="linenos">228</span></a>        <span class="n">messages</span> <span class="o">=</span> <span class="p">[</span> <span class="p">{</span> <span class="s1">&#39;role&#39;</span><span class="p">:</span> <span class="bp">self</span><span class="o">.</span><span class="n">_role</span><span class="p">,</span> <span class="s1">&#39;content&#39;</span><span class="p">:</span> <span class="n">query</span><span class="p">,</span> <span class="p">},</span> <span class="p">]</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="n">response</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">chat</span><span class="o">.</span><span class="n">completions</span><span class="o">.</span><span class="n">create</span><span class="p">(</span>
+</span><span id="L-231"><a href="#L-231"><span class="linenos">231</span></a>            <span class="n">model</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">model</span><span class="p">,</span>
+</span><span id="L-232"><a href="#L-232"><span class="linenos">232</span></a>            <span class="n">messages</span> <span class="o">=</span> <span class="n">messages</span><span class="p">,</span>
+</span><span id="L-233"><a href="#L-233"><span class="linenos">233</span></a>            <span class="n">stream</span> <span class="o">=</span> <span class="kc">True</span><span class="p">,</span>
+</span><span id="L-234"><a href="#L-234"><span class="linenos">234</span></a>        <span class="p">)</span>
+</span><span id="L-235"><a href="#L-235"><span class="linenos">235</span></a>
+</span><span id="L-236"><a href="#L-236"><span class="linenos">236</span></a>        <span class="k">return</span> <span class="n">Responses</span><span class="p">(</span><span class="n">response</span><span class="p">)</span>
+</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><span id="L-239"><a href="#L-239"><span class="linenos">239</span></a>
-</span><span id="L-240"><a href="#L-240"><span class="linenos">240</span></a>    <span class="nd">@property</span>
-</span><span id="L-241"><a href="#L-241"><span class="linenos">241</span></a>    <span class="k">def</span> <span class="nf">models</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">unitTest</span> <span class="o">=</span> <span class="kc">False</span><span class="p">):</span>
-</span><span id="L-242"><a href="#L-242"><span class="linenos">242</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
-</span><span id="L-243"><a href="#L-243"><span class="linenos">243</span></a><span class="sd">        Provide a dictionary of the models supported by Perplexity listed in:</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 class="sd">        https://docs.perplexity.ai/docs/model-cards</span>
-</span><span id="L-246"><a href="#L-246"><span class="linenos">246</span></a>
-</span><span id="L-247"><a href="#L-247"><span class="linenos">247</span></a><span class="sd">        Returns</span>
-</span><span id="L-248"><a href="#L-248"><span class="linenos">248</span></a><span class="sd">        -------</span>
-</span><span id="L-249"><a href="#L-249"><span class="linenos">249</span></a><span class="sd">        A dictionary of supported models as the key, with a `perplexypy.ModelInfo`</span>
-</span><span id="L-250"><a href="#L-250"><span class="linenos">250</span></a><span class="sd">        named tuple with the model capabilities description.  The model</span>
-</span><span id="L-251"><a href="#L-251"><span class="linenos">251</span></a><span class="sd">        information attributes are:</span>
-</span><span id="L-252"><a href="#L-252"><span class="linenos">252</span></a>
-</span><span id="L-253"><a href="#L-253"><span class="linenos">253</span></a><span class="sd">        - `parameterCount`</span>
-</span><span id="L-254"><a href="#L-254"><span class="linenos">254</span></a><span class="sd">        - `contextLength`</span>
-</span><span id="L-255"><a href="#L-255"><span class="linenos">255</span></a><span class="sd">        - `modelType`</span>
-</span><span id="L-256"><a href="#L-256"><span class="linenos">256</span></a><span class="sd">        - `availability`</span>
-</span><span id="L-257"><a href="#L-257"><span class="linenos">257</span></a><span class="sd">        &quot;&quot;&quot;</span>
-</span><span id="L-258"><a href="#L-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="L-259"><a href="#L-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="L-260"><a href="#L-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="L-261"><a href="#L-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="L-262"><a href="#L-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="L-263"><a href="#L-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="L-264"><a href="#L-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="L-265"><a href="#L-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="L-266"><a href="#L-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="L-267"><a href="#L-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="L-268"><a href="#L-268"><span class="linenos">268</span></a>        <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">return</span> <span class="n">supportedModels</span>
+</span><span id="L-239"><a href="#L-239"><span class="linenos">239</span></a>    <span class="nd">@property</span>
+</span><span id="L-240"><a href="#L-240"><span class="linenos">240</span></a>    <span class="k">def</span> <span class="nf">models</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">unitTest</span> <span class="o">=</span> <span class="kc">False</span><span class="p">):</span>
+</span><span id="L-241"><a href="#L-241"><span class="linenos">241</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
+</span><span id="L-242"><a href="#L-242"><span class="linenos">242</span></a><span class="sd">        Provide a dictionary of the models supported by Perplexity listed in:</span>
+</span><span id="L-243"><a href="#L-243"><span class="linenos">243</span></a>
+</span><span id="L-244"><a href="#L-244"><span class="linenos">244</span></a><span class="sd">        https://docs.perplexity.ai/docs/model-cards</span>
+</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="sd">        Returns</span>
+</span><span id="L-247"><a href="#L-247"><span class="linenos">247</span></a><span class="sd">        -------</span>
+</span><span id="L-248"><a href="#L-248"><span class="linenos">248</span></a><span class="sd">        A dictionary of supported models as the key, with a `perplexypy.ModelInfo`</span>
+</span><span id="L-249"><a href="#L-249"><span class="linenos">249</span></a><span class="sd">        named tuple with the model capabilities description.  The model</span>
+</span><span id="L-250"><a href="#L-250"><span class="linenos">250</span></a><span class="sd">        information attributes are:</span>
+</span><span id="L-251"><a href="#L-251"><span class="linenos">251</span></a>
+</span><span id="L-252"><a href="#L-252"><span class="linenos">252</span></a><span class="sd">        - `parameterCount`</span>
+</span><span id="L-253"><a href="#L-253"><span class="linenos">253</span></a><span class="sd">        - `contextLength`</span>
+</span><span id="L-254"><a href="#L-254"><span class="linenos">254</span></a><span class="sd">        - `modelType`</span>
+</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-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><span id="L-273"><a href="#L-273"><span class="linenos">273</span></a>    <span class="nd">@property</span>
-</span><span id="L-274"><a href="#L-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="L-275"><a href="#L-275"><span class="linenos">275</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
-</span><span id="L-276"><a href="#L-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="L-277"><a href="#L-277"><span class="linenos">277</span></a><span class="sd">        service provider.  Its default value is:  `PERPLEXITY_DEFAULT_MODEL`.</span>
-</span><span id="L-278"><a href="#L-278"><span class="linenos">278</span></a><span class="sd">        &quot;&quot;&quot;</span>
-</span><span id="L-279"><a href="#L-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="L-280"><a href="#L-280"><span class="linenos">280</span></a>
-</span><span id="L-281"><a href="#L-281"><span class="linenos">281</span></a>    <span class="nd">@model</span><span class="o">.</span><span class="n">setter</span>
-</span><span id="L-282"><a href="#L-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="L-283"><a href="#L-283"><span class="linenos">283</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
-</span><span id="L-284"><a href="#L-284"><span class="linenos">284</span></a><span class="sd">        Set the model to use for generating responses.</span>
-</span><span id="L-285"><a href="#L-285"><span class="linenos">285</span></a>
-</span><span id="L-286"><a href="#L-286"><span class="linenos">286</span></a><span class="sd">        Arguments</span>
-</span><span id="L-287"><a href="#L-287"><span class="linenos">287</span></a><span class="sd">        ---------</span>
-</span><span id="L-288"><a href="#L-288"><span class="linenos">288</span></a><span class="sd">            value</span>
-</span><span id="L-289"><a href="#L-289"><span class="linenos">289</span></a><span class="sd">        A string matching one of the supported models.</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">        Returns</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">        `None` - setter method decorated as a property.</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="sd">        Raises</span>
-</span><span id="L-296"><a href="#L-296"><span class="linenos">296</span></a><span class="sd">        ------</span>
-</span><span id="L-297"><a href="#L-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="L-298"><a href="#L-298"><span class="linenos">298</span></a><span class="sd">        supported models.</span>
-</span><span id="L-299"><a href="#L-299"><span class="linenos">299</span></a><span class="sd">        &quot;&quot;&quot;</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="n">value</span><span class="p">:</span>
-</span><span id="L-301"><a href="#L-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="L-302"><a href="#L-302"><span class="linenos">302</span></a>
-</span><span id="L-303"><a href="#L-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="L-304"><a href="#L-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="L-305"><a href="#L-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="L-306"><a href="#L-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="L-307"><a href="#L-307"><span class="linenos">307</span></a>
-</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">_model</span> <span class="o">=</span> <span class="n">value</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="c1"># Validate that the model still works, revert otherwise</span>
-</span><span id="L-311"><a href="#L-311"><span class="linenos">311</span></a>        <span class="k">try</span><span class="p">:</span>
-</span><span id="L-312"><a href="#L-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="L-313"><a href="#L-313"><span class="linenos">313</span></a>        <span class="k">except</span><span class="p">:</span>
-</span><span id="L-314"><a href="#L-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="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></pre></div>
 
 
@@ -447,7 +446,11 @@ <h1 class="modulename">
     </div>
     <a class="headerlink" href="#PERPLEXITY_API_KEY"></a>
     
-    
+            <div class="docstring"><p><code><a href="#PERPLEXITY_API_KEY">PERPLEXITY_API_KEY</a></code> is set to the environment variable of the same name if
+present, otherwise it's set to the empty string <code>''</code>.  PerplexiPy uses the
+<code>dotenv</code> module to load environment settings from <code>$PWD/.env</code> if present.</p>
+</div>
+
 
                 </section>
                 <section id="PERPLEXITY_API_PREFIX">
@@ -471,10 +474,7 @@ <h1 class="modulename">
     </div>
     <a class="headerlink" href="#PERPLEXITY_API_URL"></a>
     
-            <div class="docstring"><p>The default model is <strong>mistral-7b-instruct</strong> because of it's efficiency and
-performance qualities.  Ref:  <a href="https://arxiv.org/abs/2310.06825">https://arxiv.org/abs/2310.06825</a></p>
-</div>
-
+    
 
                 </section>
                 <section id="PERPLEXITY_DEFAULT_MODEL">
@@ -516,7 +516,7 @@ <h1 class="modulename">
                 <section id="PERPLEXITY_VALID_ROLES">
                     <div class="attr variable">
             <span class="name">PERPLEXITY_VALID_ROLES</span>        =
-<span class="default_value">{&#39;user&#39;, &#39;system&#39;, &#39;assistant&#39;}</span>
+<span class="default_value">{&#39;assistant&#39;, &#39;user&#39;, &#39;system&#39;}</span>
 
         
     </div>
@@ -630,262 +630,264 @@ <h5>Inherited Members</h5>
 
     </div>
     <a class="headerlink" href="#PerplexityClient"></a>
-            <div class="pdoc-code codehilite"><pre><span></span><span id="PerplexityClient-60"><a href="#PerplexityClient-60"><span class="linenos"> 60</span></a><span class="k">class</span> <span class="nc">PerplexityClient</span><span class="p">:</span>
-</span><span id="PerplexityClient-61"><a href="#PerplexityClient-61"><span class="linenos"> 61</span></a><span class="w">    </span><span class="sd">&quot;&quot;&quot;</span>
-</span><span id="PerplexityClient-62"><a href="#PerplexityClient-62"><span class="linenos"> 62</span></a><span class="sd">    PerplexityClient objects encapsulate all the API functionality.  They can be</span>
-</span><span id="PerplexityClient-63"><a href="#PerplexityClient-63"><span class="linenos"> 63</span></a><span class="sd">    instantiated across multiple contexts, each keeping its own state.</span>
-</span><span id="PerplexityClient-64"><a href="#PerplexityClient-64"><span class="linenos"> 64</span></a><span class="sd">    &quot;&quot;&quot;</span>
-</span><span id="PerplexityClient-65"><a href="#PerplexityClient-65"><span class="linenos"> 65</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 class="n">key</span><span class="p">:</span> <span class="nb">str</span><span class="p">,</span> <span class="n">endpoint</span><span class="p">:</span><span class="nb">str</span> <span class="o">=</span> <span class="n">PERPLEXITY_API_URL</span><span class="p">,</span> <span class="n">unitTest</span> <span class="o">=</span> <span class="kc">False</span><span class="p">):</span>
-</span><span id="PerplexityClient-66"><a href="#PerplexityClient-66"><span class="linenos"> 66</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
-</span><span id="PerplexityClient-67"><a href="#PerplexityClient-67"><span class="linenos"> 67</span></a><span class="sd">        Create a new instance of `perplexipy.PerplexityClient` using the API</span>
-</span><span id="PerplexityClient-68"><a href="#PerplexityClient-68"><span class="linenos"> 68</span></a><span class="sd">        `key` to connect to the corresponding `endpoint`.</span>
-</span><span id="PerplexityClient-69"><a href="#PerplexityClient-69"><span class="linenos"> 69</span></a>
-</span><span id="PerplexityClient-70"><a href="#PerplexityClient-70"><span class="linenos"> 70</span></a><span class="sd">        Arguments</span>
-</span><span id="PerplexityClient-71"><a href="#PerplexityClient-71"><span class="linenos"> 71</span></a><span class="sd">        ---------</span>
-</span><span id="PerplexityClient-72"><a href="#PerplexityClient-72"><span class="linenos"> 72</span></a><span class="sd">            key</span>
-</span><span id="PerplexityClient-73"><a href="#PerplexityClient-73"><span class="linenos"> 73</span></a><span class="sd">        A valid API key string.  If not present, it defaults to `perplexipy.PERPLEXITY_API_KEY`.</span>
+            <div class="pdoc-code codehilite"><pre><span></span><span id="PerplexityClient-57"><a href="#PerplexityClient-57"><span class="linenos"> 57</span></a><span class="k">class</span> <span class="nc">PerplexityClient</span><span class="p">:</span>
+</span><span id="PerplexityClient-58"><a href="#PerplexityClient-58"><span class="linenos"> 58</span></a><span class="w">    </span><span class="sd">&quot;&quot;&quot;</span>
+</span><span id="PerplexityClient-59"><a href="#PerplexityClient-59"><span class="linenos"> 59</span></a><span class="sd">    PerplexityClient objects encapsulate all the API functionality.  They can be</span>
+</span><span id="PerplexityClient-60"><a href="#PerplexityClient-60"><span class="linenos"> 60</span></a><span class="sd">    instantiated across multiple contexts, each keeping its own state.</span>
+</span><span id="PerplexityClient-61"><a href="#PerplexityClient-61"><span class="linenos"> 61</span></a><span class="sd">    &quot;&quot;&quot;</span>
+</span><span id="PerplexityClient-62"><a href="#PerplexityClient-62"><span class="linenos"> 62</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 class="n">key</span><span class="p">:</span> <span class="nb">str</span><span class="p">,</span> <span class="n">endpoint</span><span class="p">:</span><span class="nb">str</span> <span class="o">=</span> <span class="n">PERPLEXITY_API_URL</span><span class="p">,</span> <span class="n">unitTest</span> <span class="o">=</span> <span class="kc">False</span><span class="p">):</span>
+</span><span id="PerplexityClient-63"><a href="#PerplexityClient-63"><span class="linenos"> 63</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
+</span><span id="PerplexityClient-64"><a href="#PerplexityClient-64"><span class="linenos"> 64</span></a><span class="sd">        Create a new instance of `perplexipy.PerplexityClient` using the API</span>
+</span><span id="PerplexityClient-65"><a href="#PerplexityClient-65"><span class="linenos"> 65</span></a><span class="sd">        `key` to connect to the corresponding `endpoint`.</span>
+</span><span id="PerplexityClient-66"><a href="#PerplexityClient-66"><span class="linenos"> 66</span></a>
+</span><span id="PerplexityClient-67"><a href="#PerplexityClient-67"><span class="linenos"> 67</span></a><span class="sd">        Arguments</span>
+</span><span id="PerplexityClient-68"><a href="#PerplexityClient-68"><span class="linenos"> 68</span></a><span class="sd">        ---------</span>
+</span><span id="PerplexityClient-69"><a href="#PerplexityClient-69"><span class="linenos"> 69</span></a><span class="sd">            key</span>
+</span><span id="PerplexityClient-70"><a href="#PerplexityClient-70"><span class="linenos"> 70</span></a><span class="sd">        A valid API key string.  If not present, it defaults to `perplexipy.PERPLEXITY_API_KEY`.</span>
+</span><span id="PerplexityClient-71"><a href="#PerplexityClient-71"><span class="linenos"> 71</span></a>
+</span><span id="PerplexityClient-72"><a href="#PerplexityClient-72"><span class="linenos"> 72</span></a><span class="sd">            endpoint</span>
+</span><span id="PerplexityClient-73"><a href="#PerplexityClient-73"><span class="linenos"> 73</span></a><span class="sd">        A string representing a URL to the Perplexity API.</span>
 </span><span id="PerplexityClient-74"><a href="#PerplexityClient-74"><span class="linenos"> 74</span></a>
-</span><span id="PerplexityClient-75"><a href="#PerplexityClient-75"><span class="linenos"> 75</span></a><span class="sd">            endpoint</span>
-</span><span id="PerplexityClient-76"><a href="#PerplexityClient-76"><span class="linenos"> 76</span></a><span class="sd">        A string representing a URL to the Perplexity API.</span>
-</span><span id="PerplexityClient-77"><a href="#PerplexityClient-77"><span class="linenos"> 77</span></a>
-</span><span id="PerplexityClient-78"><a href="#PerplexityClient-78"><span class="linenos"> 78</span></a><span class="sd">            unitTest</span>
-</span><span id="PerplexityClient-79"><a href="#PerplexityClient-79"><span class="linenos"> 79</span></a><span class="sd">        A Boolean to indicate if internal object states need to be modified for</span>
-</span><span id="PerplexityClient-80"><a href="#PerplexityClient-80"><span class="linenos"> 80</span></a><span class="sd">        unit testing.  Has no effect in regular code.</span>
-</span><span id="PerplexityClient-81"><a href="#PerplexityClient-81"><span class="linenos"> 81</span></a>
-</span><span id="PerplexityClient-82"><a href="#PerplexityClient-82"><span class="linenos"> 82</span></a><span class="sd">        Returns</span>
-</span><span id="PerplexityClient-83"><a href="#PerplexityClient-83"><span class="linenos"> 83</span></a><span class="sd">        -------</span>
-</span><span id="PerplexityClient-84"><a href="#PerplexityClient-84"><span class="linenos"> 84</span></a><span class="sd">        An instance of `perplexipy.PerplexityClient` if successful.</span>
-</span><span id="PerplexityClient-85"><a href="#PerplexityClient-85"><span class="linenos"> 85</span></a>
-</span><span id="PerplexityClient-86"><a href="#PerplexityClient-86"><span class="linenos"> 86</span></a><span class="sd">        Attributes:</span>
-</span><span id="PerplexityClient-87"><a href="#PerplexityClient-87"><span class="linenos"> 87</span></a>
-</span><span id="PerplexityClient-88"><a href="#PerplexityClient-88"><span class="linenos"> 88</span></a><span class="sd">        `model` - the current model to use in queries, user configurable.</span>
+</span><span id="PerplexityClient-75"><a href="#PerplexityClient-75"><span class="linenos"> 75</span></a><span class="sd">            unitTest</span>
+</span><span id="PerplexityClient-76"><a href="#PerplexityClient-76"><span class="linenos"> 76</span></a><span class="sd">        A Boolean to indicate if internal object states need to be modified for</span>
+</span><span id="PerplexityClient-77"><a href="#PerplexityClient-77"><span class="linenos"> 77</span></a><span class="sd">        unit testing.  Has no effect in regular code.</span>
+</span><span id="PerplexityClient-78"><a href="#PerplexityClient-78"><span class="linenos"> 78</span></a>
+</span><span id="PerplexityClient-79"><a href="#PerplexityClient-79"><span class="linenos"> 79</span></a><span class="sd">        Returns</span>
+</span><span id="PerplexityClient-80"><a href="#PerplexityClient-80"><span class="linenos"> 80</span></a><span class="sd">        -------</span>
+</span><span id="PerplexityClient-81"><a href="#PerplexityClient-81"><span class="linenos"> 81</span></a><span class="sd">        An instance of `perplexipy.PerplexityClient` if successful.</span>
+</span><span id="PerplexityClient-82"><a href="#PerplexityClient-82"><span class="linenos"> 82</span></a>
+</span><span id="PerplexityClient-83"><a href="#PerplexityClient-83"><span class="linenos"> 83</span></a><span class="sd">        Attributes:</span>
+</span><span id="PerplexityClient-84"><a href="#PerplexityClient-84"><span class="linenos"> 84</span></a>
+</span><span id="PerplexityClient-85"><a href="#PerplexityClient-85"><span class="linenos"> 85</span></a><span class="sd">        `model` - the current model to use in queries, user configurable.</span>
+</span><span id="PerplexityClient-86"><a href="#PerplexityClient-86"><span class="linenos"> 86</span></a>
+</span><span id="PerplexityClient-87"><a href="#PerplexityClient-87"><span class="linenos"> 87</span></a><span class="sd">        The role is fixed to `&quot;user&quot;` for Perplexity calls, per the API</span>
+</span><span id="PerplexityClient-88"><a href="#PerplexityClient-88"><span class="linenos"> 88</span></a><span class="sd">        recommendations.</span>
 </span><span id="PerplexityClient-89"><a href="#PerplexityClient-89"><span class="linenos"> 89</span></a>
-</span><span id="PerplexityClient-90"><a href="#PerplexityClient-90"><span class="linenos"> 90</span></a><span class="sd">        The role is fixed to `&quot;user&quot;` for Perplexity calls, per the API</span>
-</span><span id="PerplexityClient-91"><a href="#PerplexityClient-91"><span class="linenos"> 91</span></a><span class="sd">        recommendations.</span>
-</span><span id="PerplexityClient-92"><a href="#PerplexityClient-92"><span class="linenos"> 92</span></a>
-</span><span id="PerplexityClient-93"><a href="#PerplexityClient-93"><span class="linenos"> 93</span></a><span class="sd">        Raises</span>
-</span><span id="PerplexityClient-94"><a href="#PerplexityClient-94"><span class="linenos"> 94</span></a><span class="sd">        ------</span>
-</span><span id="PerplexityClient-95"><a href="#PerplexityClient-95"><span class="linenos"> 95</span></a><span class="sd">            PerplexityClientError</span>
-</span><span id="PerplexityClient-96"><a href="#PerplexityClient-96"><span class="linenos"> 96</span></a><span class="sd">        If the API key is empty, or doesn&#39;t match one of the valid API prefixes</span>
-</span><span id="PerplexityClient-97"><a href="#PerplexityClient-97"><span class="linenos"> 97</span></a><span class="sd">        per the documentation.</span>
-</span><span id="PerplexityClient-98"><a href="#PerplexityClient-98"><span class="linenos"> 98</span></a><span class="sd">        &quot;&quot;&quot;</span>
-</span><span id="PerplexityClient-99"><a href="#PerplexityClient-99"><span class="linenos"> 99</span></a>        <span class="k">if</span> <span class="ow">not</span> <span class="n">key</span><span class="p">:</span>
-</span><span id="PerplexityClient-100"><a href="#PerplexityClient-100"><span class="linenos">100</span></a>            <span class="k">raise</span> <span class="n">PerplexityClientError</span><span class="p">(</span><span class="s1">&#39;Provide a valid key argument during instantiation&#39;</span><span class="p">)</span>
-</span><span id="PerplexityClient-101"><a href="#PerplexityClient-101"><span class="linenos">101</span></a>        <span class="k">if</span> <span class="ow">not</span> <span class="n">PERPLEXITY_API_PREFIX</span> <span class="ow">in</span> <span class="n">key</span><span class="p">:</span>
-</span><span id="PerplexityClient-102"><a href="#PerplexityClient-102"><span class="linenos">102</span></a>            <span class="k">raise</span> <span class="n">PerplexityClientError</span><span class="p">(</span><span class="s1">&#39;The key </span><span class="si">%s</span><span class="s1"> i missing the pplx- prefix - invalid API key&#39;</span><span class="p">)</span>
-</span><span id="PerplexityClient-103"><a href="#PerplexityClient-103"><span class="linenos">103</span></a>
-</span><span id="PerplexityClient-104"><a href="#PerplexityClient-104"><span class="linenos">104</span></a>        <span class="bp">self</span><span class="o">.</span><span class="n">_endpoint</span> <span class="o">=</span> <span class="n">endpoint</span>
-</span><span id="PerplexityClient-105"><a href="#PerplexityClient-105"><span class="linenos">105</span></a>        <span class="bp">self</span><span class="o">.</span><span class="n">_key</span> <span class="o">=</span> <span class="n">key</span>
-</span><span id="PerplexityClient-106"><a href="#PerplexityClient-106"><span class="linenos">106</span></a>        <span class="bp">self</span><span class="o">.</span><span class="n">_role</span> <span class="o">=</span> <span class="n">PERPLEXITY_DEFAULT_ROLE</span>
-</span><span id="PerplexityClient-107"><a href="#PerplexityClient-107"><span class="linenos">107</span></a>        <span class="bp">self</span><span class="o">.</span><span class="n">_model</span> <span class="o">=</span> <span class="n">PERPLEXITY_DEFAULT_MODEL</span>
-</span><span id="PerplexityClient-108"><a href="#PerplexityClient-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">OpenAI</span><span class="p">(</span>
-</span><span id="PerplexityClient-109"><a href="#PerplexityClient-109"><span class="linenos">109</span></a>            <span class="n">api_key</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_key</span><span class="p">,</span>
-</span><span id="PerplexityClient-110"><a href="#PerplexityClient-110"><span class="linenos">110</span></a>            <span class="n">base_url</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_endpoint</span><span class="p">,</span>
-</span><span id="PerplexityClient-111"><a href="#PerplexityClient-111"><span class="linenos">111</span></a>            <span class="n">timeout</span> <span class="o">=</span> <span class="n">PERPLEXITY_TIMEOUT</span><span class="p">,</span>
-</span><span id="PerplexityClient-112"><a href="#PerplexityClient-112"><span class="linenos">112</span></a>        <span class="p">)</span>
-</span><span id="PerplexityClient-113"><a href="#PerplexityClient-113"><span class="linenos">113</span></a>        <span class="bp">self</span><span class="o">.</span><span class="n">_unitTest</span> <span class="o">=</span> <span class="n">unitTest</span>
+</span><span id="PerplexityClient-90"><a href="#PerplexityClient-90"><span class="linenos"> 90</span></a><span class="sd">        Raises</span>
+</span><span id="PerplexityClient-91"><a href="#PerplexityClient-91"><span class="linenos"> 91</span></a><span class="sd">        ------</span>
+</span><span id="PerplexityClient-92"><a href="#PerplexityClient-92"><span class="linenos"> 92</span></a><span class="sd">            PerplexityClientError</span>
+</span><span id="PerplexityClient-93"><a href="#PerplexityClient-93"><span class="linenos"> 93</span></a><span class="sd">        If the API key is empty, or doesn&#39;t match one of the valid API prefixes</span>
+</span><span id="PerplexityClient-94"><a href="#PerplexityClient-94"><span class="linenos"> 94</span></a><span class="sd">        per the documentation.</span>
+</span><span id="PerplexityClient-95"><a href="#PerplexityClient-95"><span class="linenos"> 95</span></a><span class="sd">        &quot;&quot;&quot;</span>
+</span><span id="PerplexityClient-96"><a href="#PerplexityClient-96"><span class="linenos"> 96</span></a>        <span class="k">if</span> <span class="ow">not</span> <span class="n">key</span><span class="p">:</span>
+</span><span id="PerplexityClient-97"><a href="#PerplexityClient-97"><span class="linenos"> 97</span></a>            <span class="k">raise</span> <span class="n">PerplexityClientError</span><span class="p">(</span><span class="s1">&#39;Provide a valid key argument during instantiation&#39;</span><span class="p">)</span>
+</span><span id="PerplexityClient-98"><a href="#PerplexityClient-98"><span class="linenos"> 98</span></a>        <span class="k">if</span> <span class="ow">not</span> <span class="n">PERPLEXITY_API_PREFIX</span> <span class="ow">in</span> <span class="n">key</span><span class="p">:</span>
+</span><span id="PerplexityClient-99"><a href="#PerplexityClient-99"><span class="linenos"> 99</span></a>            <span class="k">raise</span> <span class="n">PerplexityClientError</span><span class="p">(</span><span class="s1">&#39;The key </span><span class="si">%s</span><span class="s1"> is missing the pplx- prefix - invalid API key&#39;</span> <span class="o">%</span> <span class="n">key</span><span class="p">)</span>
+</span><span id="PerplexityClient-100"><a href="#PerplexityClient-100"><span class="linenos">100</span></a>        <span class="k">if</span> <span class="ow">not</span> <span class="nb">all</span><span class="p">(</span><span class="nb">ord</span><span class="p">(</span><span class="s1">&#39; &#39;</span><span class="p">)</span> <span class="o">&lt;=</span> <span class="nb">ord</span><span class="p">(</span><span class="n">c</span><span class="p">)</span> <span class="o">&lt;=</span> <span class="nb">ord</span><span class="p">(</span><span class="s1">&#39;~&#39;</span><span class="p">)</span> <span class="k">for</span> <span class="n">c</span> <span class="ow">in</span> <span class="n">key</span><span class="p">):</span>
+</span><span id="PerplexityClient-101"><a href="#PerplexityClient-101"><span class="linenos">101</span></a>            <span class="k">raise</span> <span class="n">PerplexityClientError</span><span class="p">(</span><span class="s1">&#39;The key </span><span class="si">%s</span><span class="s1"> contains invalid characters&#39;</span> <span class="o">%</span> <span class="n">key</span><span class="p">)</span>
+</span><span id="PerplexityClient-102"><a href="#PerplexityClient-102"><span class="linenos">102</span></a>
+</span><span id="PerplexityClient-103"><a href="#PerplexityClient-103"><span class="linenos">103</span></a>        <span class="bp">self</span><span class="o">.</span><span class="n">_endpoint</span> <span class="o">=</span> <span class="n">endpoint</span>
+</span><span id="PerplexityClient-104"><a href="#PerplexityClient-104"><span class="linenos">104</span></a>        <span class="bp">self</span><span class="o">.</span><span class="n">_key</span> <span class="o">=</span> <span class="n">key</span>
+</span><span id="PerplexityClient-105"><a href="#PerplexityClient-105"><span class="linenos">105</span></a>        <span class="bp">self</span><span class="o">.</span><span class="n">_role</span> <span class="o">=</span> <span class="n">PERPLEXITY_DEFAULT_ROLE</span>
+</span><span id="PerplexityClient-106"><a href="#PerplexityClient-106"><span class="linenos">106</span></a>        <span class="bp">self</span><span class="o">.</span><span class="n">_model</span> <span class="o">=</span> <span class="n">PERPLEXITY_DEFAULT_MODEL</span>
+</span><span id="PerplexityClient-107"><a href="#PerplexityClient-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">OpenAI</span><span class="p">(</span>
+</span><span id="PerplexityClient-108"><a href="#PerplexityClient-108"><span class="linenos">108</span></a>            <span class="n">api_key</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_key</span><span class="p">,</span>
+</span><span id="PerplexityClient-109"><a href="#PerplexityClient-109"><span class="linenos">109</span></a>            <span class="n">base_url</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_endpoint</span><span class="p">,</span>
+</span><span id="PerplexityClient-110"><a href="#PerplexityClient-110"><span class="linenos">110</span></a>            <span class="n">timeout</span> <span class="o">=</span> <span class="n">PERPLEXITY_TIMEOUT</span><span class="p">,</span>
+</span><span id="PerplexityClient-111"><a href="#PerplexityClient-111"><span class="linenos">111</span></a>        <span class="p">)</span>
+</span><span id="PerplexityClient-112"><a href="#PerplexityClient-112"><span class="linenos">112</span></a>        <span class="bp">self</span><span class="o">.</span><span class="n">_unitTest</span> <span class="o">=</span> <span class="n">unitTest</span>
+</span><span id="PerplexityClient-113"><a href="#PerplexityClient-113"><span class="linenos">113</span></a>
 </span><span id="PerplexityClient-114"><a href="#PerplexityClient-114"><span class="linenos">114</span></a>
-</span><span id="PerplexityClient-115"><a href="#PerplexityClient-115"><span class="linenos">115</span></a>
-</span><span id="PerplexityClient-116"><a href="#PerplexityClient-116"><span class="linenos">116</span></a>    <span class="k">def</span> <span class="nf">query</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">query</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="PerplexityClient-117"><a href="#PerplexityClient-117"><span class="linenos">117</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
-</span><span id="PerplexityClient-118"><a href="#PerplexityClient-118"><span class="linenos">118</span></a><span class="sd">        Send a single message query to the service, receive a single response.</span>
-</span><span id="PerplexityClient-119"><a href="#PerplexityClient-119"><span class="linenos">119</span></a>
-</span><span id="PerplexityClient-120"><a href="#PerplexityClient-120"><span class="linenos">120</span></a><span class="sd">        Arguments</span>
-</span><span id="PerplexityClient-121"><a href="#PerplexityClient-121"><span class="linenos">121</span></a><span class="sd">        ---------</span>
-</span><span id="PerplexityClient-122"><a href="#PerplexityClient-122"><span class="linenos">122</span></a><span class="sd">            query</span>
-</span><span id="PerplexityClient-123"><a href="#PerplexityClient-123"><span class="linenos">123</span></a><span class="sd">        A string with the query in one of the model&#39;s supported languages.</span>
-</span><span id="PerplexityClient-124"><a href="#PerplexityClient-124"><span class="linenos">124</span></a>
-</span><span id="PerplexityClient-125"><a href="#PerplexityClient-125"><span class="linenos">125</span></a><span class="sd">        Returns</span>
-</span><span id="PerplexityClient-126"><a href="#PerplexityClient-126"><span class="linenos">126</span></a><span class="sd">        -------</span>
-</span><span id="PerplexityClient-127"><a href="#PerplexityClient-127"><span class="linenos">127</span></a><span class="sd">        A string with a response from the Perplexity service.</span>
-</span><span id="PerplexityClient-128"><a href="#PerplexityClient-128"><span class="linenos">128</span></a>
-</span><span id="PerplexityClient-129"><a href="#PerplexityClient-129"><span class="linenos">129</span></a><span class="sd">        Raises</span>
-</span><span id="PerplexityClient-130"><a href="#PerplexityClient-130"><span class="linenos">130</span></a><span class="sd">        ------</span>
-</span><span id="PerplexityClient-131"><a href="#PerplexityClient-131"><span class="linenos">131</span></a><span class="sd">            Exception</span>
-</span><span id="PerplexityClient-132"><a href="#PerplexityClient-132"><span class="linenos">132</span></a><span class="sd">        An `openai.BadRequestError` or similar if the query is malformed or has</span>
-</span><span id="PerplexityClient-133"><a href="#PerplexityClient-133"><span class="linenos">133</span></a><span class="sd">        something other than text data.  The error raised passes through</span>
-</span><span id="PerplexityClient-134"><a href="#PerplexityClient-134"><span class="linenos">134</span></a><span class="sd">        whatever the API raised.</span>
-</span><span id="PerplexityClient-135"><a href="#PerplexityClient-135"><span class="linenos">135</span></a>
-</span><span id="PerplexityClient-136"><a href="#PerplexityClient-136"><span class="linenos">136</span></a><span class="sd">        In most cases, the API returns `openai.BadRequestError`.</span>
-</span><span id="PerplexityClient-137"><a href="#PerplexityClient-137"><span class="linenos">137</span></a>
-</span><span id="PerplexityClient-138"><a href="#PerplexityClient-138"><span class="linenos">138</span></a><span class="sd">            PerplexityClientError</span>
-</span><span id="PerplexityClient-139"><a href="#PerplexityClient-139"><span class="linenos">139</span></a><span class="sd">        If the query is `None` or empty.</span>
-</span><span id="PerplexityClient-140"><a href="#PerplexityClient-140"><span class="linenos">140</span></a><span class="sd">        &quot;&quot;&quot;</span>
-</span><span id="PerplexityClient-141"><a href="#PerplexityClient-141"><span class="linenos">141</span></a>        <span class="k">if</span> <span class="ow">not</span> <span class="n">query</span><span class="p">:</span>
-</span><span id="PerplexityClient-142"><a href="#PerplexityClient-142"><span class="linenos">142</span></a>            <span class="k">raise</span> <span class="n">PerplexityClientError</span><span class="p">(</span><span class="s1">&#39;query cannot be None or empty&#39;</span><span class="p">)</span>
-</span><span id="PerplexityClient-143"><a href="#PerplexityClient-143"><span class="linenos">143</span></a>
-</span><span id="PerplexityClient-144"><a href="#PerplexityClient-144"><span class="linenos">144</span></a>        <span class="n">messages</span> <span class="o">=</span> <span class="p">[</span> <span class="p">{</span> <span class="s1">&#39;role&#39;</span><span class="p">:</span> <span class="bp">self</span><span class="o">.</span><span class="n">_role</span><span class="p">,</span> <span class="s1">&#39;content&#39;</span><span class="p">:</span> <span class="n">query</span><span class="p">,</span> <span class="p">},</span> <span class="p">]</span>
-</span><span id="PerplexityClient-145"><a href="#PerplexityClient-145"><span class="linenos">145</span></a>
-</span><span id="PerplexityClient-146"><a href="#PerplexityClient-146"><span class="linenos">146</span></a>        <span class="n">response</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">chat</span><span class="o">.</span><span class="n">completions</span><span class="o">.</span><span class="n">create</span><span class="p">(</span>
-</span><span id="PerplexityClient-147"><a href="#PerplexityClient-147"><span class="linenos">147</span></a>            <span class="n">model</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">model</span><span class="p">,</span>
-</span><span id="PerplexityClient-148"><a href="#PerplexityClient-148"><span class="linenos">148</span></a>            <span class="n">messages</span> <span class="o">=</span> <span class="n">messages</span><span class="p">,</span>
-</span><span id="PerplexityClient-149"><a href="#PerplexityClient-149"><span class="linenos">149</span></a>            <span class="c1"># TODO: check the OpenAI documentation to see how this is used.</span>
-</span><span id="PerplexityClient-150"><a href="#PerplexityClient-150"><span class="linenos">150</span></a>            <span class="c1"># See:  https://docs.mistral.ai/platform/guardrailing/</span>
-</span><span id="PerplexityClient-151"><a href="#PerplexityClient-151"><span class="linenos">151</span></a>            <span class="c1"># No guardrailing.</span>
-</span><span id="PerplexityClient-152"><a href="#PerplexityClient-152"><span class="linenos">152</span></a>            <span class="c1"># safe_mode = False,</span>
-</span><span id="PerplexityClient-153"><a href="#PerplexityClient-153"><span class="linenos">153</span></a>        <span class="p">)</span>
-</span><span id="PerplexityClient-154"><a href="#PerplexityClient-154"><span class="linenos">154</span></a>
-</span><span id="PerplexityClient-155"><a href="#PerplexityClient-155"><span class="linenos">155</span></a>        <span class="n">result</span> <span class="o">=</span> <span class="n">response</span><span class="o">.</span><span class="n">choices</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="o">.</span><span class="n">message</span><span class="o">.</span><span class="n">content</span>
-</span><span id="PerplexityClient-156"><a href="#PerplexityClient-156"><span class="linenos">156</span></a>
-</span><span id="PerplexityClient-157"><a href="#PerplexityClient-157"><span class="linenos">157</span></a>        <span class="k">return</span> <span class="n">result</span>
+</span><span id="PerplexityClient-115"><a href="#PerplexityClient-115"><span class="linenos">115</span></a>    <span class="k">def</span> <span class="nf">query</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">query</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="PerplexityClient-116"><a href="#PerplexityClient-116"><span class="linenos">116</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
+</span><span id="PerplexityClient-117"><a href="#PerplexityClient-117"><span class="linenos">117</span></a><span class="sd">        Send a single message query to the service, receive a single response.</span>
+</span><span id="PerplexityClient-118"><a href="#PerplexityClient-118"><span class="linenos">118</span></a>
+</span><span id="PerplexityClient-119"><a href="#PerplexityClient-119"><span class="linenos">119</span></a><span class="sd">        Arguments</span>
+</span><span id="PerplexityClient-120"><a href="#PerplexityClient-120"><span class="linenos">120</span></a><span class="sd">        ---------</span>
+</span><span id="PerplexityClient-121"><a href="#PerplexityClient-121"><span class="linenos">121</span></a><span class="sd">            query</span>
+</span><span id="PerplexityClient-122"><a href="#PerplexityClient-122"><span class="linenos">122</span></a><span class="sd">        A string with the query in one of the model&#39;s supported languages.</span>
+</span><span id="PerplexityClient-123"><a href="#PerplexityClient-123"><span class="linenos">123</span></a>
+</span><span id="PerplexityClient-124"><a href="#PerplexityClient-124"><span class="linenos">124</span></a><span class="sd">        Returns</span>
+</span><span id="PerplexityClient-125"><a href="#PerplexityClient-125"><span class="linenos">125</span></a><span class="sd">        -------</span>
+</span><span id="PerplexityClient-126"><a href="#PerplexityClient-126"><span class="linenos">126</span></a><span class="sd">        A string with a response from the Perplexity service.</span>
+</span><span id="PerplexityClient-127"><a href="#PerplexityClient-127"><span class="linenos">127</span></a>
+</span><span id="PerplexityClient-128"><a href="#PerplexityClient-128"><span class="linenos">128</span></a><span class="sd">        Raises</span>
+</span><span id="PerplexityClient-129"><a href="#PerplexityClient-129"><span class="linenos">129</span></a><span class="sd">        ------</span>
+</span><span id="PerplexityClient-130"><a href="#PerplexityClient-130"><span class="linenos">130</span></a><span class="sd">            Exception</span>
+</span><span id="PerplexityClient-131"><a href="#PerplexityClient-131"><span class="linenos">131</span></a><span class="sd">        An `openai.BadRequestError` or similar if the query is malformed or has</span>
+</span><span id="PerplexityClient-132"><a href="#PerplexityClient-132"><span class="linenos">132</span></a><span class="sd">        something other than text data.  The error raised passes through</span>
+</span><span id="PerplexityClient-133"><a href="#PerplexityClient-133"><span class="linenos">133</span></a><span class="sd">        whatever the API raised.</span>
+</span><span id="PerplexityClient-134"><a href="#PerplexityClient-134"><span class="linenos">134</span></a>
+</span><span id="PerplexityClient-135"><a href="#PerplexityClient-135"><span class="linenos">135</span></a><span class="sd">        In most cases, the API returns `openai.BadRequestError`.</span>
+</span><span id="PerplexityClient-136"><a href="#PerplexityClient-136"><span class="linenos">136</span></a>
+</span><span id="PerplexityClient-137"><a href="#PerplexityClient-137"><span class="linenos">137</span></a><span class="sd">            PerplexityClientError</span>
+</span><span id="PerplexityClient-138"><a href="#PerplexityClient-138"><span class="linenos">138</span></a><span class="sd">        If the query is `None` or empty.</span>
+</span><span id="PerplexityClient-139"><a href="#PerplexityClient-139"><span class="linenos">139</span></a><span class="sd">        &quot;&quot;&quot;</span>
+</span><span id="PerplexityClient-140"><a href="#PerplexityClient-140"><span class="linenos">140</span></a>        <span class="k">if</span> <span class="ow">not</span> <span class="n">query</span><span class="p">:</span>
+</span><span id="PerplexityClient-141"><a href="#PerplexityClient-141"><span class="linenos">141</span></a>            <span class="k">raise</span> <span class="n">PerplexityClientError</span><span class="p">(</span><span class="s1">&#39;query cannot be None or empty&#39;</span><span class="p">)</span>
+</span><span id="PerplexityClient-142"><a href="#PerplexityClient-142"><span class="linenos">142</span></a>
+</span><span id="PerplexityClient-143"><a href="#PerplexityClient-143"><span class="linenos">143</span></a>        <span class="n">messages</span> <span class="o">=</span> <span class="p">[</span> <span class="p">{</span> <span class="s1">&#39;role&#39;</span><span class="p">:</span> <span class="bp">self</span><span class="o">.</span><span class="n">_role</span><span class="p">,</span> <span class="s1">&#39;content&#39;</span><span class="p">:</span> <span class="n">query</span><span class="p">,</span> <span class="p">},</span> <span class="p">]</span>
+</span><span id="PerplexityClient-144"><a href="#PerplexityClient-144"><span class="linenos">144</span></a>
+</span><span id="PerplexityClient-145"><a href="#PerplexityClient-145"><span class="linenos">145</span></a>        <span class="n">response</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">chat</span><span class="o">.</span><span class="n">completions</span><span class="o">.</span><span class="n">create</span><span class="p">(</span>
+</span><span id="PerplexityClient-146"><a href="#PerplexityClient-146"><span class="linenos">146</span></a>            <span class="n">model</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">model</span><span class="p">,</span>
+</span><span id="PerplexityClient-147"><a href="#PerplexityClient-147"><span class="linenos">147</span></a>            <span class="n">messages</span> <span class="o">=</span> <span class="n">messages</span><span class="p">,</span>
+</span><span id="PerplexityClient-148"><a href="#PerplexityClient-148"><span class="linenos">148</span></a>            <span class="c1"># TODO: check the OpenAI documentation to see how this is used.</span>
+</span><span id="PerplexityClient-149"><a href="#PerplexityClient-149"><span class="linenos">149</span></a>            <span class="c1"># See:  https://docs.mistral.ai/platform/guardrailing/</span>
+</span><span id="PerplexityClient-150"><a href="#PerplexityClient-150"><span class="linenos">150</span></a>            <span class="c1"># No guardrailing.</span>
+</span><span id="PerplexityClient-151"><a href="#PerplexityClient-151"><span class="linenos">151</span></a>            <span class="c1"># safe_mode = False,</span>
+</span><span id="PerplexityClient-152"><a href="#PerplexityClient-152"><span class="linenos">152</span></a>        <span class="p">)</span>
+</span><span id="PerplexityClient-153"><a href="#PerplexityClient-153"><span class="linenos">153</span></a>
+</span><span id="PerplexityClient-154"><a href="#PerplexityClient-154"><span class="linenos">154</span></a>        <span class="n">result</span> <span class="o">=</span> <span class="n">response</span><span class="o">.</span><span class="n">choices</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="o">.</span><span class="n">message</span><span class="o">.</span><span class="n">content</span>
+</span><span id="PerplexityClient-155"><a href="#PerplexityClient-155"><span class="linenos">155</span></a>
+</span><span id="PerplexityClient-156"><a href="#PerplexityClient-156"><span class="linenos">156</span></a>        <span class="k">return</span> <span class="n">result</span>
+</span><span id="PerplexityClient-157"><a href="#PerplexityClient-157"><span class="linenos">157</span></a>
 </span><span id="PerplexityClient-158"><a href="#PerplexityClient-158"><span class="linenos">158</span></a>
-</span><span id="PerplexityClient-159"><a href="#PerplexityClient-159"><span class="linenos">159</span></a>
-</span><span id="PerplexityClient-160"><a href="#PerplexityClient-160"><span class="linenos">160</span></a>    <span class="k">def</span> <span class="nf">queryBatch</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">query</span><span class="p">:</span> <span class="nb">str</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">tuple</span><span class="p">:</span>
-</span><span id="PerplexityClient-161"><a href="#PerplexityClient-161"><span class="linenos">161</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
-</span><span id="PerplexityClient-162"><a href="#PerplexityClient-162"><span class="linenos">162</span></a><span class="sd">        Send a single message query to the service, receive a single response.</span>
-</span><span id="PerplexityClient-163"><a href="#PerplexityClient-163"><span class="linenos">163</span></a>
-</span><span id="PerplexityClient-164"><a href="#PerplexityClient-164"><span class="linenos">164</span></a><span class="sd">        Arguments</span>
-</span><span id="PerplexityClient-165"><a href="#PerplexityClient-165"><span class="linenos">165</span></a><span class="sd">        ---------</span>
-</span><span id="PerplexityClient-166"><a href="#PerplexityClient-166"><span class="linenos">166</span></a><span class="sd">            query</span>
-</span><span id="PerplexityClient-167"><a href="#PerplexityClient-167"><span class="linenos">167</span></a><span class="sd">        A string with the query in one of the model&#39;s supported languages.</span>
-</span><span id="PerplexityClient-168"><a href="#PerplexityClient-168"><span class="linenos">168</span></a>
-</span><span id="PerplexityClient-169"><a href="#PerplexityClient-169"><span class="linenos">169</span></a><span class="sd">        Returns</span>
-</span><span id="PerplexityClient-170"><a href="#PerplexityClient-170"><span class="linenos">170</span></a><span class="sd">        -------</span>
-</span><span id="PerplexityClient-171"><a href="#PerplexityClient-171"><span class="linenos">171</span></a><span class="sd">        A tuple with a batch of 1 or more response strings.</span>
-</span><span id="PerplexityClient-172"><a href="#PerplexityClient-172"><span class="linenos">172</span></a>
-</span><span id="PerplexityClient-173"><a href="#PerplexityClient-173"><span class="linenos">173</span></a><span class="sd">        Raises</span>
-</span><span id="PerplexityClient-174"><a href="#PerplexityClient-174"><span class="linenos">174</span></a><span class="sd">        ------</span>
-</span><span id="PerplexityClient-175"><a href="#PerplexityClient-175"><span class="linenos">175</span></a><span class="sd">            Exception</span>
-</span><span id="PerplexityClient-176"><a href="#PerplexityClient-176"><span class="linenos">176</span></a><span class="sd">        An `openai.BadRequestError` or similar if the query is malformed or has</span>
-</span><span id="PerplexityClient-177"><a href="#PerplexityClient-177"><span class="linenos">177</span></a><span class="sd">        something other than text data.  The error raised passes through</span>
-</span><span id="PerplexityClient-178"><a href="#PerplexityClient-178"><span class="linenos">178</span></a><span class="sd">        whatever the API raised.</span>
-</span><span id="PerplexityClient-179"><a href="#PerplexityClient-179"><span class="linenos">179</span></a>
-</span><span id="PerplexityClient-180"><a href="#PerplexityClient-180"><span class="linenos">180</span></a><span class="sd">        In most cases, the API returns `openai.BadRequestError`.</span>
-</span><span id="PerplexityClient-181"><a href="#PerplexityClient-181"><span class="linenos">181</span></a>
-</span><span id="PerplexityClient-182"><a href="#PerplexityClient-182"><span class="linenos">182</span></a><span class="sd">            PerplexityClientError</span>
-</span><span id="PerplexityClient-183"><a href="#PerplexityClient-183"><span class="linenos">183</span></a><span class="sd">        If the query is `None` or empty.</span>
-</span><span id="PerplexityClient-184"><a href="#PerplexityClient-184"><span class="linenos">184</span></a><span class="sd">        &quot;&quot;&quot;</span>
-</span><span id="PerplexityClient-185"><a href="#PerplexityClient-185"><span class="linenos">185</span></a>        <span class="k">if</span> <span class="ow">not</span> <span class="n">query</span><span class="p">:</span>
-</span><span id="PerplexityClient-186"><a href="#PerplexityClient-186"><span class="linenos">186</span></a>            <span class="k">raise</span> <span class="n">PerplexityClientError</span><span class="p">(</span><span class="s1">&#39;query cannot be None or empty&#39;</span><span class="p">)</span>
-</span><span id="PerplexityClient-187"><a href="#PerplexityClient-187"><span class="linenos">187</span></a>
-</span><span id="PerplexityClient-188"><a href="#PerplexityClient-188"><span class="linenos">188</span></a>        <span class="n">messages</span> <span class="o">=</span> <span class="p">[</span> <span class="p">{</span> <span class="s1">&#39;role&#39;</span><span class="p">:</span> <span class="bp">self</span><span class="o">.</span><span class="n">_role</span><span class="p">,</span> <span class="s1">&#39;content&#39;</span><span class="p">:</span> <span class="n">query</span><span class="p">,</span> <span class="p">},</span> <span class="p">]</span>
-</span><span id="PerplexityClient-189"><a href="#PerplexityClient-189"><span class="linenos">189</span></a>
-</span><span id="PerplexityClient-190"><a href="#PerplexityClient-190"><span class="linenos">190</span></a>        <span class="n">response</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">chat</span><span class="o">.</span><span class="n">completions</span><span class="o">.</span><span class="n">create</span><span class="p">(</span>
-</span><span id="PerplexityClient-191"><a href="#PerplexityClient-191"><span class="linenos">191</span></a>            <span class="n">model</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">model</span><span class="p">,</span>
-</span><span id="PerplexityClient-192"><a href="#PerplexityClient-192"><span class="linenos">192</span></a>            <span class="n">messages</span> <span class="o">=</span> <span class="n">messages</span><span class="p">,</span>
-</span><span id="PerplexityClient-193"><a href="#PerplexityClient-193"><span class="linenos">193</span></a>        <span class="p">)</span>
-</span><span id="PerplexityClient-194"><a href="#PerplexityClient-194"><span class="linenos">194</span></a>
-</span><span id="PerplexityClient-195"><a href="#PerplexityClient-195"><span class="linenos">195</span></a>        <span class="n">result</span> <span class="o">=</span> <span class="nb">tuple</span><span class="p">(</span><span class="n">choice</span><span class="o">.</span><span class="n">message</span><span class="o">.</span><span class="n">content</span> <span class="k">for</span> <span class="n">choice</span> <span class="ow">in</span> <span class="n">response</span><span class="o">.</span><span class="n">choices</span><span class="p">)</span>
-</span><span id="PerplexityClient-196"><a href="#PerplexityClient-196"><span class="linenos">196</span></a>
-</span><span id="PerplexityClient-197"><a href="#PerplexityClient-197"><span class="linenos">197</span></a>        <span class="k">return</span> <span class="n">result</span>
+</span><span id="PerplexityClient-159"><a href="#PerplexityClient-159"><span class="linenos">159</span></a>    <span class="k">def</span> <span class="nf">queryBatch</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">query</span><span class="p">:</span> <span class="nb">str</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">tuple</span><span class="p">:</span>
+</span><span id="PerplexityClient-160"><a href="#PerplexityClient-160"><span class="linenos">160</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
+</span><span id="PerplexityClient-161"><a href="#PerplexityClient-161"><span class="linenos">161</span></a><span class="sd">        Send a single message query to the service, receive a single response.</span>
+</span><span id="PerplexityClient-162"><a href="#PerplexityClient-162"><span class="linenos">162</span></a>
+</span><span id="PerplexityClient-163"><a href="#PerplexityClient-163"><span class="linenos">163</span></a><span class="sd">        Arguments</span>
+</span><span id="PerplexityClient-164"><a href="#PerplexityClient-164"><span class="linenos">164</span></a><span class="sd">        ---------</span>
+</span><span id="PerplexityClient-165"><a href="#PerplexityClient-165"><span class="linenos">165</span></a><span class="sd">            query</span>
+</span><span id="PerplexityClient-166"><a href="#PerplexityClient-166"><span class="linenos">166</span></a><span class="sd">        A string with the query in one of the model&#39;s supported languages.</span>
+</span><span id="PerplexityClient-167"><a href="#PerplexityClient-167"><span class="linenos">167</span></a>
+</span><span id="PerplexityClient-168"><a href="#PerplexityClient-168"><span class="linenos">168</span></a><span class="sd">        Returns</span>
+</span><span id="PerplexityClient-169"><a href="#PerplexityClient-169"><span class="linenos">169</span></a><span class="sd">        -------</span>
+</span><span id="PerplexityClient-170"><a href="#PerplexityClient-170"><span class="linenos">170</span></a><span class="sd">        A tuple with a batch of 1 or more response strings.</span>
+</span><span id="PerplexityClient-171"><a href="#PerplexityClient-171"><span class="linenos">171</span></a>
+</span><span id="PerplexityClient-172"><a href="#PerplexityClient-172"><span class="linenos">172</span></a><span class="sd">        Raises</span>
+</span><span id="PerplexityClient-173"><a href="#PerplexityClient-173"><span class="linenos">173</span></a><span class="sd">        ------</span>
+</span><span id="PerplexityClient-174"><a href="#PerplexityClient-174"><span class="linenos">174</span></a><span class="sd">            Exception</span>
+</span><span id="PerplexityClient-175"><a href="#PerplexityClient-175"><span class="linenos">175</span></a><span class="sd">        An `openai.BadRequestError` or similar if the query is malformed or has</span>
+</span><span id="PerplexityClient-176"><a href="#PerplexityClient-176"><span class="linenos">176</span></a><span class="sd">        something other than text data.  The error raised passes through</span>
+</span><span id="PerplexityClient-177"><a href="#PerplexityClient-177"><span class="linenos">177</span></a><span class="sd">        whatever the API raised.</span>
+</span><span id="PerplexityClient-178"><a href="#PerplexityClient-178"><span class="linenos">178</span></a>
+</span><span id="PerplexityClient-179"><a href="#PerplexityClient-179"><span class="linenos">179</span></a><span class="sd">        In most cases, the API returns `openai.BadRequestError`.</span>
+</span><span id="PerplexityClient-180"><a href="#PerplexityClient-180"><span class="linenos">180</span></a>
+</span><span id="PerplexityClient-181"><a href="#PerplexityClient-181"><span class="linenos">181</span></a><span class="sd">            PerplexityClientError</span>
+</span><span id="PerplexityClient-182"><a href="#PerplexityClient-182"><span class="linenos">182</span></a><span class="sd">        If the query is `None` or empty.</span>
+</span><span id="PerplexityClient-183"><a href="#PerplexityClient-183"><span class="linenos">183</span></a><span class="sd">        &quot;&quot;&quot;</span>
+</span><span id="PerplexityClient-184"><a href="#PerplexityClient-184"><span class="linenos">184</span></a>        <span class="k">if</span> <span class="ow">not</span> <span class="n">query</span><span class="p">:</span>
+</span><span id="PerplexityClient-185"><a href="#PerplexityClient-185"><span class="linenos">185</span></a>            <span class="k">raise</span> <span class="n">PerplexityClientError</span><span class="p">(</span><span class="s1">&#39;query cannot be None or empty&#39;</span><span class="p">)</span>
+</span><span id="PerplexityClient-186"><a href="#PerplexityClient-186"><span class="linenos">186</span></a>
+</span><span id="PerplexityClient-187"><a href="#PerplexityClient-187"><span class="linenos">187</span></a>        <span class="n">messages</span> <span class="o">=</span> <span class="p">[</span> <span class="p">{</span> <span class="s1">&#39;role&#39;</span><span class="p">:</span> <span class="bp">self</span><span class="o">.</span><span class="n">_role</span><span class="p">,</span> <span class="s1">&#39;content&#39;</span><span class="p">:</span> <span class="n">query</span><span class="p">,</span> <span class="p">},</span> <span class="p">]</span>
+</span><span id="PerplexityClient-188"><a href="#PerplexityClient-188"><span class="linenos">188</span></a>
+</span><span id="PerplexityClient-189"><a href="#PerplexityClient-189"><span class="linenos">189</span></a>        <span class="n">response</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">chat</span><span class="o">.</span><span class="n">completions</span><span class="o">.</span><span class="n">create</span><span class="p">(</span>
+</span><span id="PerplexityClient-190"><a href="#PerplexityClient-190"><span class="linenos">190</span></a>            <span class="n">model</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">model</span><span class="p">,</span>
+</span><span id="PerplexityClient-191"><a href="#PerplexityClient-191"><span class="linenos">191</span></a>            <span class="n">messages</span> <span class="o">=</span> <span class="n">messages</span><span class="p">,</span>
+</span><span id="PerplexityClient-192"><a href="#PerplexityClient-192"><span class="linenos">192</span></a>        <span class="p">)</span>
+</span><span id="PerplexityClient-193"><a href="#PerplexityClient-193"><span class="linenos">193</span></a>
+</span><span id="PerplexityClient-194"><a href="#PerplexityClient-194"><span class="linenos">194</span></a>        <span class="n">result</span> <span class="o">=</span> <span class="nb">tuple</span><span class="p">(</span><span class="n">choice</span><span class="o">.</span><span class="n">message</span><span class="o">.</span><span class="n">content</span> <span class="k">for</span> <span class="n">choice</span> <span class="ow">in</span> <span class="n">response</span><span class="o">.</span><span class="n">choices</span><span class="p">)</span>
+</span><span id="PerplexityClient-195"><a href="#PerplexityClient-195"><span class="linenos">195</span></a>
+</span><span id="PerplexityClient-196"><a href="#PerplexityClient-196"><span class="linenos">196</span></a>        <span class="k">return</span> <span class="n">result</span>
+</span><span id="PerplexityClient-197"><a href="#PerplexityClient-197"><span class="linenos">197</span></a>
 </span><span id="PerplexityClient-198"><a href="#PerplexityClient-198"><span class="linenos">198</span></a>
-</span><span id="PerplexityClient-199"><a href="#PerplexityClient-199"><span class="linenos">199</span></a>
-</span><span id="PerplexityClient-200"><a href="#PerplexityClient-200"><span class="linenos">200</span></a>    <span class="k">def</span> <span class="nf">queryStreamable</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">query</span><span class="p">:</span> <span class="nb">str</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">Responses</span><span class="p">:</span>
-</span><span id="PerplexityClient-201"><a href="#PerplexityClient-201"><span class="linenos">201</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
-</span><span id="PerplexityClient-202"><a href="#PerplexityClient-202"><span class="linenos">202</span></a><span class="sd">        Send a query and return a long, streamable response.</span>
-</span><span id="PerplexityClient-203"><a href="#PerplexityClient-203"><span class="linenos">203</span></a>
-</span><span id="PerplexityClient-204"><a href="#PerplexityClient-204"><span class="linenos">204</span></a><span class="sd">        Arguments</span>
-</span><span id="PerplexityClient-205"><a href="#PerplexityClient-205"><span class="linenos">205</span></a><span class="sd">        ---------</span>
-</span><span id="PerplexityClient-206"><a href="#PerplexityClient-206"><span class="linenos">206</span></a><span class="sd">            query</span>
-</span><span id="PerplexityClient-207"><a href="#PerplexityClient-207"><span class="linenos">207</span></a><span class="sd">        A string with the query in one of the model&#39;s supported languages.</span>
-</span><span id="PerplexityClient-208"><a href="#PerplexityClient-208"><span class="linenos">208</span></a>
-</span><span id="PerplexityClient-209"><a href="#PerplexityClient-209"><span class="linenos">209</span></a><span class="sd">        Returns</span>
-</span><span id="PerplexityClient-210"><a href="#PerplexityClient-210"><span class="linenos">210</span></a><span class="sd">        -------</span>
-</span><span id="PerplexityClient-211"><a href="#PerplexityClient-211"><span class="linenos">211</span></a><span class="sd">        Returns a `perplexipy.Responses` object for streaming the textual</span>
-</span><span id="PerplexityClient-212"><a href="#PerplexityClient-212"><span class="linenos">212</span></a><span class="sd">        responses from the client.  The response strips all metadata and returns</span>
-</span><span id="PerplexityClient-213"><a href="#PerplexityClient-213"><span class="linenos">213</span></a><span class="sd">        only content strings, for simpler and easier integration.</span>
-</span><span id="PerplexityClient-214"><a href="#PerplexityClient-214"><span class="linenos">214</span></a>
-</span><span id="PerplexityClient-215"><a href="#PerplexityClient-215"><span class="linenos">215</span></a><span class="sd">        Raises</span>
-</span><span id="PerplexityClient-216"><a href="#PerplexityClient-216"><span class="linenos">216</span></a><span class="sd">        ------</span>
-</span><span id="PerplexityClient-217"><a href="#PerplexityClient-217"><span class="linenos">217</span></a><span class="sd">            Exception</span>
-</span><span id="PerplexityClient-218"><a href="#PerplexityClient-218"><span class="linenos">218</span></a><span class="sd">        An `openai.BadRequestError` or similar if the query is malformed or has</span>
-</span><span id="PerplexityClient-219"><a href="#PerplexityClient-219"><span class="linenos">219</span></a><span class="sd">        something other than text data.  The error raised passes through</span>
-</span><span id="PerplexityClient-220"><a href="#PerplexityClient-220"><span class="linenos">220</span></a><span class="sd">        whatever the API raised.</span>
-</span><span id="PerplexityClient-221"><a href="#PerplexityClient-221"><span class="linenos">221</span></a>
-</span><span id="PerplexityClient-222"><a href="#PerplexityClient-222"><span class="linenos">222</span></a><span class="sd">        In most cases, the API returns `openai.BadRequestError`.</span>
-</span><span id="PerplexityClient-223"><a href="#PerplexityClient-223"><span class="linenos">223</span></a>
-</span><span id="PerplexityClient-224"><a href="#PerplexityClient-224"><span class="linenos">224</span></a><span class="sd">            PerplexityClientError</span>
-</span><span id="PerplexityClient-225"><a href="#PerplexityClient-225"><span class="linenos">225</span></a><span class="sd">        If the query is `None` or empty.</span>
-</span><span id="PerplexityClient-226"><a href="#PerplexityClient-226"><span class="linenos">226</span></a><span class="sd">        &quot;&quot;&quot;</span>
-</span><span id="PerplexityClient-227"><a href="#PerplexityClient-227"><span class="linenos">227</span></a>        <span class="k">if</span> <span class="ow">not</span> <span class="n">query</span><span class="p">:</span>
-</span><span id="PerplexityClient-228"><a href="#PerplexityClient-228"><span class="linenos">228</span></a>            <span class="k">raise</span> <span class="n">PerplexityClientError</span><span class="p">(</span><span class="s1">&#39;query cannot be None or empty&#39;</span><span class="p">)</span>
-</span><span id="PerplexityClient-229"><a href="#PerplexityClient-229"><span class="linenos">229</span></a>
-</span><span id="PerplexityClient-230"><a href="#PerplexityClient-230"><span class="linenos">230</span></a>        <span class="n">messages</span> <span class="o">=</span> <span class="p">[</span> <span class="p">{</span> <span class="s1">&#39;role&#39;</span><span class="p">:</span> <span class="bp">self</span><span class="o">.</span><span class="n">_role</span><span class="p">,</span> <span class="s1">&#39;content&#39;</span><span class="p">:</span> <span class="n">query</span><span class="p">,</span> <span class="p">},</span> <span class="p">]</span>
-</span><span id="PerplexityClient-231"><a href="#PerplexityClient-231"><span class="linenos">231</span></a>
-</span><span id="PerplexityClient-232"><a href="#PerplexityClient-232"><span class="linenos">232</span></a>        <span class="n">response</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">chat</span><span class="o">.</span><span class="n">completions</span><span class="o">.</span><span class="n">create</span><span class="p">(</span>
-</span><span id="PerplexityClient-233"><a href="#PerplexityClient-233"><span class="linenos">233</span></a>            <span class="n">model</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">model</span><span class="p">,</span>
-</span><span id="PerplexityClient-234"><a href="#PerplexityClient-234"><span class="linenos">234</span></a>            <span class="n">messages</span> <span class="o">=</span> <span class="n">messages</span><span class="p">,</span>
-</span><span id="PerplexityClient-235"><a href="#PerplexityClient-235"><span class="linenos">235</span></a>            <span class="n">stream</span> <span class="o">=</span> <span class="kc">True</span><span class="p">,</span>
-</span><span id="PerplexityClient-236"><a href="#PerplexityClient-236"><span class="linenos">236</span></a>        <span class="p">)</span>
-</span><span id="PerplexityClient-237"><a href="#PerplexityClient-237"><span class="linenos">237</span></a>
-</span><span id="PerplexityClient-238"><a href="#PerplexityClient-238"><span class="linenos">238</span></a>        <span class="k">return</span> <span class="n">Responses</span><span class="p">(</span><span class="n">response</span><span class="p">)</span>
+</span><span id="PerplexityClient-199"><a href="#PerplexityClient-199"><span class="linenos">199</span></a>    <span class="k">def</span> <span class="nf">queryStreamable</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">query</span><span class="p">:</span> <span class="nb">str</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">Responses</span><span class="p">:</span>
+</span><span id="PerplexityClient-200"><a href="#PerplexityClient-200"><span class="linenos">200</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
+</span><span id="PerplexityClient-201"><a href="#PerplexityClient-201"><span class="linenos">201</span></a><span class="sd">        Send a query and return a long, streamable response.</span>
+</span><span id="PerplexityClient-202"><a href="#PerplexityClient-202"><span class="linenos">202</span></a>
+</span><span id="PerplexityClient-203"><a href="#PerplexityClient-203"><span class="linenos">203</span></a><span class="sd">        Arguments</span>
+</span><span id="PerplexityClient-204"><a href="#PerplexityClient-204"><span class="linenos">204</span></a><span class="sd">        ---------</span>
+</span><span id="PerplexityClient-205"><a href="#PerplexityClient-205"><span class="linenos">205</span></a><span class="sd">            query</span>
+</span><span id="PerplexityClient-206"><a href="#PerplexityClient-206"><span class="linenos">206</span></a><span class="sd">        A string with the query in one of the model&#39;s supported languages.</span>
+</span><span id="PerplexityClient-207"><a href="#PerplexityClient-207"><span class="linenos">207</span></a>
+</span><span id="PerplexityClient-208"><a href="#PerplexityClient-208"><span class="linenos">208</span></a><span class="sd">        Returns</span>
+</span><span id="PerplexityClient-209"><a href="#PerplexityClient-209"><span class="linenos">209</span></a><span class="sd">        -------</span>
+</span><span id="PerplexityClient-210"><a href="#PerplexityClient-210"><span class="linenos">210</span></a><span class="sd">        Returns a `perplexipy.Responses` object for streaming the textual</span>
+</span><span id="PerplexityClient-211"><a href="#PerplexityClient-211"><span class="linenos">211</span></a><span class="sd">        responses from the client.  The response strips all metadata and returns</span>
+</span><span id="PerplexityClient-212"><a href="#PerplexityClient-212"><span class="linenos">212</span></a><span class="sd">        only content strings, for simpler and easier integration.</span>
+</span><span id="PerplexityClient-213"><a href="#PerplexityClient-213"><span class="linenos">213</span></a>
+</span><span id="PerplexityClient-214"><a href="#PerplexityClient-214"><span class="linenos">214</span></a><span class="sd">        Raises</span>
+</span><span id="PerplexityClient-215"><a href="#PerplexityClient-215"><span class="linenos">215</span></a><span class="sd">        ------</span>
+</span><span id="PerplexityClient-216"><a href="#PerplexityClient-216"><span class="linenos">216</span></a><span class="sd">            Exception</span>
+</span><span id="PerplexityClient-217"><a href="#PerplexityClient-217"><span class="linenos">217</span></a><span class="sd">        An `openai.BadRequestError` or similar if the query is malformed or has</span>
+</span><span id="PerplexityClient-218"><a href="#PerplexityClient-218"><span class="linenos">218</span></a><span class="sd">        something other than text data.  The error raised passes through</span>
+</span><span id="PerplexityClient-219"><a href="#PerplexityClient-219"><span class="linenos">219</span></a><span class="sd">        whatever the API raised.</span>
+</span><span id="PerplexityClient-220"><a href="#PerplexityClient-220"><span class="linenos">220</span></a>
+</span><span id="PerplexityClient-221"><a href="#PerplexityClient-221"><span class="linenos">221</span></a><span class="sd">        In most cases, the API returns `openai.BadRequestError`.</span>
+</span><span id="PerplexityClient-222"><a href="#PerplexityClient-222"><span class="linenos">222</span></a>
+</span><span id="PerplexityClient-223"><a href="#PerplexityClient-223"><span class="linenos">223</span></a><span class="sd">            PerplexityClientError</span>
+</span><span id="PerplexityClient-224"><a href="#PerplexityClient-224"><span class="linenos">224</span></a><span class="sd">        If the query is `None` or empty.</span>
+</span><span id="PerplexityClient-225"><a href="#PerplexityClient-225"><span class="linenos">225</span></a><span class="sd">        &quot;&quot;&quot;</span>
+</span><span id="PerplexityClient-226"><a href="#PerplexityClient-226"><span class="linenos">226</span></a>        <span class="k">if</span> <span class="ow">not</span> <span class="n">query</span><span class="p">:</span>
+</span><span id="PerplexityClient-227"><a href="#PerplexityClient-227"><span class="linenos">227</span></a>            <span class="k">raise</span> <span class="n">PerplexityClientError</span><span class="p">(</span><span class="s1">&#39;query cannot be None or empty&#39;</span><span class="p">)</span>
+</span><span id="PerplexityClient-228"><a href="#PerplexityClient-228"><span class="linenos">228</span></a>
+</span><span id="PerplexityClient-229"><a href="#PerplexityClient-229"><span class="linenos">229</span></a>        <span class="n">messages</span> <span class="o">=</span> <span class="p">[</span> <span class="p">{</span> <span class="s1">&#39;role&#39;</span><span class="p">:</span> <span class="bp">self</span><span class="o">.</span><span class="n">_role</span><span class="p">,</span> <span class="s1">&#39;content&#39;</span><span class="p">:</span> <span class="n">query</span><span class="p">,</span> <span class="p">},</span> <span class="p">]</span>
+</span><span id="PerplexityClient-230"><a href="#PerplexityClient-230"><span class="linenos">230</span></a>
+</span><span id="PerplexityClient-231"><a href="#PerplexityClient-231"><span class="linenos">231</span></a>        <span class="n">response</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">chat</span><span class="o">.</span><span class="n">completions</span><span class="o">.</span><span class="n">create</span><span class="p">(</span>
+</span><span id="PerplexityClient-232"><a href="#PerplexityClient-232"><span class="linenos">232</span></a>            <span class="n">model</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">model</span><span class="p">,</span>
+</span><span id="PerplexityClient-233"><a href="#PerplexityClient-233"><span class="linenos">233</span></a>            <span class="n">messages</span> <span class="o">=</span> <span class="n">messages</span><span class="p">,</span>
+</span><span id="PerplexityClient-234"><a href="#PerplexityClient-234"><span class="linenos">234</span></a>            <span class="n">stream</span> <span class="o">=</span> <span class="kc">True</span><span class="p">,</span>
+</span><span id="PerplexityClient-235"><a href="#PerplexityClient-235"><span class="linenos">235</span></a>        <span class="p">)</span>
+</span><span id="PerplexityClient-236"><a href="#PerplexityClient-236"><span class="linenos">236</span></a>
+</span><span id="PerplexityClient-237"><a href="#PerplexityClient-237"><span class="linenos">237</span></a>        <span class="k">return</span> <span class="n">Responses</span><span class="p">(</span><span class="n">response</span><span class="p">)</span>
+</span><span id="PerplexityClient-238"><a href="#PerplexityClient-238"><span class="linenos">238</span></a>
 </span><span id="PerplexityClient-239"><a href="#PerplexityClient-239"><span class="linenos">239</span></a>
-</span><span id="PerplexityClient-240"><a href="#PerplexityClient-240"><span class="linenos">240</span></a>
-</span><span id="PerplexityClient-241"><a href="#PerplexityClient-241"><span class="linenos">241</span></a>    <span class="nd">@property</span>
-</span><span id="PerplexityClient-242"><a href="#PerplexityClient-242"><span class="linenos">242</span></a>    <span class="k">def</span> <span class="nf">models</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">unitTest</span> <span class="o">=</span> <span class="kc">False</span><span class="p">):</span>
-</span><span id="PerplexityClient-243"><a href="#PerplexityClient-243"><span class="linenos">243</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
-</span><span id="PerplexityClient-244"><a href="#PerplexityClient-244"><span class="linenos">244</span></a><span class="sd">        Provide a dictionary of the models supported by Perplexity listed in:</span>
-</span><span id="PerplexityClient-245"><a href="#PerplexityClient-245"><span class="linenos">245</span></a>
-</span><span id="PerplexityClient-246"><a href="#PerplexityClient-246"><span class="linenos">246</span></a><span class="sd">        https://docs.perplexity.ai/docs/model-cards</span>
-</span><span id="PerplexityClient-247"><a href="#PerplexityClient-247"><span class="linenos">247</span></a>
-</span><span id="PerplexityClient-248"><a href="#PerplexityClient-248"><span class="linenos">248</span></a><span class="sd">        Returns</span>
-</span><span id="PerplexityClient-249"><a href="#PerplexityClient-249"><span class="linenos">249</span></a><span class="sd">        -------</span>
-</span><span id="PerplexityClient-250"><a href="#PerplexityClient-250"><span class="linenos">250</span></a><span class="sd">        A dictionary of supported models as the key, with a `perplexypy.ModelInfo`</span>
-</span><span id="PerplexityClient-251"><a href="#PerplexityClient-251"><span class="linenos">251</span></a><span class="sd">        named tuple with the model capabilities description.  The model</span>
-</span><span id="PerplexityClient-252"><a href="#PerplexityClient-252"><span class="linenos">252</span></a><span class="sd">        information attributes are:</span>
-</span><span id="PerplexityClient-253"><a href="#PerplexityClient-253"><span class="linenos">253</span></a>
-</span><span id="PerplexityClient-254"><a href="#PerplexityClient-254"><span class="linenos">254</span></a><span class="sd">        - `parameterCount`</span>
-</span><span id="PerplexityClient-255"><a href="#PerplexityClient-255"><span class="linenos">255</span></a><span class="sd">        - `contextLength`</span>
-</span><span id="PerplexityClient-256"><a href="#PerplexityClient-256"><span class="linenos">256</span></a><span class="sd">        - `modelType`</span>
-</span><span id="PerplexityClient-257"><a href="#PerplexityClient-257"><span class="linenos">257</span></a><span class="sd">        - `availability`</span>
-</span><span id="PerplexityClient-258"><a href="#PerplexityClient-258"><span class="linenos">258</span></a><span class="sd">        &quot;&quot;&quot;</span>
-</span><span id="PerplexityClient-259"><a href="#PerplexityClient-259"><span class="linenos">259</span></a>        <span class="n">supportedModels</span> <span class="o">=</span> <span class="n">OrderedDict</span><span class="p">({</span>
-</span><span id="PerplexityClient-260"><a href="#PerplexityClient-260"><span class="linenos">260</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-261"><a href="#PerplexityClient-261"><span class="linenos">261</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-262"><a href="#PerplexityClient-262"><span class="linenos">262</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-263"><a href="#PerplexityClient-263"><span class="linenos">263</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-264"><a href="#PerplexityClient-264"><span class="linenos">264</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-265"><a href="#PerplexityClient-265"><span class="linenos">265</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-266"><a href="#PerplexityClient-266"><span class="linenos">266</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-267"><a href="#PerplexityClient-267"><span class="linenos">267</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-268"><a href="#PerplexityClient-268"><span class="linenos">268</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-269"><a href="#PerplexityClient-269"><span class="linenos">269</span></a>        <span class="p">})</span>
-</span><span id="PerplexityClient-270"><a href="#PerplexityClient-270"><span class="linenos">270</span></a>
-</span><span id="PerplexityClient-271"><a href="#PerplexityClient-271"><span class="linenos">271</span></a>        <span class="k">return</span> <span class="n">supportedModels</span>
+</span><span id="PerplexityClient-240"><a href="#PerplexityClient-240"><span class="linenos">240</span></a>    <span class="nd">@property</span>
+</span><span id="PerplexityClient-241"><a href="#PerplexityClient-241"><span class="linenos">241</span></a>    <span class="k">def</span> <span class="nf">models</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">unitTest</span> <span class="o">=</span> <span class="kc">False</span><span class="p">):</span>
+</span><span id="PerplexityClient-242"><a href="#PerplexityClient-242"><span class="linenos">242</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
+</span><span id="PerplexityClient-243"><a href="#PerplexityClient-243"><span class="linenos">243</span></a><span class="sd">        Provide a dictionary of the models supported by Perplexity listed in:</span>
+</span><span id="PerplexityClient-244"><a href="#PerplexityClient-244"><span class="linenos">244</span></a>
+</span><span id="PerplexityClient-245"><a href="#PerplexityClient-245"><span class="linenos">245</span></a><span class="sd">        https://docs.perplexity.ai/docs/model-cards</span>
+</span><span id="PerplexityClient-246"><a href="#PerplexityClient-246"><span class="linenos">246</span></a>
+</span><span id="PerplexityClient-247"><a href="#PerplexityClient-247"><span class="linenos">247</span></a><span class="sd">        Returns</span>
+</span><span id="PerplexityClient-248"><a href="#PerplexityClient-248"><span class="linenos">248</span></a><span class="sd">        -------</span>
+</span><span id="PerplexityClient-249"><a href="#PerplexityClient-249"><span class="linenos">249</span></a><span class="sd">        A dictionary of supported models as the key, with a `perplexypy.ModelInfo`</span>
+</span><span id="PerplexityClient-250"><a href="#PerplexityClient-250"><span class="linenos">250</span></a><span class="sd">        named tuple with the model capabilities description.  The model</span>
+</span><span id="PerplexityClient-251"><a href="#PerplexityClient-251"><span class="linenos">251</span></a><span class="sd">        information attributes are:</span>
+</span><span id="PerplexityClient-252"><a href="#PerplexityClient-252"><span class="linenos">252</span></a>
+</span><span id="PerplexityClient-253"><a href="#PerplexityClient-253"><span class="linenos">253</span></a><span class="sd">        - `parameterCount`</span>
+</span><span id="PerplexityClient-254"><a href="#PerplexityClient-254"><span class="linenos">254</span></a><span class="sd">        - `contextLength`</span>
+</span><span id="PerplexityClient-255"><a href="#PerplexityClient-255"><span class="linenos">255</span></a><span class="sd">        - `modelType`</span>
+</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-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><span id="PerplexityClient-274"><a href="#PerplexityClient-274"><span class="linenos">274</span></a>    <span class="nd">@property</span>
-</span><span id="PerplexityClient-275"><a href="#PerplexityClient-275"><span class="linenos">275</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-276"><a href="#PerplexityClient-276"><span class="linenos">276</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
-</span><span id="PerplexityClient-277"><a href="#PerplexityClient-277"><span class="linenos">277</span></a><span class="sd">        Return the model the client uses for requesting responses from the</span>
-</span><span id="PerplexityClient-278"><a href="#PerplexityClient-278"><span class="linenos">278</span></a><span class="sd">        service provider.  Its default value is:  `PERPLEXITY_DEFAULT_MODEL`.</span>
-</span><span id="PerplexityClient-279"><a href="#PerplexityClient-279"><span class="linenos">279</span></a><span class="sd">        &quot;&quot;&quot;</span>
-</span><span id="PerplexityClient-280"><a href="#PerplexityClient-280"><span class="linenos">280</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-281"><a href="#PerplexityClient-281"><span class="linenos">281</span></a>
-</span><span id="PerplexityClient-282"><a href="#PerplexityClient-282"><span class="linenos">282</span></a>    <span class="nd">@model</span><span class="o">.</span><span class="n">setter</span>
-</span><span id="PerplexityClient-283"><a href="#PerplexityClient-283"><span class="linenos">283</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-284"><a href="#PerplexityClient-284"><span class="linenos">284</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
-</span><span id="PerplexityClient-285"><a href="#PerplexityClient-285"><span class="linenos">285</span></a><span class="sd">        Set the model to use for generating responses.</span>
-</span><span id="PerplexityClient-286"><a href="#PerplexityClient-286"><span class="linenos">286</span></a>
-</span><span id="PerplexityClient-287"><a href="#PerplexityClient-287"><span class="linenos">287</span></a><span class="sd">        Arguments</span>
-</span><span id="PerplexityClient-288"><a href="#PerplexityClient-288"><span class="linenos">288</span></a><span class="sd">        ---------</span>
-</span><span id="PerplexityClient-289"><a href="#PerplexityClient-289"><span class="linenos">289</span></a><span class="sd">            value</span>
-</span><span id="PerplexityClient-290"><a href="#PerplexityClient-290"><span class="linenos">290</span></a><span class="sd">        A string matching one of the supported models.</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">        Returns</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">        `None` - setter method decorated as a property.</span>
-</span><span id="PerplexityClient-295"><a href="#PerplexityClient-295"><span class="linenos">295</span></a>
-</span><span id="PerplexityClient-296"><a href="#PerplexityClient-296"><span class="linenos">296</span></a><span class="sd">        Raises</span>
-</span><span id="PerplexityClient-297"><a href="#PerplexityClient-297"><span class="linenos">297</span></a><span class="sd">        ------</span>
-</span><span id="PerplexityClient-298"><a href="#PerplexityClient-298"><span class="linenos">298</span></a><span class="sd">        `perplexipy.PerplexityClientError` if the `value` isn&#39;t included in the list of</span>
-</span><span id="PerplexityClient-299"><a href="#PerplexityClient-299"><span class="linenos">299</span></a><span class="sd">        supported models.</span>
-</span><span id="PerplexityClient-300"><a href="#PerplexityClient-300"><span class="linenos">300</span></a><span class="sd">        &quot;&quot;&quot;</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="n">value</span><span class="p">:</span>
-</span><span id="PerplexityClient-302"><a href="#PerplexityClient-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 cannot be None&#39;</span><span class="p">)</span>
-</span><span id="PerplexityClient-303"><a href="#PerplexityClient-303"><span class="linenos">303</span></a>
-</span><span id="PerplexityClient-304"><a href="#PerplexityClient-304"><span class="linenos">304</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-305"><a href="#PerplexityClient-305"><span class="linenos">305</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-306"><a href="#PerplexityClient-306"><span class="linenos">306</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-307"><a href="#PerplexityClient-307"><span class="linenos">307</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-308"><a href="#PerplexityClient-308"><span class="linenos">308</span></a>
-</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">_model</span> <span class="o">=</span> <span class="n">value</span>
-</span><span id="PerplexityClient-310"><a href="#PerplexityClient-310"><span class="linenos">310</span></a>
-</span><span id="PerplexityClient-311"><a href="#PerplexityClient-311"><span class="linenos">311</span></a>        <span class="c1"># Validate that the model still works, revert otherwise</span>
-</span><span id="PerplexityClient-312"><a href="#PerplexityClient-312"><span class="linenos">312</span></a>        <span class="k">try</span><span class="p">:</span>
-</span><span id="PerplexityClient-313"><a href="#PerplexityClient-313"><span class="linenos">313</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-314"><a href="#PerplexityClient-314"><span class="linenos">314</span></a>        <span class="k">except</span><span class="p">:</span>
-</span><span id="PerplexityClient-315"><a href="#PerplexityClient-315"><span class="linenos">315</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-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></pre></div>
 
 
@@ -904,55 +906,57 @@ <h5>Inherited Members</h5>
 
     </div>
     <a class="headerlink" href="#PerplexityClient.__init__"></a>
-            <div class="pdoc-code codehilite"><pre><span></span><span id="PerplexityClient.__init__-65"><a href="#PerplexityClient.__init__-65"><span class="linenos"> 65</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 class="n">key</span><span class="p">:</span> <span class="nb">str</span><span class="p">,</span> <span class="n">endpoint</span><span class="p">:</span><span class="nb">str</span> <span class="o">=</span> <span class="n">PERPLEXITY_API_URL</span><span class="p">,</span> <span class="n">unitTest</span> <span class="o">=</span> <span class="kc">False</span><span class="p">):</span>
-</span><span id="PerplexityClient.__init__-66"><a href="#PerplexityClient.__init__-66"><span class="linenos"> 66</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
-</span><span id="PerplexityClient.__init__-67"><a href="#PerplexityClient.__init__-67"><span class="linenos"> 67</span></a><span class="sd">        Create a new instance of `perplexipy.PerplexityClient` using the API</span>
-</span><span id="PerplexityClient.__init__-68"><a href="#PerplexityClient.__init__-68"><span class="linenos"> 68</span></a><span class="sd">        `key` to connect to the corresponding `endpoint`.</span>
-</span><span id="PerplexityClient.__init__-69"><a href="#PerplexityClient.__init__-69"><span class="linenos"> 69</span></a>
-</span><span id="PerplexityClient.__init__-70"><a href="#PerplexityClient.__init__-70"><span class="linenos"> 70</span></a><span class="sd">        Arguments</span>
-</span><span id="PerplexityClient.__init__-71"><a href="#PerplexityClient.__init__-71"><span class="linenos"> 71</span></a><span class="sd">        ---------</span>
-</span><span id="PerplexityClient.__init__-72"><a href="#PerplexityClient.__init__-72"><span class="linenos"> 72</span></a><span class="sd">            key</span>
-</span><span id="PerplexityClient.__init__-73"><a href="#PerplexityClient.__init__-73"><span class="linenos"> 73</span></a><span class="sd">        A valid API key string.  If not present, it defaults to `perplexipy.PERPLEXITY_API_KEY`.</span>
+            <div class="pdoc-code codehilite"><pre><span></span><span id="PerplexityClient.__init__-62"><a href="#PerplexityClient.__init__-62"><span class="linenos"> 62</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 class="n">key</span><span class="p">:</span> <span class="nb">str</span><span class="p">,</span> <span class="n">endpoint</span><span class="p">:</span><span class="nb">str</span> <span class="o">=</span> <span class="n">PERPLEXITY_API_URL</span><span class="p">,</span> <span class="n">unitTest</span> <span class="o">=</span> <span class="kc">False</span><span class="p">):</span>
+</span><span id="PerplexityClient.__init__-63"><a href="#PerplexityClient.__init__-63"><span class="linenos"> 63</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
+</span><span id="PerplexityClient.__init__-64"><a href="#PerplexityClient.__init__-64"><span class="linenos"> 64</span></a><span class="sd">        Create a new instance of `perplexipy.PerplexityClient` using the API</span>
+</span><span id="PerplexityClient.__init__-65"><a href="#PerplexityClient.__init__-65"><span class="linenos"> 65</span></a><span class="sd">        `key` to connect to the corresponding `endpoint`.</span>
+</span><span id="PerplexityClient.__init__-66"><a href="#PerplexityClient.__init__-66"><span class="linenos"> 66</span></a>
+</span><span id="PerplexityClient.__init__-67"><a href="#PerplexityClient.__init__-67"><span class="linenos"> 67</span></a><span class="sd">        Arguments</span>
+</span><span id="PerplexityClient.__init__-68"><a href="#PerplexityClient.__init__-68"><span class="linenos"> 68</span></a><span class="sd">        ---------</span>
+</span><span id="PerplexityClient.__init__-69"><a href="#PerplexityClient.__init__-69"><span class="linenos"> 69</span></a><span class="sd">            key</span>
+</span><span id="PerplexityClient.__init__-70"><a href="#PerplexityClient.__init__-70"><span class="linenos"> 70</span></a><span class="sd">        A valid API key string.  If not present, it defaults to `perplexipy.PERPLEXITY_API_KEY`.</span>
+</span><span id="PerplexityClient.__init__-71"><a href="#PerplexityClient.__init__-71"><span class="linenos"> 71</span></a>
+</span><span id="PerplexityClient.__init__-72"><a href="#PerplexityClient.__init__-72"><span class="linenos"> 72</span></a><span class="sd">            endpoint</span>
+</span><span id="PerplexityClient.__init__-73"><a href="#PerplexityClient.__init__-73"><span class="linenos"> 73</span></a><span class="sd">        A string representing a URL to the Perplexity API.</span>
 </span><span id="PerplexityClient.__init__-74"><a href="#PerplexityClient.__init__-74"><span class="linenos"> 74</span></a>
-</span><span id="PerplexityClient.__init__-75"><a href="#PerplexityClient.__init__-75"><span class="linenos"> 75</span></a><span class="sd">            endpoint</span>
-</span><span id="PerplexityClient.__init__-76"><a href="#PerplexityClient.__init__-76"><span class="linenos"> 76</span></a><span class="sd">        A string representing a URL to the Perplexity API.</span>
-</span><span id="PerplexityClient.__init__-77"><a href="#PerplexityClient.__init__-77"><span class="linenos"> 77</span></a>
-</span><span id="PerplexityClient.__init__-78"><a href="#PerplexityClient.__init__-78"><span class="linenos"> 78</span></a><span class="sd">            unitTest</span>
-</span><span id="PerplexityClient.__init__-79"><a href="#PerplexityClient.__init__-79"><span class="linenos"> 79</span></a><span class="sd">        A Boolean to indicate if internal object states need to be modified for</span>
-</span><span id="PerplexityClient.__init__-80"><a href="#PerplexityClient.__init__-80"><span class="linenos"> 80</span></a><span class="sd">        unit testing.  Has no effect in regular code.</span>
-</span><span id="PerplexityClient.__init__-81"><a href="#PerplexityClient.__init__-81"><span class="linenos"> 81</span></a>
-</span><span id="PerplexityClient.__init__-82"><a href="#PerplexityClient.__init__-82"><span class="linenos"> 82</span></a><span class="sd">        Returns</span>
-</span><span id="PerplexityClient.__init__-83"><a href="#PerplexityClient.__init__-83"><span class="linenos"> 83</span></a><span class="sd">        -------</span>
-</span><span id="PerplexityClient.__init__-84"><a href="#PerplexityClient.__init__-84"><span class="linenos"> 84</span></a><span class="sd">        An instance of `perplexipy.PerplexityClient` if successful.</span>
-</span><span id="PerplexityClient.__init__-85"><a href="#PerplexityClient.__init__-85"><span class="linenos"> 85</span></a>
-</span><span id="PerplexityClient.__init__-86"><a href="#PerplexityClient.__init__-86"><span class="linenos"> 86</span></a><span class="sd">        Attributes:</span>
-</span><span id="PerplexityClient.__init__-87"><a href="#PerplexityClient.__init__-87"><span class="linenos"> 87</span></a>
-</span><span id="PerplexityClient.__init__-88"><a href="#PerplexityClient.__init__-88"><span class="linenos"> 88</span></a><span class="sd">        `model` - the current model to use in queries, user configurable.</span>
+</span><span id="PerplexityClient.__init__-75"><a href="#PerplexityClient.__init__-75"><span class="linenos"> 75</span></a><span class="sd">            unitTest</span>
+</span><span id="PerplexityClient.__init__-76"><a href="#PerplexityClient.__init__-76"><span class="linenos"> 76</span></a><span class="sd">        A Boolean to indicate if internal object states need to be modified for</span>
+</span><span id="PerplexityClient.__init__-77"><a href="#PerplexityClient.__init__-77"><span class="linenos"> 77</span></a><span class="sd">        unit testing.  Has no effect in regular code.</span>
+</span><span id="PerplexityClient.__init__-78"><a href="#PerplexityClient.__init__-78"><span class="linenos"> 78</span></a>
+</span><span id="PerplexityClient.__init__-79"><a href="#PerplexityClient.__init__-79"><span class="linenos"> 79</span></a><span class="sd">        Returns</span>
+</span><span id="PerplexityClient.__init__-80"><a href="#PerplexityClient.__init__-80"><span class="linenos"> 80</span></a><span class="sd">        -------</span>
+</span><span id="PerplexityClient.__init__-81"><a href="#PerplexityClient.__init__-81"><span class="linenos"> 81</span></a><span class="sd">        An instance of `perplexipy.PerplexityClient` if successful.</span>
+</span><span id="PerplexityClient.__init__-82"><a href="#PerplexityClient.__init__-82"><span class="linenos"> 82</span></a>
+</span><span id="PerplexityClient.__init__-83"><a href="#PerplexityClient.__init__-83"><span class="linenos"> 83</span></a><span class="sd">        Attributes:</span>
+</span><span id="PerplexityClient.__init__-84"><a href="#PerplexityClient.__init__-84"><span class="linenos"> 84</span></a>
+</span><span id="PerplexityClient.__init__-85"><a href="#PerplexityClient.__init__-85"><span class="linenos"> 85</span></a><span class="sd">        `model` - the current model to use in queries, user configurable.</span>
+</span><span id="PerplexityClient.__init__-86"><a href="#PerplexityClient.__init__-86"><span class="linenos"> 86</span></a>
+</span><span id="PerplexityClient.__init__-87"><a href="#PerplexityClient.__init__-87"><span class="linenos"> 87</span></a><span class="sd">        The role is fixed to `&quot;user&quot;` for Perplexity calls, per the API</span>
+</span><span id="PerplexityClient.__init__-88"><a href="#PerplexityClient.__init__-88"><span class="linenos"> 88</span></a><span class="sd">        recommendations.</span>
 </span><span id="PerplexityClient.__init__-89"><a href="#PerplexityClient.__init__-89"><span class="linenos"> 89</span></a>
-</span><span id="PerplexityClient.__init__-90"><a href="#PerplexityClient.__init__-90"><span class="linenos"> 90</span></a><span class="sd">        The role is fixed to `&quot;user&quot;` for Perplexity calls, per the API</span>
-</span><span id="PerplexityClient.__init__-91"><a href="#PerplexityClient.__init__-91"><span class="linenos"> 91</span></a><span class="sd">        recommendations.</span>
-</span><span id="PerplexityClient.__init__-92"><a href="#PerplexityClient.__init__-92"><span class="linenos"> 92</span></a>
-</span><span id="PerplexityClient.__init__-93"><a href="#PerplexityClient.__init__-93"><span class="linenos"> 93</span></a><span class="sd">        Raises</span>
-</span><span id="PerplexityClient.__init__-94"><a href="#PerplexityClient.__init__-94"><span class="linenos"> 94</span></a><span class="sd">        ------</span>
-</span><span id="PerplexityClient.__init__-95"><a href="#PerplexityClient.__init__-95"><span class="linenos"> 95</span></a><span class="sd">            PerplexityClientError</span>
-</span><span id="PerplexityClient.__init__-96"><a href="#PerplexityClient.__init__-96"><span class="linenos"> 96</span></a><span class="sd">        If the API key is empty, or doesn&#39;t match one of the valid API prefixes</span>
-</span><span id="PerplexityClient.__init__-97"><a href="#PerplexityClient.__init__-97"><span class="linenos"> 97</span></a><span class="sd">        per the documentation.</span>
-</span><span id="PerplexityClient.__init__-98"><a href="#PerplexityClient.__init__-98"><span class="linenos"> 98</span></a><span class="sd">        &quot;&quot;&quot;</span>
-</span><span id="PerplexityClient.__init__-99"><a href="#PerplexityClient.__init__-99"><span class="linenos"> 99</span></a>        <span class="k">if</span> <span class="ow">not</span> <span class="n">key</span><span class="p">:</span>
-</span><span id="PerplexityClient.__init__-100"><a href="#PerplexityClient.__init__-100"><span class="linenos">100</span></a>            <span class="k">raise</span> <span class="n">PerplexityClientError</span><span class="p">(</span><span class="s1">&#39;Provide a valid key argument during instantiation&#39;</span><span class="p">)</span>
-</span><span id="PerplexityClient.__init__-101"><a href="#PerplexityClient.__init__-101"><span class="linenos">101</span></a>        <span class="k">if</span> <span class="ow">not</span> <span class="n">PERPLEXITY_API_PREFIX</span> <span class="ow">in</span> <span class="n">key</span><span class="p">:</span>
-</span><span id="PerplexityClient.__init__-102"><a href="#PerplexityClient.__init__-102"><span class="linenos">102</span></a>            <span class="k">raise</span> <span class="n">PerplexityClientError</span><span class="p">(</span><span class="s1">&#39;The key </span><span class="si">%s</span><span class="s1"> i missing the pplx- prefix - invalid API key&#39;</span><span class="p">)</span>
-</span><span id="PerplexityClient.__init__-103"><a href="#PerplexityClient.__init__-103"><span class="linenos">103</span></a>
-</span><span id="PerplexityClient.__init__-104"><a href="#PerplexityClient.__init__-104"><span class="linenos">104</span></a>        <span class="bp">self</span><span class="o">.</span><span class="n">_endpoint</span> <span class="o">=</span> <span class="n">endpoint</span>
-</span><span id="PerplexityClient.__init__-105"><a href="#PerplexityClient.__init__-105"><span class="linenos">105</span></a>        <span class="bp">self</span><span class="o">.</span><span class="n">_key</span> <span class="o">=</span> <span class="n">key</span>
-</span><span id="PerplexityClient.__init__-106"><a href="#PerplexityClient.__init__-106"><span class="linenos">106</span></a>        <span class="bp">self</span><span class="o">.</span><span class="n">_role</span> <span class="o">=</span> <span class="n">PERPLEXITY_DEFAULT_ROLE</span>
-</span><span id="PerplexityClient.__init__-107"><a href="#PerplexityClient.__init__-107"><span class="linenos">107</span></a>        <span class="bp">self</span><span class="o">.</span><span class="n">_model</span> <span class="o">=</span> <span class="n">PERPLEXITY_DEFAULT_MODEL</span>
-</span><span id="PerplexityClient.__init__-108"><a href="#PerplexityClient.__init__-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">OpenAI</span><span class="p">(</span>
-</span><span id="PerplexityClient.__init__-109"><a href="#PerplexityClient.__init__-109"><span class="linenos">109</span></a>            <span class="n">api_key</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_key</span><span class="p">,</span>
-</span><span id="PerplexityClient.__init__-110"><a href="#PerplexityClient.__init__-110"><span class="linenos">110</span></a>            <span class="n">base_url</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_endpoint</span><span class="p">,</span>
-</span><span id="PerplexityClient.__init__-111"><a href="#PerplexityClient.__init__-111"><span class="linenos">111</span></a>            <span class="n">timeout</span> <span class="o">=</span> <span class="n">PERPLEXITY_TIMEOUT</span><span class="p">,</span>
-</span><span id="PerplexityClient.__init__-112"><a href="#PerplexityClient.__init__-112"><span class="linenos">112</span></a>        <span class="p">)</span>
-</span><span id="PerplexityClient.__init__-113"><a href="#PerplexityClient.__init__-113"><span class="linenos">113</span></a>        <span class="bp">self</span><span class="o">.</span><span class="n">_unitTest</span> <span class="o">=</span> <span class="n">unitTest</span>
+</span><span id="PerplexityClient.__init__-90"><a href="#PerplexityClient.__init__-90"><span class="linenos"> 90</span></a><span class="sd">        Raises</span>
+</span><span id="PerplexityClient.__init__-91"><a href="#PerplexityClient.__init__-91"><span class="linenos"> 91</span></a><span class="sd">        ------</span>
+</span><span id="PerplexityClient.__init__-92"><a href="#PerplexityClient.__init__-92"><span class="linenos"> 92</span></a><span class="sd">            PerplexityClientError</span>
+</span><span id="PerplexityClient.__init__-93"><a href="#PerplexityClient.__init__-93"><span class="linenos"> 93</span></a><span class="sd">        If the API key is empty, or doesn&#39;t match one of the valid API prefixes</span>
+</span><span id="PerplexityClient.__init__-94"><a href="#PerplexityClient.__init__-94"><span class="linenos"> 94</span></a><span class="sd">        per the documentation.</span>
+</span><span id="PerplexityClient.__init__-95"><a href="#PerplexityClient.__init__-95"><span class="linenos"> 95</span></a><span class="sd">        &quot;&quot;&quot;</span>
+</span><span id="PerplexityClient.__init__-96"><a href="#PerplexityClient.__init__-96"><span class="linenos"> 96</span></a>        <span class="k">if</span> <span class="ow">not</span> <span class="n">key</span><span class="p">:</span>
+</span><span id="PerplexityClient.__init__-97"><a href="#PerplexityClient.__init__-97"><span class="linenos"> 97</span></a>            <span class="k">raise</span> <span class="n">PerplexityClientError</span><span class="p">(</span><span class="s1">&#39;Provide a valid key argument during instantiation&#39;</span><span class="p">)</span>
+</span><span id="PerplexityClient.__init__-98"><a href="#PerplexityClient.__init__-98"><span class="linenos"> 98</span></a>        <span class="k">if</span> <span class="ow">not</span> <span class="n">PERPLEXITY_API_PREFIX</span> <span class="ow">in</span> <span class="n">key</span><span class="p">:</span>
+</span><span id="PerplexityClient.__init__-99"><a href="#PerplexityClient.__init__-99"><span class="linenos"> 99</span></a>            <span class="k">raise</span> <span class="n">PerplexityClientError</span><span class="p">(</span><span class="s1">&#39;The key </span><span class="si">%s</span><span class="s1"> is missing the pplx- prefix - invalid API key&#39;</span> <span class="o">%</span> <span class="n">key</span><span class="p">)</span>
+</span><span id="PerplexityClient.__init__-100"><a href="#PerplexityClient.__init__-100"><span class="linenos">100</span></a>        <span class="k">if</span> <span class="ow">not</span> <span class="nb">all</span><span class="p">(</span><span class="nb">ord</span><span class="p">(</span><span class="s1">&#39; &#39;</span><span class="p">)</span> <span class="o">&lt;=</span> <span class="nb">ord</span><span class="p">(</span><span class="n">c</span><span class="p">)</span> <span class="o">&lt;=</span> <span class="nb">ord</span><span class="p">(</span><span class="s1">&#39;~&#39;</span><span class="p">)</span> <span class="k">for</span> <span class="n">c</span> <span class="ow">in</span> <span class="n">key</span><span class="p">):</span>
+</span><span id="PerplexityClient.__init__-101"><a href="#PerplexityClient.__init__-101"><span class="linenos">101</span></a>            <span class="k">raise</span> <span class="n">PerplexityClientError</span><span class="p">(</span><span class="s1">&#39;The key </span><span class="si">%s</span><span class="s1"> contains invalid characters&#39;</span> <span class="o">%</span> <span class="n">key</span><span class="p">)</span>
+</span><span id="PerplexityClient.__init__-102"><a href="#PerplexityClient.__init__-102"><span class="linenos">102</span></a>
+</span><span id="PerplexityClient.__init__-103"><a href="#PerplexityClient.__init__-103"><span class="linenos">103</span></a>        <span class="bp">self</span><span class="o">.</span><span class="n">_endpoint</span> <span class="o">=</span> <span class="n">endpoint</span>
+</span><span id="PerplexityClient.__init__-104"><a href="#PerplexityClient.__init__-104"><span class="linenos">104</span></a>        <span class="bp">self</span><span class="o">.</span><span class="n">_key</span> <span class="o">=</span> <span class="n">key</span>
+</span><span id="PerplexityClient.__init__-105"><a href="#PerplexityClient.__init__-105"><span class="linenos">105</span></a>        <span class="bp">self</span><span class="o">.</span><span class="n">_role</span> <span class="o">=</span> <span class="n">PERPLEXITY_DEFAULT_ROLE</span>
+</span><span id="PerplexityClient.__init__-106"><a href="#PerplexityClient.__init__-106"><span class="linenos">106</span></a>        <span class="bp">self</span><span class="o">.</span><span class="n">_model</span> <span class="o">=</span> <span class="n">PERPLEXITY_DEFAULT_MODEL</span>
+</span><span id="PerplexityClient.__init__-107"><a href="#PerplexityClient.__init__-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">OpenAI</span><span class="p">(</span>
+</span><span id="PerplexityClient.__init__-108"><a href="#PerplexityClient.__init__-108"><span class="linenos">108</span></a>            <span class="n">api_key</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_key</span><span class="p">,</span>
+</span><span id="PerplexityClient.__init__-109"><a href="#PerplexityClient.__init__-109"><span class="linenos">109</span></a>            <span class="n">base_url</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_endpoint</span><span class="p">,</span>
+</span><span id="PerplexityClient.__init__-110"><a href="#PerplexityClient.__init__-110"><span class="linenos">110</span></a>            <span class="n">timeout</span> <span class="o">=</span> <span class="n">PERPLEXITY_TIMEOUT</span><span class="p">,</span>
+</span><span id="PerplexityClient.__init__-111"><a href="#PerplexityClient.__init__-111"><span class="linenos">111</span></a>        <span class="p">)</span>
+</span><span id="PerplexityClient.__init__-112"><a href="#PerplexityClient.__init__-112"><span class="linenos">112</span></a>        <span class="bp">self</span><span class="o">.</span><span class="n">_unitTest</span> <span class="o">=</span> <span class="n">unitTest</span>
 </span></pre></div>
 
 
@@ -1010,48 +1014,48 @@ <h2 id="raises">Raises</h2>
 
     </div>
     <a class="headerlink" href="#PerplexityClient.query"></a>
-            <div class="pdoc-code codehilite"><pre><span></span><span id="PerplexityClient.query-116"><a href="#PerplexityClient.query-116"><span class="linenos">116</span></a>    <span class="k">def</span> <span class="nf">query</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">query</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="PerplexityClient.query-117"><a href="#PerplexityClient.query-117"><span class="linenos">117</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
-</span><span id="PerplexityClient.query-118"><a href="#PerplexityClient.query-118"><span class="linenos">118</span></a><span class="sd">        Send a single message query to the service, receive a single response.</span>
-</span><span id="PerplexityClient.query-119"><a href="#PerplexityClient.query-119"><span class="linenos">119</span></a>
-</span><span id="PerplexityClient.query-120"><a href="#PerplexityClient.query-120"><span class="linenos">120</span></a><span class="sd">        Arguments</span>
-</span><span id="PerplexityClient.query-121"><a href="#PerplexityClient.query-121"><span class="linenos">121</span></a><span class="sd">        ---------</span>
-</span><span id="PerplexityClient.query-122"><a href="#PerplexityClient.query-122"><span class="linenos">122</span></a><span class="sd">            query</span>
-</span><span id="PerplexityClient.query-123"><a href="#PerplexityClient.query-123"><span class="linenos">123</span></a><span class="sd">        A string with the query in one of the model&#39;s supported languages.</span>
-</span><span id="PerplexityClient.query-124"><a href="#PerplexityClient.query-124"><span class="linenos">124</span></a>
-</span><span id="PerplexityClient.query-125"><a href="#PerplexityClient.query-125"><span class="linenos">125</span></a><span class="sd">        Returns</span>
-</span><span id="PerplexityClient.query-126"><a href="#PerplexityClient.query-126"><span class="linenos">126</span></a><span class="sd">        -------</span>
-</span><span id="PerplexityClient.query-127"><a href="#PerplexityClient.query-127"><span class="linenos">127</span></a><span class="sd">        A string with a response from the Perplexity service.</span>
-</span><span id="PerplexityClient.query-128"><a href="#PerplexityClient.query-128"><span class="linenos">128</span></a>
-</span><span id="PerplexityClient.query-129"><a href="#PerplexityClient.query-129"><span class="linenos">129</span></a><span class="sd">        Raises</span>
-</span><span id="PerplexityClient.query-130"><a href="#PerplexityClient.query-130"><span class="linenos">130</span></a><span class="sd">        ------</span>
-</span><span id="PerplexityClient.query-131"><a href="#PerplexityClient.query-131"><span class="linenos">131</span></a><span class="sd">            Exception</span>
-</span><span id="PerplexityClient.query-132"><a href="#PerplexityClient.query-132"><span class="linenos">132</span></a><span class="sd">        An `openai.BadRequestError` or similar if the query is malformed or has</span>
-</span><span id="PerplexityClient.query-133"><a href="#PerplexityClient.query-133"><span class="linenos">133</span></a><span class="sd">        something other than text data.  The error raised passes through</span>
-</span><span id="PerplexityClient.query-134"><a href="#PerplexityClient.query-134"><span class="linenos">134</span></a><span class="sd">        whatever the API raised.</span>
-</span><span id="PerplexityClient.query-135"><a href="#PerplexityClient.query-135"><span class="linenos">135</span></a>
-</span><span id="PerplexityClient.query-136"><a href="#PerplexityClient.query-136"><span class="linenos">136</span></a><span class="sd">        In most cases, the API returns `openai.BadRequestError`.</span>
-</span><span id="PerplexityClient.query-137"><a href="#PerplexityClient.query-137"><span class="linenos">137</span></a>
-</span><span id="PerplexityClient.query-138"><a href="#PerplexityClient.query-138"><span class="linenos">138</span></a><span class="sd">            PerplexityClientError</span>
-</span><span id="PerplexityClient.query-139"><a href="#PerplexityClient.query-139"><span class="linenos">139</span></a><span class="sd">        If the query is `None` or empty.</span>
-</span><span id="PerplexityClient.query-140"><a href="#PerplexityClient.query-140"><span class="linenos">140</span></a><span class="sd">        &quot;&quot;&quot;</span>
-</span><span id="PerplexityClient.query-141"><a href="#PerplexityClient.query-141"><span class="linenos">141</span></a>        <span class="k">if</span> <span class="ow">not</span> <span class="n">query</span><span class="p">:</span>
-</span><span id="PerplexityClient.query-142"><a href="#PerplexityClient.query-142"><span class="linenos">142</span></a>            <span class="k">raise</span> <span class="n">PerplexityClientError</span><span class="p">(</span><span class="s1">&#39;query cannot be None or empty&#39;</span><span class="p">)</span>
-</span><span id="PerplexityClient.query-143"><a href="#PerplexityClient.query-143"><span class="linenos">143</span></a>
-</span><span id="PerplexityClient.query-144"><a href="#PerplexityClient.query-144"><span class="linenos">144</span></a>        <span class="n">messages</span> <span class="o">=</span> <span class="p">[</span> <span class="p">{</span> <span class="s1">&#39;role&#39;</span><span class="p">:</span> <span class="bp">self</span><span class="o">.</span><span class="n">_role</span><span class="p">,</span> <span class="s1">&#39;content&#39;</span><span class="p">:</span> <span class="n">query</span><span class="p">,</span> <span class="p">},</span> <span class="p">]</span>
-</span><span id="PerplexityClient.query-145"><a href="#PerplexityClient.query-145"><span class="linenos">145</span></a>
-</span><span id="PerplexityClient.query-146"><a href="#PerplexityClient.query-146"><span class="linenos">146</span></a>        <span class="n">response</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">chat</span><span class="o">.</span><span class="n">completions</span><span class="o">.</span><span class="n">create</span><span class="p">(</span>
-</span><span id="PerplexityClient.query-147"><a href="#PerplexityClient.query-147"><span class="linenos">147</span></a>            <span class="n">model</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">model</span><span class="p">,</span>
-</span><span id="PerplexityClient.query-148"><a href="#PerplexityClient.query-148"><span class="linenos">148</span></a>            <span class="n">messages</span> <span class="o">=</span> <span class="n">messages</span><span class="p">,</span>
-</span><span id="PerplexityClient.query-149"><a href="#PerplexityClient.query-149"><span class="linenos">149</span></a>            <span class="c1"># TODO: check the OpenAI documentation to see how this is used.</span>
-</span><span id="PerplexityClient.query-150"><a href="#PerplexityClient.query-150"><span class="linenos">150</span></a>            <span class="c1"># See:  https://docs.mistral.ai/platform/guardrailing/</span>
-</span><span id="PerplexityClient.query-151"><a href="#PerplexityClient.query-151"><span class="linenos">151</span></a>            <span class="c1"># No guardrailing.</span>
-</span><span id="PerplexityClient.query-152"><a href="#PerplexityClient.query-152"><span class="linenos">152</span></a>            <span class="c1"># safe_mode = False,</span>
-</span><span id="PerplexityClient.query-153"><a href="#PerplexityClient.query-153"><span class="linenos">153</span></a>        <span class="p">)</span>
-</span><span id="PerplexityClient.query-154"><a href="#PerplexityClient.query-154"><span class="linenos">154</span></a>
-</span><span id="PerplexityClient.query-155"><a href="#PerplexityClient.query-155"><span class="linenos">155</span></a>        <span class="n">result</span> <span class="o">=</span> <span class="n">response</span><span class="o">.</span><span class="n">choices</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="o">.</span><span class="n">message</span><span class="o">.</span><span class="n">content</span>
-</span><span id="PerplexityClient.query-156"><a href="#PerplexityClient.query-156"><span class="linenos">156</span></a>
-</span><span id="PerplexityClient.query-157"><a href="#PerplexityClient.query-157"><span class="linenos">157</span></a>        <span class="k">return</span> <span class="n">result</span>
+            <div class="pdoc-code codehilite"><pre><span></span><span id="PerplexityClient.query-115"><a href="#PerplexityClient.query-115"><span class="linenos">115</span></a>    <span class="k">def</span> <span class="nf">query</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">query</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="PerplexityClient.query-116"><a href="#PerplexityClient.query-116"><span class="linenos">116</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
+</span><span id="PerplexityClient.query-117"><a href="#PerplexityClient.query-117"><span class="linenos">117</span></a><span class="sd">        Send a single message query to the service, receive a single response.</span>
+</span><span id="PerplexityClient.query-118"><a href="#PerplexityClient.query-118"><span class="linenos">118</span></a>
+</span><span id="PerplexityClient.query-119"><a href="#PerplexityClient.query-119"><span class="linenos">119</span></a><span class="sd">        Arguments</span>
+</span><span id="PerplexityClient.query-120"><a href="#PerplexityClient.query-120"><span class="linenos">120</span></a><span class="sd">        ---------</span>
+</span><span id="PerplexityClient.query-121"><a href="#PerplexityClient.query-121"><span class="linenos">121</span></a><span class="sd">            query</span>
+</span><span id="PerplexityClient.query-122"><a href="#PerplexityClient.query-122"><span class="linenos">122</span></a><span class="sd">        A string with the query in one of the model&#39;s supported languages.</span>
+</span><span id="PerplexityClient.query-123"><a href="#PerplexityClient.query-123"><span class="linenos">123</span></a>
+</span><span id="PerplexityClient.query-124"><a href="#PerplexityClient.query-124"><span class="linenos">124</span></a><span class="sd">        Returns</span>
+</span><span id="PerplexityClient.query-125"><a href="#PerplexityClient.query-125"><span class="linenos">125</span></a><span class="sd">        -------</span>
+</span><span id="PerplexityClient.query-126"><a href="#PerplexityClient.query-126"><span class="linenos">126</span></a><span class="sd">        A string with a response from the Perplexity service.</span>
+</span><span id="PerplexityClient.query-127"><a href="#PerplexityClient.query-127"><span class="linenos">127</span></a>
+</span><span id="PerplexityClient.query-128"><a href="#PerplexityClient.query-128"><span class="linenos">128</span></a><span class="sd">        Raises</span>
+</span><span id="PerplexityClient.query-129"><a href="#PerplexityClient.query-129"><span class="linenos">129</span></a><span class="sd">        ------</span>
+</span><span id="PerplexityClient.query-130"><a href="#PerplexityClient.query-130"><span class="linenos">130</span></a><span class="sd">            Exception</span>
+</span><span id="PerplexityClient.query-131"><a href="#PerplexityClient.query-131"><span class="linenos">131</span></a><span class="sd">        An `openai.BadRequestError` or similar if the query is malformed or has</span>
+</span><span id="PerplexityClient.query-132"><a href="#PerplexityClient.query-132"><span class="linenos">132</span></a><span class="sd">        something other than text data.  The error raised passes through</span>
+</span><span id="PerplexityClient.query-133"><a href="#PerplexityClient.query-133"><span class="linenos">133</span></a><span class="sd">        whatever the API raised.</span>
+</span><span id="PerplexityClient.query-134"><a href="#PerplexityClient.query-134"><span class="linenos">134</span></a>
+</span><span id="PerplexityClient.query-135"><a href="#PerplexityClient.query-135"><span class="linenos">135</span></a><span class="sd">        In most cases, the API returns `openai.BadRequestError`.</span>
+</span><span id="PerplexityClient.query-136"><a href="#PerplexityClient.query-136"><span class="linenos">136</span></a>
+</span><span id="PerplexityClient.query-137"><a href="#PerplexityClient.query-137"><span class="linenos">137</span></a><span class="sd">            PerplexityClientError</span>
+</span><span id="PerplexityClient.query-138"><a href="#PerplexityClient.query-138"><span class="linenos">138</span></a><span class="sd">        If the query is `None` or empty.</span>
+</span><span id="PerplexityClient.query-139"><a href="#PerplexityClient.query-139"><span class="linenos">139</span></a><span class="sd">        &quot;&quot;&quot;</span>
+</span><span id="PerplexityClient.query-140"><a href="#PerplexityClient.query-140"><span class="linenos">140</span></a>        <span class="k">if</span> <span class="ow">not</span> <span class="n">query</span><span class="p">:</span>
+</span><span id="PerplexityClient.query-141"><a href="#PerplexityClient.query-141"><span class="linenos">141</span></a>            <span class="k">raise</span> <span class="n">PerplexityClientError</span><span class="p">(</span><span class="s1">&#39;query cannot be None or empty&#39;</span><span class="p">)</span>
+</span><span id="PerplexityClient.query-142"><a href="#PerplexityClient.query-142"><span class="linenos">142</span></a>
+</span><span id="PerplexityClient.query-143"><a href="#PerplexityClient.query-143"><span class="linenos">143</span></a>        <span class="n">messages</span> <span class="o">=</span> <span class="p">[</span> <span class="p">{</span> <span class="s1">&#39;role&#39;</span><span class="p">:</span> <span class="bp">self</span><span class="o">.</span><span class="n">_role</span><span class="p">,</span> <span class="s1">&#39;content&#39;</span><span class="p">:</span> <span class="n">query</span><span class="p">,</span> <span class="p">},</span> <span class="p">]</span>
+</span><span id="PerplexityClient.query-144"><a href="#PerplexityClient.query-144"><span class="linenos">144</span></a>
+</span><span id="PerplexityClient.query-145"><a href="#PerplexityClient.query-145"><span class="linenos">145</span></a>        <span class="n">response</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">chat</span><span class="o">.</span><span class="n">completions</span><span class="o">.</span><span class="n">create</span><span class="p">(</span>
+</span><span id="PerplexityClient.query-146"><a href="#PerplexityClient.query-146"><span class="linenos">146</span></a>            <span class="n">model</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">model</span><span class="p">,</span>
+</span><span id="PerplexityClient.query-147"><a href="#PerplexityClient.query-147"><span class="linenos">147</span></a>            <span class="n">messages</span> <span class="o">=</span> <span class="n">messages</span><span class="p">,</span>
+</span><span id="PerplexityClient.query-148"><a href="#PerplexityClient.query-148"><span class="linenos">148</span></a>            <span class="c1"># TODO: check the OpenAI documentation to see how this is used.</span>
+</span><span id="PerplexityClient.query-149"><a href="#PerplexityClient.query-149"><span class="linenos">149</span></a>            <span class="c1"># See:  https://docs.mistral.ai/platform/guardrailing/</span>
+</span><span id="PerplexityClient.query-150"><a href="#PerplexityClient.query-150"><span class="linenos">150</span></a>            <span class="c1"># No guardrailing.</span>
+</span><span id="PerplexityClient.query-151"><a href="#PerplexityClient.query-151"><span class="linenos">151</span></a>            <span class="c1"># safe_mode = False,</span>
+</span><span id="PerplexityClient.query-152"><a href="#PerplexityClient.query-152"><span class="linenos">152</span></a>        <span class="p">)</span>
+</span><span id="PerplexityClient.query-153"><a href="#PerplexityClient.query-153"><span class="linenos">153</span></a>
+</span><span id="PerplexityClient.query-154"><a href="#PerplexityClient.query-154"><span class="linenos">154</span></a>        <span class="n">result</span> <span class="o">=</span> <span class="n">response</span><span class="o">.</span><span class="n">choices</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="o">.</span><span class="n">message</span><span class="o">.</span><span class="n">content</span>
+</span><span id="PerplexityClient.query-155"><a href="#PerplexityClient.query-155"><span class="linenos">155</span></a>
+</span><span id="PerplexityClient.query-156"><a href="#PerplexityClient.query-156"><span class="linenos">156</span></a>        <span class="k">return</span> <span class="n">result</span>
 </span></pre></div>
 
 
@@ -1098,44 +1102,44 @@ <h2 id="raises">Raises</h2>
 
     </div>
     <a class="headerlink" href="#PerplexityClient.queryBatch"></a>
-            <div class="pdoc-code codehilite"><pre><span></span><span id="PerplexityClient.queryBatch-160"><a href="#PerplexityClient.queryBatch-160"><span class="linenos">160</span></a>    <span class="k">def</span> <span class="nf">queryBatch</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">query</span><span class="p">:</span> <span class="nb">str</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">tuple</span><span class="p">:</span>
-</span><span id="PerplexityClient.queryBatch-161"><a href="#PerplexityClient.queryBatch-161"><span class="linenos">161</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
-</span><span id="PerplexityClient.queryBatch-162"><a href="#PerplexityClient.queryBatch-162"><span class="linenos">162</span></a><span class="sd">        Send a single message query to the service, receive a single response.</span>
-</span><span id="PerplexityClient.queryBatch-163"><a href="#PerplexityClient.queryBatch-163"><span class="linenos">163</span></a>
-</span><span id="PerplexityClient.queryBatch-164"><a href="#PerplexityClient.queryBatch-164"><span class="linenos">164</span></a><span class="sd">        Arguments</span>
-</span><span id="PerplexityClient.queryBatch-165"><a href="#PerplexityClient.queryBatch-165"><span class="linenos">165</span></a><span class="sd">        ---------</span>
-</span><span id="PerplexityClient.queryBatch-166"><a href="#PerplexityClient.queryBatch-166"><span class="linenos">166</span></a><span class="sd">            query</span>
-</span><span id="PerplexityClient.queryBatch-167"><a href="#PerplexityClient.queryBatch-167"><span class="linenos">167</span></a><span class="sd">        A string with the query in one of the model&#39;s supported languages.</span>
-</span><span id="PerplexityClient.queryBatch-168"><a href="#PerplexityClient.queryBatch-168"><span class="linenos">168</span></a>
-</span><span id="PerplexityClient.queryBatch-169"><a href="#PerplexityClient.queryBatch-169"><span class="linenos">169</span></a><span class="sd">        Returns</span>
-</span><span id="PerplexityClient.queryBatch-170"><a href="#PerplexityClient.queryBatch-170"><span class="linenos">170</span></a><span class="sd">        -------</span>
-</span><span id="PerplexityClient.queryBatch-171"><a href="#PerplexityClient.queryBatch-171"><span class="linenos">171</span></a><span class="sd">        A tuple with a batch of 1 or more response strings.</span>
-</span><span id="PerplexityClient.queryBatch-172"><a href="#PerplexityClient.queryBatch-172"><span class="linenos">172</span></a>
-</span><span id="PerplexityClient.queryBatch-173"><a href="#PerplexityClient.queryBatch-173"><span class="linenos">173</span></a><span class="sd">        Raises</span>
-</span><span id="PerplexityClient.queryBatch-174"><a href="#PerplexityClient.queryBatch-174"><span class="linenos">174</span></a><span class="sd">        ------</span>
-</span><span id="PerplexityClient.queryBatch-175"><a href="#PerplexityClient.queryBatch-175"><span class="linenos">175</span></a><span class="sd">            Exception</span>
-</span><span id="PerplexityClient.queryBatch-176"><a href="#PerplexityClient.queryBatch-176"><span class="linenos">176</span></a><span class="sd">        An `openai.BadRequestError` or similar if the query is malformed or has</span>
-</span><span id="PerplexityClient.queryBatch-177"><a href="#PerplexityClient.queryBatch-177"><span class="linenos">177</span></a><span class="sd">        something other than text data.  The error raised passes through</span>
-</span><span id="PerplexityClient.queryBatch-178"><a href="#PerplexityClient.queryBatch-178"><span class="linenos">178</span></a><span class="sd">        whatever the API raised.</span>
-</span><span id="PerplexityClient.queryBatch-179"><a href="#PerplexityClient.queryBatch-179"><span class="linenos">179</span></a>
-</span><span id="PerplexityClient.queryBatch-180"><a href="#PerplexityClient.queryBatch-180"><span class="linenos">180</span></a><span class="sd">        In most cases, the API returns `openai.BadRequestError`.</span>
-</span><span id="PerplexityClient.queryBatch-181"><a href="#PerplexityClient.queryBatch-181"><span class="linenos">181</span></a>
-</span><span id="PerplexityClient.queryBatch-182"><a href="#PerplexityClient.queryBatch-182"><span class="linenos">182</span></a><span class="sd">            PerplexityClientError</span>
-</span><span id="PerplexityClient.queryBatch-183"><a href="#PerplexityClient.queryBatch-183"><span class="linenos">183</span></a><span class="sd">        If the query is `None` or empty.</span>
-</span><span id="PerplexityClient.queryBatch-184"><a href="#PerplexityClient.queryBatch-184"><span class="linenos">184</span></a><span class="sd">        &quot;&quot;&quot;</span>
-</span><span id="PerplexityClient.queryBatch-185"><a href="#PerplexityClient.queryBatch-185"><span class="linenos">185</span></a>        <span class="k">if</span> <span class="ow">not</span> <span class="n">query</span><span class="p">:</span>
-</span><span id="PerplexityClient.queryBatch-186"><a href="#PerplexityClient.queryBatch-186"><span class="linenos">186</span></a>            <span class="k">raise</span> <span class="n">PerplexityClientError</span><span class="p">(</span><span class="s1">&#39;query cannot be None or empty&#39;</span><span class="p">)</span>
-</span><span id="PerplexityClient.queryBatch-187"><a href="#PerplexityClient.queryBatch-187"><span class="linenos">187</span></a>
-</span><span id="PerplexityClient.queryBatch-188"><a href="#PerplexityClient.queryBatch-188"><span class="linenos">188</span></a>        <span class="n">messages</span> <span class="o">=</span> <span class="p">[</span> <span class="p">{</span> <span class="s1">&#39;role&#39;</span><span class="p">:</span> <span class="bp">self</span><span class="o">.</span><span class="n">_role</span><span class="p">,</span> <span class="s1">&#39;content&#39;</span><span class="p">:</span> <span class="n">query</span><span class="p">,</span> <span class="p">},</span> <span class="p">]</span>
-</span><span id="PerplexityClient.queryBatch-189"><a href="#PerplexityClient.queryBatch-189"><span class="linenos">189</span></a>
-</span><span id="PerplexityClient.queryBatch-190"><a href="#PerplexityClient.queryBatch-190"><span class="linenos">190</span></a>        <span class="n">response</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">chat</span><span class="o">.</span><span class="n">completions</span><span class="o">.</span><span class="n">create</span><span class="p">(</span>
-</span><span id="PerplexityClient.queryBatch-191"><a href="#PerplexityClient.queryBatch-191"><span class="linenos">191</span></a>            <span class="n">model</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">model</span><span class="p">,</span>
-</span><span id="PerplexityClient.queryBatch-192"><a href="#PerplexityClient.queryBatch-192"><span class="linenos">192</span></a>            <span class="n">messages</span> <span class="o">=</span> <span class="n">messages</span><span class="p">,</span>
-</span><span id="PerplexityClient.queryBatch-193"><a href="#PerplexityClient.queryBatch-193"><span class="linenos">193</span></a>        <span class="p">)</span>
-</span><span id="PerplexityClient.queryBatch-194"><a href="#PerplexityClient.queryBatch-194"><span class="linenos">194</span></a>
-</span><span id="PerplexityClient.queryBatch-195"><a href="#PerplexityClient.queryBatch-195"><span class="linenos">195</span></a>        <span class="n">result</span> <span class="o">=</span> <span class="nb">tuple</span><span class="p">(</span><span class="n">choice</span><span class="o">.</span><span class="n">message</span><span class="o">.</span><span class="n">content</span> <span class="k">for</span> <span class="n">choice</span> <span class="ow">in</span> <span class="n">response</span><span class="o">.</span><span class="n">choices</span><span class="p">)</span>
-</span><span id="PerplexityClient.queryBatch-196"><a href="#PerplexityClient.queryBatch-196"><span class="linenos">196</span></a>
-</span><span id="PerplexityClient.queryBatch-197"><a href="#PerplexityClient.queryBatch-197"><span class="linenos">197</span></a>        <span class="k">return</span> <span class="n">result</span>
+            <div class="pdoc-code codehilite"><pre><span></span><span id="PerplexityClient.queryBatch-159"><a href="#PerplexityClient.queryBatch-159"><span class="linenos">159</span></a>    <span class="k">def</span> <span class="nf">queryBatch</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">query</span><span class="p">:</span> <span class="nb">str</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">tuple</span><span class="p">:</span>
+</span><span id="PerplexityClient.queryBatch-160"><a href="#PerplexityClient.queryBatch-160"><span class="linenos">160</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
+</span><span id="PerplexityClient.queryBatch-161"><a href="#PerplexityClient.queryBatch-161"><span class="linenos">161</span></a><span class="sd">        Send a single message query to the service, receive a single response.</span>
+</span><span id="PerplexityClient.queryBatch-162"><a href="#PerplexityClient.queryBatch-162"><span class="linenos">162</span></a>
+</span><span id="PerplexityClient.queryBatch-163"><a href="#PerplexityClient.queryBatch-163"><span class="linenos">163</span></a><span class="sd">        Arguments</span>
+</span><span id="PerplexityClient.queryBatch-164"><a href="#PerplexityClient.queryBatch-164"><span class="linenos">164</span></a><span class="sd">        ---------</span>
+</span><span id="PerplexityClient.queryBatch-165"><a href="#PerplexityClient.queryBatch-165"><span class="linenos">165</span></a><span class="sd">            query</span>
+</span><span id="PerplexityClient.queryBatch-166"><a href="#PerplexityClient.queryBatch-166"><span class="linenos">166</span></a><span class="sd">        A string with the query in one of the model&#39;s supported languages.</span>
+</span><span id="PerplexityClient.queryBatch-167"><a href="#PerplexityClient.queryBatch-167"><span class="linenos">167</span></a>
+</span><span id="PerplexityClient.queryBatch-168"><a href="#PerplexityClient.queryBatch-168"><span class="linenos">168</span></a><span class="sd">        Returns</span>
+</span><span id="PerplexityClient.queryBatch-169"><a href="#PerplexityClient.queryBatch-169"><span class="linenos">169</span></a><span class="sd">        -------</span>
+</span><span id="PerplexityClient.queryBatch-170"><a href="#PerplexityClient.queryBatch-170"><span class="linenos">170</span></a><span class="sd">        A tuple with a batch of 1 or more response strings.</span>
+</span><span id="PerplexityClient.queryBatch-171"><a href="#PerplexityClient.queryBatch-171"><span class="linenos">171</span></a>
+</span><span id="PerplexityClient.queryBatch-172"><a href="#PerplexityClient.queryBatch-172"><span class="linenos">172</span></a><span class="sd">        Raises</span>
+</span><span id="PerplexityClient.queryBatch-173"><a href="#PerplexityClient.queryBatch-173"><span class="linenos">173</span></a><span class="sd">        ------</span>
+</span><span id="PerplexityClient.queryBatch-174"><a href="#PerplexityClient.queryBatch-174"><span class="linenos">174</span></a><span class="sd">            Exception</span>
+</span><span id="PerplexityClient.queryBatch-175"><a href="#PerplexityClient.queryBatch-175"><span class="linenos">175</span></a><span class="sd">        An `openai.BadRequestError` or similar if the query is malformed or has</span>
+</span><span id="PerplexityClient.queryBatch-176"><a href="#PerplexityClient.queryBatch-176"><span class="linenos">176</span></a><span class="sd">        something other than text data.  The error raised passes through</span>
+</span><span id="PerplexityClient.queryBatch-177"><a href="#PerplexityClient.queryBatch-177"><span class="linenos">177</span></a><span class="sd">        whatever the API raised.</span>
+</span><span id="PerplexityClient.queryBatch-178"><a href="#PerplexityClient.queryBatch-178"><span class="linenos">178</span></a>
+</span><span id="PerplexityClient.queryBatch-179"><a href="#PerplexityClient.queryBatch-179"><span class="linenos">179</span></a><span class="sd">        In most cases, the API returns `openai.BadRequestError`.</span>
+</span><span id="PerplexityClient.queryBatch-180"><a href="#PerplexityClient.queryBatch-180"><span class="linenos">180</span></a>
+</span><span id="PerplexityClient.queryBatch-181"><a href="#PerplexityClient.queryBatch-181"><span class="linenos">181</span></a><span class="sd">            PerplexityClientError</span>
+</span><span id="PerplexityClient.queryBatch-182"><a href="#PerplexityClient.queryBatch-182"><span class="linenos">182</span></a><span class="sd">        If the query is `None` or empty.</span>
+</span><span id="PerplexityClient.queryBatch-183"><a href="#PerplexityClient.queryBatch-183"><span class="linenos">183</span></a><span class="sd">        &quot;&quot;&quot;</span>
+</span><span id="PerplexityClient.queryBatch-184"><a href="#PerplexityClient.queryBatch-184"><span class="linenos">184</span></a>        <span class="k">if</span> <span class="ow">not</span> <span class="n">query</span><span class="p">:</span>
+</span><span id="PerplexityClient.queryBatch-185"><a href="#PerplexityClient.queryBatch-185"><span class="linenos">185</span></a>            <span class="k">raise</span> <span class="n">PerplexityClientError</span><span class="p">(</span><span class="s1">&#39;query cannot be None or empty&#39;</span><span class="p">)</span>
+</span><span id="PerplexityClient.queryBatch-186"><a href="#PerplexityClient.queryBatch-186"><span class="linenos">186</span></a>
+</span><span id="PerplexityClient.queryBatch-187"><a href="#PerplexityClient.queryBatch-187"><span class="linenos">187</span></a>        <span class="n">messages</span> <span class="o">=</span> <span class="p">[</span> <span class="p">{</span> <span class="s1">&#39;role&#39;</span><span class="p">:</span> <span class="bp">self</span><span class="o">.</span><span class="n">_role</span><span class="p">,</span> <span class="s1">&#39;content&#39;</span><span class="p">:</span> <span class="n">query</span><span class="p">,</span> <span class="p">},</span> <span class="p">]</span>
+</span><span id="PerplexityClient.queryBatch-188"><a href="#PerplexityClient.queryBatch-188"><span class="linenos">188</span></a>
+</span><span id="PerplexityClient.queryBatch-189"><a href="#PerplexityClient.queryBatch-189"><span class="linenos">189</span></a>        <span class="n">response</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">chat</span><span class="o">.</span><span class="n">completions</span><span class="o">.</span><span class="n">create</span><span class="p">(</span>
+</span><span id="PerplexityClient.queryBatch-190"><a href="#PerplexityClient.queryBatch-190"><span class="linenos">190</span></a>            <span class="n">model</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">model</span><span class="p">,</span>
+</span><span id="PerplexityClient.queryBatch-191"><a href="#PerplexityClient.queryBatch-191"><span class="linenos">191</span></a>            <span class="n">messages</span> <span class="o">=</span> <span class="n">messages</span><span class="p">,</span>
+</span><span id="PerplexityClient.queryBatch-192"><a href="#PerplexityClient.queryBatch-192"><span class="linenos">192</span></a>        <span class="p">)</span>
+</span><span id="PerplexityClient.queryBatch-193"><a href="#PerplexityClient.queryBatch-193"><span class="linenos">193</span></a>
+</span><span id="PerplexityClient.queryBatch-194"><a href="#PerplexityClient.queryBatch-194"><span class="linenos">194</span></a>        <span class="n">result</span> <span class="o">=</span> <span class="nb">tuple</span><span class="p">(</span><span class="n">choice</span><span class="o">.</span><span class="n">message</span><span class="o">.</span><span class="n">content</span> <span class="k">for</span> <span class="n">choice</span> <span class="ow">in</span> <span class="n">response</span><span class="o">.</span><span class="n">choices</span><span class="p">)</span>
+</span><span id="PerplexityClient.queryBatch-195"><a href="#PerplexityClient.queryBatch-195"><span class="linenos">195</span></a>
+</span><span id="PerplexityClient.queryBatch-196"><a href="#PerplexityClient.queryBatch-196"><span class="linenos">196</span></a>        <span class="k">return</span> <span class="n">result</span>
 </span></pre></div>
 
 
@@ -1182,45 +1186,45 @@ <h2 id="raises">Raises</h2>
 
     </div>
     <a class="headerlink" href="#PerplexityClient.queryStreamable"></a>
-            <div class="pdoc-code codehilite"><pre><span></span><span id="PerplexityClient.queryStreamable-200"><a href="#PerplexityClient.queryStreamable-200"><span class="linenos">200</span></a>    <span class="k">def</span> <span class="nf">queryStreamable</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">query</span><span class="p">:</span> <span class="nb">str</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">Responses</span><span class="p">:</span>
-</span><span id="PerplexityClient.queryStreamable-201"><a href="#PerplexityClient.queryStreamable-201"><span class="linenos">201</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
-</span><span id="PerplexityClient.queryStreamable-202"><a href="#PerplexityClient.queryStreamable-202"><span class="linenos">202</span></a><span class="sd">        Send a query and return a long, streamable response.</span>
-</span><span id="PerplexityClient.queryStreamable-203"><a href="#PerplexityClient.queryStreamable-203"><span class="linenos">203</span></a>
-</span><span id="PerplexityClient.queryStreamable-204"><a href="#PerplexityClient.queryStreamable-204"><span class="linenos">204</span></a><span class="sd">        Arguments</span>
-</span><span id="PerplexityClient.queryStreamable-205"><a href="#PerplexityClient.queryStreamable-205"><span class="linenos">205</span></a><span class="sd">        ---------</span>
-</span><span id="PerplexityClient.queryStreamable-206"><a href="#PerplexityClient.queryStreamable-206"><span class="linenos">206</span></a><span class="sd">            query</span>
-</span><span id="PerplexityClient.queryStreamable-207"><a href="#PerplexityClient.queryStreamable-207"><span class="linenos">207</span></a><span class="sd">        A string with the query in one of the model&#39;s supported languages.</span>
-</span><span id="PerplexityClient.queryStreamable-208"><a href="#PerplexityClient.queryStreamable-208"><span class="linenos">208</span></a>
-</span><span id="PerplexityClient.queryStreamable-209"><a href="#PerplexityClient.queryStreamable-209"><span class="linenos">209</span></a><span class="sd">        Returns</span>
-</span><span id="PerplexityClient.queryStreamable-210"><a href="#PerplexityClient.queryStreamable-210"><span class="linenos">210</span></a><span class="sd">        -------</span>
-</span><span id="PerplexityClient.queryStreamable-211"><a href="#PerplexityClient.queryStreamable-211"><span class="linenos">211</span></a><span class="sd">        Returns a `perplexipy.Responses` object for streaming the textual</span>
-</span><span id="PerplexityClient.queryStreamable-212"><a href="#PerplexityClient.queryStreamable-212"><span class="linenos">212</span></a><span class="sd">        responses from the client.  The response strips all metadata and returns</span>
-</span><span id="PerplexityClient.queryStreamable-213"><a href="#PerplexityClient.queryStreamable-213"><span class="linenos">213</span></a><span class="sd">        only content strings, for simpler and easier integration.</span>
-</span><span id="PerplexityClient.queryStreamable-214"><a href="#PerplexityClient.queryStreamable-214"><span class="linenos">214</span></a>
-</span><span id="PerplexityClient.queryStreamable-215"><a href="#PerplexityClient.queryStreamable-215"><span class="linenos">215</span></a><span class="sd">        Raises</span>
-</span><span id="PerplexityClient.queryStreamable-216"><a href="#PerplexityClient.queryStreamable-216"><span class="linenos">216</span></a><span class="sd">        ------</span>
-</span><span id="PerplexityClient.queryStreamable-217"><a href="#PerplexityClient.queryStreamable-217"><span class="linenos">217</span></a><span class="sd">            Exception</span>
-</span><span id="PerplexityClient.queryStreamable-218"><a href="#PerplexityClient.queryStreamable-218"><span class="linenos">218</span></a><span class="sd">        An `openai.BadRequestError` or similar if the query is malformed or has</span>
-</span><span id="PerplexityClient.queryStreamable-219"><a href="#PerplexityClient.queryStreamable-219"><span class="linenos">219</span></a><span class="sd">        something other than text data.  The error raised passes through</span>
-</span><span id="PerplexityClient.queryStreamable-220"><a href="#PerplexityClient.queryStreamable-220"><span class="linenos">220</span></a><span class="sd">        whatever the API raised.</span>
-</span><span id="PerplexityClient.queryStreamable-221"><a href="#PerplexityClient.queryStreamable-221"><span class="linenos">221</span></a>
-</span><span id="PerplexityClient.queryStreamable-222"><a href="#PerplexityClient.queryStreamable-222"><span class="linenos">222</span></a><span class="sd">        In most cases, the API returns `openai.BadRequestError`.</span>
-</span><span id="PerplexityClient.queryStreamable-223"><a href="#PerplexityClient.queryStreamable-223"><span class="linenos">223</span></a>
-</span><span id="PerplexityClient.queryStreamable-224"><a href="#PerplexityClient.queryStreamable-224"><span class="linenos">224</span></a><span class="sd">            PerplexityClientError</span>
-</span><span id="PerplexityClient.queryStreamable-225"><a href="#PerplexityClient.queryStreamable-225"><span class="linenos">225</span></a><span class="sd">        If the query is `None` or empty.</span>
-</span><span id="PerplexityClient.queryStreamable-226"><a href="#PerplexityClient.queryStreamable-226"><span class="linenos">226</span></a><span class="sd">        &quot;&quot;&quot;</span>
-</span><span id="PerplexityClient.queryStreamable-227"><a href="#PerplexityClient.queryStreamable-227"><span class="linenos">227</span></a>        <span class="k">if</span> <span class="ow">not</span> <span class="n">query</span><span class="p">:</span>
-</span><span id="PerplexityClient.queryStreamable-228"><a href="#PerplexityClient.queryStreamable-228"><span class="linenos">228</span></a>            <span class="k">raise</span> <span class="n">PerplexityClientError</span><span class="p">(</span><span class="s1">&#39;query cannot be None or empty&#39;</span><span class="p">)</span>
-</span><span id="PerplexityClient.queryStreamable-229"><a href="#PerplexityClient.queryStreamable-229"><span class="linenos">229</span></a>
-</span><span id="PerplexityClient.queryStreamable-230"><a href="#PerplexityClient.queryStreamable-230"><span class="linenos">230</span></a>        <span class="n">messages</span> <span class="o">=</span> <span class="p">[</span> <span class="p">{</span> <span class="s1">&#39;role&#39;</span><span class="p">:</span> <span class="bp">self</span><span class="o">.</span><span class="n">_role</span><span class="p">,</span> <span class="s1">&#39;content&#39;</span><span class="p">:</span> <span class="n">query</span><span class="p">,</span> <span class="p">},</span> <span class="p">]</span>
-</span><span id="PerplexityClient.queryStreamable-231"><a href="#PerplexityClient.queryStreamable-231"><span class="linenos">231</span></a>
-</span><span id="PerplexityClient.queryStreamable-232"><a href="#PerplexityClient.queryStreamable-232"><span class="linenos">232</span></a>        <span class="n">response</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">chat</span><span class="o">.</span><span class="n">completions</span><span class="o">.</span><span class="n">create</span><span class="p">(</span>
-</span><span id="PerplexityClient.queryStreamable-233"><a href="#PerplexityClient.queryStreamable-233"><span class="linenos">233</span></a>            <span class="n">model</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">model</span><span class="p">,</span>
-</span><span id="PerplexityClient.queryStreamable-234"><a href="#PerplexityClient.queryStreamable-234"><span class="linenos">234</span></a>            <span class="n">messages</span> <span class="o">=</span> <span class="n">messages</span><span class="p">,</span>
-</span><span id="PerplexityClient.queryStreamable-235"><a href="#PerplexityClient.queryStreamable-235"><span class="linenos">235</span></a>            <span class="n">stream</span> <span class="o">=</span> <span class="kc">True</span><span class="p">,</span>
-</span><span id="PerplexityClient.queryStreamable-236"><a href="#PerplexityClient.queryStreamable-236"><span class="linenos">236</span></a>        <span class="p">)</span>
-</span><span id="PerplexityClient.queryStreamable-237"><a href="#PerplexityClient.queryStreamable-237"><span class="linenos">237</span></a>
-</span><span id="PerplexityClient.queryStreamable-238"><a href="#PerplexityClient.queryStreamable-238"><span class="linenos">238</span></a>        <span class="k">return</span> <span class="n">Responses</span><span class="p">(</span><span class="n">response</span><span class="p">)</span>
+            <div class="pdoc-code codehilite"><pre><span></span><span id="PerplexityClient.queryStreamable-199"><a href="#PerplexityClient.queryStreamable-199"><span class="linenos">199</span></a>    <span class="k">def</span> <span class="nf">queryStreamable</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">query</span><span class="p">:</span> <span class="nb">str</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">Responses</span><span class="p">:</span>
+</span><span id="PerplexityClient.queryStreamable-200"><a href="#PerplexityClient.queryStreamable-200"><span class="linenos">200</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
+</span><span id="PerplexityClient.queryStreamable-201"><a href="#PerplexityClient.queryStreamable-201"><span class="linenos">201</span></a><span class="sd">        Send a query and return a long, streamable response.</span>
+</span><span id="PerplexityClient.queryStreamable-202"><a href="#PerplexityClient.queryStreamable-202"><span class="linenos">202</span></a>
+</span><span id="PerplexityClient.queryStreamable-203"><a href="#PerplexityClient.queryStreamable-203"><span class="linenos">203</span></a><span class="sd">        Arguments</span>
+</span><span id="PerplexityClient.queryStreamable-204"><a href="#PerplexityClient.queryStreamable-204"><span class="linenos">204</span></a><span class="sd">        ---------</span>
+</span><span id="PerplexityClient.queryStreamable-205"><a href="#PerplexityClient.queryStreamable-205"><span class="linenos">205</span></a><span class="sd">            query</span>
+</span><span id="PerplexityClient.queryStreamable-206"><a href="#PerplexityClient.queryStreamable-206"><span class="linenos">206</span></a><span class="sd">        A string with the query in one of the model&#39;s supported languages.</span>
+</span><span id="PerplexityClient.queryStreamable-207"><a href="#PerplexityClient.queryStreamable-207"><span class="linenos">207</span></a>
+</span><span id="PerplexityClient.queryStreamable-208"><a href="#PerplexityClient.queryStreamable-208"><span class="linenos">208</span></a><span class="sd">        Returns</span>
+</span><span id="PerplexityClient.queryStreamable-209"><a href="#PerplexityClient.queryStreamable-209"><span class="linenos">209</span></a><span class="sd">        -------</span>
+</span><span id="PerplexityClient.queryStreamable-210"><a href="#PerplexityClient.queryStreamable-210"><span class="linenos">210</span></a><span class="sd">        Returns a `perplexipy.Responses` object for streaming the textual</span>
+</span><span id="PerplexityClient.queryStreamable-211"><a href="#PerplexityClient.queryStreamable-211"><span class="linenos">211</span></a><span class="sd">        responses from the client.  The response strips all metadata and returns</span>
+</span><span id="PerplexityClient.queryStreamable-212"><a href="#PerplexityClient.queryStreamable-212"><span class="linenos">212</span></a><span class="sd">        only content strings, for simpler and easier integration.</span>
+</span><span id="PerplexityClient.queryStreamable-213"><a href="#PerplexityClient.queryStreamable-213"><span class="linenos">213</span></a>
+</span><span id="PerplexityClient.queryStreamable-214"><a href="#PerplexityClient.queryStreamable-214"><span class="linenos">214</span></a><span class="sd">        Raises</span>
+</span><span id="PerplexityClient.queryStreamable-215"><a href="#PerplexityClient.queryStreamable-215"><span class="linenos">215</span></a><span class="sd">        ------</span>
+</span><span id="PerplexityClient.queryStreamable-216"><a href="#PerplexityClient.queryStreamable-216"><span class="linenos">216</span></a><span class="sd">            Exception</span>
+</span><span id="PerplexityClient.queryStreamable-217"><a href="#PerplexityClient.queryStreamable-217"><span class="linenos">217</span></a><span class="sd">        An `openai.BadRequestError` or similar if the query is malformed or has</span>
+</span><span id="PerplexityClient.queryStreamable-218"><a href="#PerplexityClient.queryStreamable-218"><span class="linenos">218</span></a><span class="sd">        something other than text data.  The error raised passes through</span>
+</span><span id="PerplexityClient.queryStreamable-219"><a href="#PerplexityClient.queryStreamable-219"><span class="linenos">219</span></a><span class="sd">        whatever the API raised.</span>
+</span><span id="PerplexityClient.queryStreamable-220"><a href="#PerplexityClient.queryStreamable-220"><span class="linenos">220</span></a>
+</span><span id="PerplexityClient.queryStreamable-221"><a href="#PerplexityClient.queryStreamable-221"><span class="linenos">221</span></a><span class="sd">        In most cases, the API returns `openai.BadRequestError`.</span>
+</span><span id="PerplexityClient.queryStreamable-222"><a href="#PerplexityClient.queryStreamable-222"><span class="linenos">222</span></a>
+</span><span id="PerplexityClient.queryStreamable-223"><a href="#PerplexityClient.queryStreamable-223"><span class="linenos">223</span></a><span class="sd">            PerplexityClientError</span>
+</span><span id="PerplexityClient.queryStreamable-224"><a href="#PerplexityClient.queryStreamable-224"><span class="linenos">224</span></a><span class="sd">        If the query is `None` or empty.</span>
+</span><span id="PerplexityClient.queryStreamable-225"><a href="#PerplexityClient.queryStreamable-225"><span class="linenos">225</span></a><span class="sd">        &quot;&quot;&quot;</span>
+</span><span id="PerplexityClient.queryStreamable-226"><a href="#PerplexityClient.queryStreamable-226"><span class="linenos">226</span></a>        <span class="k">if</span> <span class="ow">not</span> <span class="n">query</span><span class="p">:</span>
+</span><span id="PerplexityClient.queryStreamable-227"><a href="#PerplexityClient.queryStreamable-227"><span class="linenos">227</span></a>            <span class="k">raise</span> <span class="n">PerplexityClientError</span><span class="p">(</span><span class="s1">&#39;query cannot be None or empty&#39;</span><span class="p">)</span>
+</span><span id="PerplexityClient.queryStreamable-228"><a href="#PerplexityClient.queryStreamable-228"><span class="linenos">228</span></a>
+</span><span id="PerplexityClient.queryStreamable-229"><a href="#PerplexityClient.queryStreamable-229"><span class="linenos">229</span></a>        <span class="n">messages</span> <span class="o">=</span> <span class="p">[</span> <span class="p">{</span> <span class="s1">&#39;role&#39;</span><span class="p">:</span> <span class="bp">self</span><span class="o">.</span><span class="n">_role</span><span class="p">,</span> <span class="s1">&#39;content&#39;</span><span class="p">:</span> <span class="n">query</span><span class="p">,</span> <span class="p">},</span> <span class="p">]</span>
+</span><span id="PerplexityClient.queryStreamable-230"><a href="#PerplexityClient.queryStreamable-230"><span class="linenos">230</span></a>
+</span><span id="PerplexityClient.queryStreamable-231"><a href="#PerplexityClient.queryStreamable-231"><span class="linenos">231</span></a>        <span class="n">response</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">chat</span><span class="o">.</span><span class="n">completions</span><span class="o">.</span><span class="n">create</span><span class="p">(</span>
+</span><span id="PerplexityClient.queryStreamable-232"><a href="#PerplexityClient.queryStreamable-232"><span class="linenos">232</span></a>            <span class="n">model</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">model</span><span class="p">,</span>
+</span><span id="PerplexityClient.queryStreamable-233"><a href="#PerplexityClient.queryStreamable-233"><span class="linenos">233</span></a>            <span class="n">messages</span> <span class="o">=</span> <span class="n">messages</span><span class="p">,</span>
+</span><span id="PerplexityClient.queryStreamable-234"><a href="#PerplexityClient.queryStreamable-234"><span class="linenos">234</span></a>            <span class="n">stream</span> <span class="o">=</span> <span class="kc">True</span><span class="p">,</span>
+</span><span id="PerplexityClient.queryStreamable-235"><a href="#PerplexityClient.queryStreamable-235"><span class="linenos">235</span></a>        <span class="p">)</span>
+</span><span id="PerplexityClient.queryStreamable-236"><a href="#PerplexityClient.queryStreamable-236"><span class="linenos">236</span></a>
+</span><span id="PerplexityClient.queryStreamable-237"><a href="#PerplexityClient.queryStreamable-237"><span class="linenos">237</span></a>        <span class="k">return</span> <span class="n">Responses</span><span class="p">(</span><span class="n">response</span><span class="p">)</span>
 </span></pre></div>
 
 
@@ -1267,37 +1271,37 @@ <h2 id="raises">Raises</h2>
 
     </div>
     <a class="headerlink" href="#PerplexityClient.models"></a>
-            <div class="pdoc-code codehilite"><pre><span></span><span id="PerplexityClient.models-241"><a href="#PerplexityClient.models-241"><span class="linenos">241</span></a>    <span class="nd">@property</span>
-</span><span id="PerplexityClient.models-242"><a href="#PerplexityClient.models-242"><span class="linenos">242</span></a>    <span class="k">def</span> <span class="nf">models</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">unitTest</span> <span class="o">=</span> <span class="kc">False</span><span class="p">):</span>
-</span><span id="PerplexityClient.models-243"><a href="#PerplexityClient.models-243"><span class="linenos">243</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
-</span><span id="PerplexityClient.models-244"><a href="#PerplexityClient.models-244"><span class="linenos">244</span></a><span class="sd">        Provide a dictionary of the models supported by Perplexity listed in:</span>
-</span><span id="PerplexityClient.models-245"><a href="#PerplexityClient.models-245"><span class="linenos">245</span></a>
-</span><span id="PerplexityClient.models-246"><a href="#PerplexityClient.models-246"><span class="linenos">246</span></a><span class="sd">        https://docs.perplexity.ai/docs/model-cards</span>
-</span><span id="PerplexityClient.models-247"><a href="#PerplexityClient.models-247"><span class="linenos">247</span></a>
-</span><span id="PerplexityClient.models-248"><a href="#PerplexityClient.models-248"><span class="linenos">248</span></a><span class="sd">        Returns</span>
-</span><span id="PerplexityClient.models-249"><a href="#PerplexityClient.models-249"><span class="linenos">249</span></a><span class="sd">        -------</span>
-</span><span id="PerplexityClient.models-250"><a href="#PerplexityClient.models-250"><span class="linenos">250</span></a><span class="sd">        A dictionary of supported models as the key, with a `perplexypy.ModelInfo`</span>
-</span><span id="PerplexityClient.models-251"><a href="#PerplexityClient.models-251"><span class="linenos">251</span></a><span class="sd">        named tuple with the model capabilities description.  The model</span>
-</span><span id="PerplexityClient.models-252"><a href="#PerplexityClient.models-252"><span class="linenos">252</span></a><span class="sd">        information attributes are:</span>
-</span><span id="PerplexityClient.models-253"><a href="#PerplexityClient.models-253"><span class="linenos">253</span></a>
-</span><span id="PerplexityClient.models-254"><a href="#PerplexityClient.models-254"><span class="linenos">254</span></a><span class="sd">        - `parameterCount`</span>
-</span><span id="PerplexityClient.models-255"><a href="#PerplexityClient.models-255"><span class="linenos">255</span></a><span class="sd">        - `contextLength`</span>
-</span><span id="PerplexityClient.models-256"><a href="#PerplexityClient.models-256"><span class="linenos">256</span></a><span class="sd">        - `modelType`</span>
-</span><span id="PerplexityClient.models-257"><a href="#PerplexityClient.models-257"><span class="linenos">257</span></a><span class="sd">        - `availability`</span>
-</span><span id="PerplexityClient.models-258"><a href="#PerplexityClient.models-258"><span class="linenos">258</span></a><span class="sd">        &quot;&quot;&quot;</span>
-</span><span id="PerplexityClient.models-259"><a href="#PerplexityClient.models-259"><span class="linenos">259</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-260"><a href="#PerplexityClient.models-260"><span class="linenos">260</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-261"><a href="#PerplexityClient.models-261"><span class="linenos">261</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-262"><a href="#PerplexityClient.models-262"><span class="linenos">262</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-263"><a href="#PerplexityClient.models-263"><span class="linenos">263</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-264"><a href="#PerplexityClient.models-264"><span class="linenos">264</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-265"><a href="#PerplexityClient.models-265"><span class="linenos">265</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-266"><a href="#PerplexityClient.models-266"><span class="linenos">266</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-267"><a href="#PerplexityClient.models-267"><span class="linenos">267</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-268"><a href="#PerplexityClient.models-268"><span class="linenos">268</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-269"><a href="#PerplexityClient.models-269"><span class="linenos">269</span></a>        <span class="p">})</span>
-</span><span id="PerplexityClient.models-270"><a href="#PerplexityClient.models-270"><span class="linenos">270</span></a>
-</span><span id="PerplexityClient.models-271"><a href="#PerplexityClient.models-271"><span class="linenos">271</span></a>        <span class="k">return</span> <span class="n">supportedModels</span>
+            <div class="pdoc-code codehilite"><pre><span></span><span id="PerplexityClient.models-240"><a href="#PerplexityClient.models-240"><span class="linenos">240</span></a>    <span class="nd">@property</span>
+</span><span id="PerplexityClient.models-241"><a href="#PerplexityClient.models-241"><span class="linenos">241</span></a>    <span class="k">def</span> <span class="nf">models</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">unitTest</span> <span class="o">=</span> <span class="kc">False</span><span class="p">):</span>
+</span><span id="PerplexityClient.models-242"><a href="#PerplexityClient.models-242"><span class="linenos">242</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
+</span><span id="PerplexityClient.models-243"><a href="#PerplexityClient.models-243"><span class="linenos">243</span></a><span class="sd">        Provide a dictionary of the models supported by Perplexity listed in:</span>
+</span><span id="PerplexityClient.models-244"><a href="#PerplexityClient.models-244"><span class="linenos">244</span></a>
+</span><span id="PerplexityClient.models-245"><a href="#PerplexityClient.models-245"><span class="linenos">245</span></a><span class="sd">        https://docs.perplexity.ai/docs/model-cards</span>
+</span><span id="PerplexityClient.models-246"><a href="#PerplexityClient.models-246"><span class="linenos">246</span></a>
+</span><span id="PerplexityClient.models-247"><a href="#PerplexityClient.models-247"><span class="linenos">247</span></a><span class="sd">        Returns</span>
+</span><span id="PerplexityClient.models-248"><a href="#PerplexityClient.models-248"><span class="linenos">248</span></a><span class="sd">        -------</span>
+</span><span id="PerplexityClient.models-249"><a href="#PerplexityClient.models-249"><span class="linenos">249</span></a><span class="sd">        A dictionary of supported models as the key, with a `perplexypy.ModelInfo`</span>
+</span><span id="PerplexityClient.models-250"><a href="#PerplexityClient.models-250"><span class="linenos">250</span></a><span class="sd">        named tuple with the model capabilities description.  The model</span>
+</span><span id="PerplexityClient.models-251"><a href="#PerplexityClient.models-251"><span class="linenos">251</span></a><span class="sd">        information attributes are:</span>
+</span><span id="PerplexityClient.models-252"><a href="#PerplexityClient.models-252"><span class="linenos">252</span></a>
+</span><span id="PerplexityClient.models-253"><a href="#PerplexityClient.models-253"><span class="linenos">253</span></a><span class="sd">        - `parameterCount`</span>
+</span><span id="PerplexityClient.models-254"><a href="#PerplexityClient.models-254"><span class="linenos">254</span></a><span class="sd">        - `contextLength`</span>
+</span><span id="PerplexityClient.models-255"><a href="#PerplexityClient.models-255"><span class="linenos">255</span></a><span class="sd">        - `modelType`</span>
+</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></pre></div>
 
 
@@ -1330,13 +1334,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-274"><a href="#PerplexityClient.model-274"><span class="linenos">274</span></a>    <span class="nd">@property</span>
-</span><span id="PerplexityClient.model-275"><a href="#PerplexityClient.model-275"><span class="linenos">275</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-276"><a href="#PerplexityClient.model-276"><span class="linenos">276</span></a><span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
-</span><span id="PerplexityClient.model-277"><a href="#PerplexityClient.model-277"><span class="linenos">277</span></a><span class="sd">        Return the model the client uses for requesting responses from the</span>
-</span><span id="PerplexityClient.model-278"><a href="#PerplexityClient.model-278"><span class="linenos">278</span></a><span class="sd">        service provider.  Its default value is:  `PERPLEXITY_DEFAULT_MODEL`.</span>
-</span><span id="PerplexityClient.model-279"><a href="#PerplexityClient.model-279"><span class="linenos">279</span></a><span class="sd">        &quot;&quot;&quot;</span>
-</span><span id="PerplexityClient.model-280"><a href="#PerplexityClient.model-280"><span class="linenos">280</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-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>
 </span></pre></div>
 
 
diff --git a/docs/search.js b/docs/search.js
index 9343eb3..8b7269c 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></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>The default model is <strong>mistral-7b-instruct</strong> because of it's efficiency and\nperformance qualities.  Ref:  <a href=\"https://arxiv.org/abs/2310.06825\">https://arxiv.org/abs/2310.06825</a></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;user&#x27;, &#x27;system&#x27;, &#x27;assistant&#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": 3}, "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": 25}, "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": {"6": {"8": {"2": {"5": {"docs": {"perplexipy.PERPLEXITY_API_URL": {"tf": 1}}, "df": 1}, "docs": {}, "df": 0}, "docs": {}, "df": 0}, "docs": {}, "df": 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}, "7": {"docs": {}, "df": 0, "b": {"docs": {"perplexipy.PERPLEXITY_API_URL": {"tf": 1}}, "df": 1}}, "docs": {"perplexipy": {"tf": 1.7320508075688772}, "perplexipy.PERPLEXITY_API_KEY": {"tf": 1.7320508075688772}, "perplexipy.PERPLEXITY_API_PREFIX": {"tf": 1.7320508075688772}, "perplexipy.PERPLEXITY_API_URL": {"tf": 2.449489742783178}, "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, "t": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1, "h": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PERPLEXITY_API_URL": {"tf": 1}, "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}}}}}}, "o": {"docs": {"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": 7, "k": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.codex.codex": {"tf": 1.4142135623730951}}, "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}}}}}, "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_API_URL": {"tf": 1}, "perplexipy.PerplexityClient.model": {"tf": 1.4142135623730951}}, "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}}}}}}}}}}, "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}}}}}}}}}, "o": {"docs": {}, "df": 0, "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}}}}}}}}}}}}, "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, "e": {"docs": {}, "df": 0, "l": {"docs": {"perplexipy.PERPLEXITY_API_URL": {"tf": 1}, "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": 10, "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}}}, "i": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "l": {"docs": {"perplexipy.PERPLEXITY_API_URL": {"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}}}}}}}}, "i": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.PERPLEXITY_API_URL": {"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}, "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, "r": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.PERPLEXITY_API_URL": {"tf": 1}}, "df": 1}}}}, "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}}}}}}}}}}, "t": {"docs": {"perplexipy.PERPLEXITY_API_URL": {"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}}}}}}}}, "f": {"docs": {"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": 7}}, "b": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PerplexityClient": {"tf": 1}, "perplexipy.PerplexityClient.__init__": {"tf": 1}, "perplexipy.codex.codex": {"tf": 1}}, "df": 3, "c": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PERPLEXITY_API_URL": {"tf": 1}}, "df": 1}}}}}}, "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}}}}}, "o": {"docs": {}, "df": 0, "f": {"docs": {"perplexipy.PERPLEXITY_API_URL": {"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}}}}, "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, "g": {"docs": {}, "df": 0, "/": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "/": {"2": {"3": {"1": {"0": {"docs": {"perplexipy.PERPLEXITY_API_URL": {"tf": 1}}, "df": 1}, "docs": {}, "df": 0}, "docs": {}, "df": 0}, "docs": {}, "df": 0}, "docs": {}, "df": 0}}}}}}}, "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}}, "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}}}}}, "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}}}}}, "s": {"docs": {"perplexipy.PERPLEXITY_API_URL": {"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, "t": {"docs": {}, "df": 0, "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}}}}, "r": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"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}, "perplexipy.codex.codexCore": {"tf": 1}, "perplexipy.codex.codex": {"tf": 1.4142135623730951}}, "df": 7, "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}}}}}}}}, "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}}}}}}}}, "e": {"docs": {}, "df": 0, "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}}}}}}, "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}}}}}}}}}, "e": {"docs": {}, "df": 0, "f": {"docs": {}, "df": 0, "f": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy.PERPLEXITY_API_URL": {"tf": 1}}, "df": 1}}}}}}}, "e": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}}}, "n": {"docs": {}, "df": 0, "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}}}}}}, "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}}}}}, "m": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "y": {"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}}, "df": 6}}}}, "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}}}}}}, "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, "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.PERPLEXITY_API_URL": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1.7320508075688772}, "perplexipy.codex.codex": {"tf": 1}, "perplexipy.responses.Responses": {"tf": 1.4142135623730951}}, "df": 4}}, "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}}, "p": {"docs": {}, "df": 0, "i": {"docs": {"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": 5}}, "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}}, "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}}}}}, "p": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1.4142135623730951}}, "df": 1, "f": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PERPLEXITY_API_URL": {"tf": 1}}, "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.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": 5, "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.PerplexityClient.__init__": {"tf": 1.7320508075688772}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}}, "df": 2}}}, "y": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "y": {"docs": {"perplexipy.PerplexityClient.models": {"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}}}}}, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 1}}, "df": 1}}}}, "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}}}}}}}}}}, "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}}}}}}}, "q": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "a": {"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_API_URL": {"tf": 1}}, "df": 1}}}}}}}, "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}}}}}}}}, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "f": {"docs": {"perplexipy.PERPLEXITY_API_URL": {"tf": 1}}, "df": 1}, "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}}}}}}, "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, "r": {"docs": {}, "df": 0, "x": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "v": {"docs": {"perplexipy.PERPLEXITY_API_URL": {"tf": 1}}, "df": 1}}}}}, "d": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "s": {"docs": {"perplexipy.PerplexityClient.models": {"tf": 1}}, "df": 1}}}}}}}}}}}, "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}}}}}}}}, "l": {"docs": {}, "df": 0, "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}}}}}}}}, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {"perplexipy.PerplexityClient.queryStreamable": {"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}}}}}}}, "u": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {"perplexipy.PERPLEXITY_VALID_ROLES": {"tf": 1}, "perplexipy.PerplexityClient.__init__": {"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}}}}}}, "s": {"docs": {"perplexipy.PerplexityClient.model": {"tf": 1}}, "df": 1}}, "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}}}}}}}}, "n": {"docs": {}, "df": 0, "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}}}, "a": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {"perplexipy.PerplexityClient.models": {"tf": 1}}, "df": 1}}}}}, "f": {"docs": {}, "df": 0, "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}}}}}}}}}}}}, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "m": {"docs": {"perplexipy.PerplexityClient.query": {"tf": 1}, "perplexipy.PerplexityClient.queryStreamable": {"tf": 1}, "perplexipy.PerplexityClient.model": {"tf": 1}, "perplexipy.responses.Responses": {"tf": 1}}, "df": 4}}}}, "k": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {"perplexipy.PerplexityClient": {"tf": 1}}, "df": 1}}}}}, "y": {"docs": {"perplexipy.PerplexityClient.__init__": {"tf": 2.23606797749979}, "perplexipy.PerplexityClient.models": {"tf": 1}}, "df": 2}}}, "v": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "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}}}}}, "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></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};
 
     // 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 82999d1..886e0f1 100644
--- a/perplexipy/__init__.py
+++ b/perplexipy/__init__.py
@@ -32,17 +32,14 @@
 
 
 _CLAUDE_MODEL = 'claude-3-haiku'
+PERPLEXITY_API_KEY = os.environ.get('PERPLEXITY_API_KEY', default = '')
 """
 `PERPLEXITY_API_KEY` is set to the environment variable of the same name if
-present, otherwise it's set to the empty string `''`.
+present, otherwise it's set to the empty string `''`.  PerplexiPy uses the
+`dotenv` module to load environment settings from `$PWD/.env` if present.
 """
-PERPLEXITY_API_KEY = os.environ.get('PERPLEXITY_API_KEY', default = '')
 PERPLEXITY_API_PREFIX = 'pplx-'
 PERPLEXITY_API_URL = 'https://api.perplexity.ai'
-"""
-The default model is **mistral-7b-instruct** because of it's efficiency and
-performance qualities.  Ref:  https://arxiv.org/abs/2310.06825
-"""
 PERPLEXITY_DEFAULT_MODEL = 'llama-3-sonar-small-32k-chat'
 PERPLEXITY_DEFAULT_ROLE = 'user'
 PERPLEXITY_TIMEOUT = 30.0 # seconds
@@ -98,7 +95,9 @@ def __init__(self, key: str, endpoint:str = PERPLEXITY_API_URL, unitTest = False
         if not key:
             raise PerplexityClientError('Provide a valid key argument during instantiation')
         if not PERPLEXITY_API_PREFIX in key:
-            raise PerplexityClientError('The key %s i missing the pplx- prefix - invalid API key')
+            raise PerplexityClientError('The key %s is missing the pplx- prefix - invalid API key' % key)
+        if not all(ord(' ') <= ord(c) <= ord('~') for c in key):
+            raise PerplexityClientError('The key %s contains invalid characters' % key)
 
         self._endpoint = endpoint
         self._key = key
diff --git a/pyproject.toml b/pyproject.toml
index a3bc604..82f5050 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.6'
+version = '1.0.7'
 
 
 [project.scripts]


Test patch:
diff --git a/tests/perplexipy-test.py b/tests/perplexipy-test.py
index c67b4ba..85d3a0c 100644
--- a/tests/perplexipy-test.py
+++ b/tests/perplexipy-test.py
@@ -40,6 +40,8 @@ def test_PerplexityClient():
         PerplexityClient('')
     with pytest.raises(PerplexityClientError):
         PerplexityClient('xxxx')
+    with pytest.raises(PerplexityClientError):
+        PerplexityClient(PERPLEXITY_API_KEY+'😊')
 
 
 def test_PerplexityClient_query(testClient):