Skip to main content

A wrapper for NEMOTRON chat API, Accountless!

Project description

🧠 Nemotron4Free

Nemotron4Free is a lightweight Python wrapper for the NEMOTRON chat API. It allows you to send prompts and receive responses easily — with optional streaming support.

⚠️ No authentication or API key is required — the NEMOTRON API currently accepts any request, so Nemotron4Free works without login or account setup.


🚀 Installation

Install from PyPI:

pip install Nemotron

Or from source:

git clone https://github.com/Ramona-Flower/Nemotron4Free.git
cd Nemotron4Free
pip install .

💡 Usage

Basic Example

from Nemotron import ask

response = ask("What's the capital of France?")
print(response)

Streaming Output

from Nemotron import ask

response = ask("Tell me a sci-fi story.", stream=True)

With stream=True, the response is printed live as it's received — and also returned as a full string at the end.

🧠 Model Selection

You can choose which model to use by passing the model parameter:

from Nemotron import ask

response = ask("Hello, who are you?", stream=True, model="claude3_5") # nemotron70b by default

Available Models

Model Name Description Streaming Supported
nemotron70b Default model (Used by default) ✅ (stream=True)
claude3_5 Anthropic Claude 3.5 ✅ (stream=True)
gpt4o OpenAI GPT-4 Omni ✅ (stream=True)

Claude 3.5 need premium account !

🔧 Parameters

Parameter Type Default Description Info
content str Your prompt or message to the AI. Work with nemotron70b, claude3_5, gpt4o
stream bool False If True, prints the output live as it streams. Work withnemotron70b, claude3_5, gpt4o
model str nemotron70b Specifies which model to use. Can be nemotron70b, claude3_5, or gpt4o. Nothing to say
name str "test" Your name (optional). This is not required for the API but can be included for context. Useful for claude
email str "test@gmail.com" Your email (optional). This is not required for the API but can be included for context. Useful for claude

🧪 Example Output

User: Tell me a joke
AI: Why don't scientists trust atoms?
    Because they make up everything.

✨ Author

Created with ❤️ by Ramona-Flower

⭐ Feel Free to Star!

📄 License

Apache 2.0 License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nemotron-0.1.0.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file nemotron-0.1.0.tar.gz.

File metadata

  • Download URL: nemotron-0.1.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for nemotron-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9797fa3eabf90a577066712fc1444f33d0a8978bb696bc03aeaaac47d81c4cc5
MD5 376e99a2f8cc4a70d7ad1c37816b4a1f
BLAKE2b-256 46c051e6e5cf1e661c7d5d2a402f2f3c41241e35ea21a510616abb10a208416d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page