modified: csharp-examples.html
modified: elixir-examples.html modified: go-examples.html modified: java-examples.html modified: nodejs-examples.html modified: python-examples.html modified: ruby-examples.html
This commit is contained in:
parent
7fc375a598
commit
b5bead65cb
7 changed files with 34 additions and 8 deletions
|
|
@ -98,7 +98,7 @@
|
|||
|
||||
<h3 id="csharp-client">C# Client Installation</h3>
|
||||
<p>Install the OpenAI NuGet package using the .NET CLI:</p>
|
||||
<pre><code class="bash">dotnet add package OpenAI</code></pre>
|
||||
<pre><code class="bash">dotnet add package OpenAI --version 2.5.0</code></pre>
|
||||
|
||||
<p>Or via Package Manager Console:</p>
|
||||
<pre><code class="bash">Install-Package OpenAI</code></pre>
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@
|
|||
<p>Add openai_ex to your <code>mix.exs</code> dependencies:</p>
|
||||
<pre><code class="elixir">def deps do
|
||||
[
|
||||
{:openai_ex, "~> 0.9.17"}
|
||||
{:openai_ex, "~> 0.9.18"}
|
||||
]
|
||||
end</code></pre>
|
||||
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@
|
|||
|
||||
<h3 id="go-client">Go Client Installation</h3>
|
||||
<p>To install the official OpenAI Go package, use <code>go get</code>:</p>
|
||||
<pre><code class="bash">go get github.com/openai/openai-go</code></pre>
|
||||
<pre><code class="bash">go get github.com/openai/openai-go/v3@v3.3.0</code></pre>
|
||||
|
||||
<h2 id="go-non-streaming">Non-Streaming Examples</h2>
|
||||
<p>Non-streaming mode waits for the complete response before returning. This is simpler to use but provides no intermediate feedback during generation.</p>
|
||||
|
|
|
|||
|
|
@ -101,11 +101,11 @@
|
|||
<pre><code class="xml"><dependency>
|
||||
<groupId>com.openai</groupId>
|
||||
<artifactId>openai-java</artifactId>
|
||||
<version>0.8.1</version>
|
||||
<version>4.3.0</version>
|
||||
</dependency></code></pre>
|
||||
|
||||
<p>Or for Gradle:</p>
|
||||
<pre><code class="groovy">implementation 'com.openai:openai-java:0.8.1'</code></pre>
|
||||
<pre><code class="groovy">implementation 'com.openai:openai-java:4.3.0'</code></pre>
|
||||
|
||||
<h2 id="java-non-streaming">Non-Streaming Examples</h2>
|
||||
<p>Non-streaming mode waits for the complete response before returning. This is simpler to use but provides no intermediate feedback during generation.</p>
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@
|
|||
<p>To install the OpenAI package for Node.js, you can use <code>npm</code> in your <code>package.json</code>:</p>
|
||||
<pre><code class="json">{
|
||||
"dependencies": {
|
||||
"openai": "^v4.67.3" // Use the latest version
|
||||
"openai": "6.3.0"
|
||||
}
|
||||
}
|
||||
</code></pre>
|
||||
|
|
@ -310,6 +310,32 @@ getSpeech();
|
|||
});
|
||||
</script>
|
||||
</main>
|
||||
|
||||
<!-- Right sidebar - Page TOC -->
|
||||
<aside class="sidebar-right">
|
||||
<div class="table-of-contents">
|
||||
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a href="#nodejs-intro" class="active">Overview</a></li>
|
||||
<li><a href="#nodejs-client">Installation</a></li>
|
||||
<li><a href="#nodejs-non-streaming">Non-Streaming</a>
|
||||
<ul>
|
||||
<li><a href="#nodejs-hermes-non-stream">Hermes</a></li>
|
||||
<li><a href="#nodejs-qwen-non-stream">Qwen Coder</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#nodejs-streaming">Streaming</a>
|
||||
<ul>
|
||||
<li><a href="#nodejs-hermes-stream">Hermes</a></li>
|
||||
<li><a href="#nodejs-qwen-stream">Qwen Coder</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#nodejs-tts">Text-to-Speech</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</aside>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@
|
|||
|
||||
<h3 id="python-client">Python Client Installation</h3>
|
||||
<p>To install the OpenAI package for Python, use <code>pip</code>:</p>
|
||||
<pre><code class="bash">pip install openai</code></pre>
|
||||
<pre><code class="bash">pip install openai==2.3.0</code></pre>
|
||||
|
||||
<h2 id="python-non-streaming">Non-Streaming Examples</h2>
|
||||
<p>Non-streaming mode waits for the complete response before returning. This is simpler to use but provides no intermediate feedback during generation.</p>
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@
|
|||
|
||||
<h3 id="ruby-client">Ruby Client Installation</h3>
|
||||
<p>To install the official OpenAI gem for Ruby, add to your Gemfile or use <code>gem install</code>:</p>
|
||||
<pre><code class="bash">gem install openai</code></pre>
|
||||
<pre><code class="bash">gem install openai -v 0.31.0</code></pre>
|
||||
|
||||
<h2 id="ruby-non-streaming">Non-Streaming Examples</h2>
|
||||
<p>Non-streaming mode waits for the complete response before returning. This is simpler to use but provides no intermediate feedback during generation.</p>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue