A Python package for accessing various LLM models freely
Project description
Noir-LLM
DISCLAIMER: This package is for educational purposes only. Use at your own risk. See the Disclaimer section for more details.
A Python package for accessing various LLM models freely and using them in your projects.
Features
- Access to multiple LLM models through a unified API
- Web search capabilities for supported models
- System prompt customization
- Command-line interface for interactive chat sessions
- Simple Python API for integration into your projects
Installation
pip install noir-llm
Quick Start
Command-Line Interface
List available models:
noir-llm list
Start an interactive chat session:
noir-llm chat
Start a chat session with a specific model:
noir-llm chat --model glm-4-32b
# or
noir-llm chat --model mistral-31-24b
Enable web search for the chat session:
noir-llm chat --model glm-4-32b --websearch
# or
noir-llm chat --model mistral-31-24b --websearch
Send a single message:
noir-llm send "What is the capital of France?" --model glm-4-32b
# or
noir-llm send "What is the capital of France?" --model llama-3.2-3b
Python API
from noir import NoirClient
# Create a client
client = NoirClient()
# List available models
models = client.get_available_models()
print(f"Available models: {models}")
# Select a model
client.select_model("glm-4-32b")
# or
# client.select_model("mistral-31-24b")
# Set a system prompt
client.set_system_prompt("You are a helpful assistant.")
# Send a message
response = client.send_message("What is the capital of France?")
print(f"Response: {response}")
# Enable web search
response = client.send_message("What are the latest developments in quantum computing?", websearch=True)
print(f"Response with web search: {response}")
Available Models
- GLM-4-32B: A powerful language model with web search capabilities
- Z1-32B: Another powerful language model with web search capabilities
- Z1-Rumination: A model optimized for deep research and analysis
- Mistral-31-24B: A high-quality language model from Venice AI with web search capabilities
- Llama-3.2-3B: A compact but powerful model from Venice AI with web search capabilities
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Disclaimer
IMPORTANT: This package is provided for educational purposes only. Use at your own risk. The package accesses third-party APIs without official authorization, which may violate terms of service of the respective providers. The authors are not responsible for any consequences resulting from the use of this package, including but not limited to account suspensions, legal actions, or any other damages.
By using this package, you acknowledge that:
- You are using it solely for educational and research purposes
- You understand the potential risks involved
- You take full responsibility for any consequences that may arise from its use
License
This project is licensed under the MIT License - see the LICENSE file for details.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file noir_llm-0.2.2.tar.gz.
File metadata
- Download URL: noir_llm-0.2.2.tar.gz
- Upload date:
- Size: 16.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
76cbf1401ca61508ed31b94742116c9b2cc37c737b25dd7b09041e6375024920
|
|
| MD5 |
365e6d7eb52a3d997d004716b16040d1
|
|
| BLAKE2b-256 |
8b1add2cab3e1df49bb340503761ac5a94320c4a15cde2dbb6183a9a6f1290d7
|
File details
Details for the file noir_llm-0.2.2-py3-none-any.whl.
File metadata
- Download URL: noir_llm-0.2.2-py3-none-any.whl
- Upload date:
- Size: 18.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b79c24314ad33694ecc93b9848ba9851d78857bf4f81cc04db5476a39f928ba8
|
|
| MD5 |
ed653fda29fe2f1af23051623fec71f6
|
|
| BLAKE2b-256 |
8a40c995329a2827ab5ff425629d567262fd7dc24724596936e92462c6583c0c
|