Skip to content

Commit

Permalink
Deployed b1b47f2 with MkDocs version: 1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
caufieldjh committed Jul 31, 2024
1 parent ccc1511 commit 9a7500a
Show file tree
Hide file tree
Showing 4 changed files with 3,985 additions and 3,943 deletions.
42 changes: 42 additions & 0 deletions operation/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,15 @@
</span>
</a>

</li>

<li class="md-nav__item">
<a href="#openai-compatible-proxy-servers" class="md-nav__link">
<span class="md-ellipsis">
OpenAI-compatible Proxy Servers
</span>
</a>

</li>

</ul>
Expand Down Expand Up @@ -1429,6 +1438,15 @@
</span>
</a>

</li>

<li class="md-nav__item">
<a href="#openai-compatible-proxy-servers" class="md-nav__link">
<span class="md-ellipsis">
OpenAI-compatible Proxy Servers
</span>
</a>

</li>

</ul>
Expand Down Expand Up @@ -1546,6 +1564,30 @@ <h4 id="local-models">Local Models</h4>
<pre><code class="language-bash">ollama list
</code></pre>
<p>Note that models can and will vary in performance and larger models will not always perform more accurately or more efficiently.</p>
<h4 id="openai-compatible-proxy-servers">OpenAI-compatible Proxy Servers</h4>
<p>If accessing an LLM though an OpenAI client-compatible proxy server, you will need to set the following:</p>
<ul>
<li>Your API key. Set this the same way as the OpenAI API key, either as</li>
</ul>
<pre><code class="language-bash">runoak set-apikey -e openai &lt;your openai api key&gt;
</code></pre>
<p>or</p>
<pre><code class="language-bash">export OPENAI_API_KEY=&quot;key goes here&quot;
</code></pre>
<ul>
<li>
<p>The model name. This will go with the <code>--model</code> parameter.</p>
</li>
<li>
<p>The base URL. This will go with the <code>--api-base</code> parameter.</p>
</li>
<li>
<p>The provider name. Because this is an OpenAI-style proxy, this value should be <code>openai</code> and will go with the <code>--model-provider</code> parameter.</p>
</li>
</ul>
<p>Here is an example with the <code>extract</code> command (this is not a public proxy and will not work without an API key):</p>
<pre><code class="language-bash">ontogpt -vvv extract -t go_terms -i temp/genetest.txt -m anthropic/claude-opus --model-provider openai --api-base &quot;https://api.cborg.lbl.gov&quot;
</code></pre>



Expand Down
2 changes: 1 addition & 1 deletion search/search_index.json

Large diffs are not rendered by default.

Loading

0 comments on commit 9a7500a

Please sign in to comment.