minor improvements

This commit is contained in:
NovaOSS Admins 2023-10-20 13:30:33 +00:00
parent a1543f9a4f
commit 96c0486eeb
7 changed files with 35 additions and 16 deletions

View file

@ -3,5 +3,6 @@ pandas
cherrypy
requests
werkzeug
watchdog
python-dotenv
requests-oauthlib

View file

@ -60,5 +60,6 @@ def create_app() -> flask.Flask:
production = create_app()
if __name__ == '__main__':
print('* DEV environment online at http://localhost:2211')
create_app().run(debug=True, use_reloader=True, use_evalex=False, port=2211, host='0.0.0.0', threaded=True)
PORT = int(os.environ.get('DEV_PORT', 2211))
print(f'* DEV environment online at http://localhost:{PORT}')
create_app().run(debug=True, use_reloader=True, use_evalex=False, port=PORT, host='0.0.0.0', threaded=True)

View file

@ -104,6 +104,10 @@ pre code *, pre code {
font-weight: normal;
}
pre {
white-space: pre-wrap;
}
p, p *, ol, ul, li {
line-height: 32px;
}

File diff suppressed because one or more lines are too long

View file

@ -93,6 +93,10 @@ pre code
*, &
font-weight: normal
// fix whitespace at beginning of <pre>
pre
white-space: pre-wrap
p, p *, ol, ul, li
line-height: 32px

View file

@ -13,7 +13,9 @@
<pre><code class="language-python">import openai as novaai
novaai.api_base = 'https://api.nova-oss.com/v1'</code></pre>
novaai.api_base = 'https://api.nova-oss.com/v1'
# you're an enterprise-level donator? use:
# novaai.api_base = 'https://api.nova-oss.com/enterprise/v1' </code></pre>
<blockquote>
<b>Info:</b>
@ -23,19 +25,20 @@ novaai.api_base = 'https://api.nova-oss.com/v1'</code></pre>
<h3>API Key</h3>
<p>
<b>You can currently only obtain your API key using the Discord server.</b>
The API key is something like a password. So keep it safe. Don't share it with anyone!
</p>
<pre><code class="language-python">novaai.api_key = 'nv-...'</code></pre>
<pre><code class="language-python">novaai.api_key = 'nv2-...'</code></pre>
<h2>curl</h2>
<pre><code class="language-bash">curl https://api.nova-oss.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer nv-..." \
-H "Authorization: Bearer nv2-..." \
-d '{
"model": "gpt-3.5-turbo",
"messages": [{"role": "user", "content": "Whats a wormhole?"}]
"messages": [{"role": "user", "content": "1+1="}]
}'</code></pre>
<h2>Unofficial front-ends (Better ChatGPT, ...)</h2>

View file

@ -3,30 +3,36 @@
<header>
<h1>Free Generative AI for <span class="special-gradient">Everyone</span></h1>
<h3>Open source</h3>
<h3>100% Open Source</h3>
<a href="https://discord.nova-oss.com" target="_blank">
<button class="special">
<i class="bi bi-discord"></i>
<i class="bi bi-discord"></i>&nbsp;
Join 6,000+ members
</button>
</a>
<!-- <a href="https://chat.nova-oss.com" target="_blank">
<a href="/get-started">
<button class="secondary">
Donate
<i class="bi bi-book"></i>&nbsp;
Tutorial
</button>
</a> -->
</a>
<br>
</header>
<main>
<h2>Welcome</h2>
<p>
Nova is a free, open source, easy to use, and powerful API for accessing all sorts of AI models.
<br>
<a href="/get-started">
<i class="bi bi-arrow-right"></i> Get started
</a>
</p>
<h2>Donate</h2>
<p><b>Huge thanks to all donators! You're the reason we can continue serving our project for free.</b></p>
<pre>
Bitcoin - bc1qwxc3ww4j7ahtdaqav29h22sh6serluxkrcl7kp
Litecoin - LcyQ5txPtLmSY6bBDYfKa8raXBw1ZNxaZL
Ethereum - 0xDE7022779AD09a40A2dc3de7226E073A638b338f
Monero - please contact us!
</pre>
<h2>About Nova</h2>
<div class="featured__facts box">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="white" class="bi bi-cash-coin" viewBox="0 0 16 16">