Skip to main content

A Python package for accessing various LLM models

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

Enable web search for the chat session:

noir-llm chat --model glm-4-32b --websearch

Send a single message:

noir-llm send "What is the capital of France?" --model glm-4-32b

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")

# 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

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

noir_llm-0.1.0.tar.gz (13.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

noir_llm-0.1.0-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: noir_llm-0.1.0.tar.gz
  • Upload date:
  • Size: 13.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.4

File hashes

Hashes for noir_llm-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6a2268e9fadcda04d5660543b043931e0629f2c213cc340595f9e6093287ca26
MD5 1ee358a12fbce67d5463cdd42860196f
BLAKE2b-256 fbd834880fd14224a5b001b49cee245450865bae993afe32e353166709220d9b

See more details on using hashes here.

File details

Details for the file noir_llm-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: noir_llm-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.4

File hashes

Hashes for noir_llm-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 127e4f6771682a0df4a60796eb5480944f5bb25b6e74089f1f13fddb0ce41707
MD5 ec71b48aacb0c11121000dbe44549558
BLAKE2b-256 06a6ddb807fcaee136069945ab1aeb227a887e27550fdbcdf8358b347fc3e6c0

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