New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

dalal

Package Overview
Dependencies
Maintainers
0
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dalal

A CLI Tool for Interacting with Ollama Language Models

latest
npmnpm
Version
0.0.1-canary.16
Version published
Maintainers
0
Created
Source

Dalal CLI Tool

Dalal is a command-line interface (CLI) tool designed to simplify interactions with large language models. Initially focused on Ollama, it will soon expand to include various other tools aimed at enhancing your experience in working with AI-driven applications.

Features

  • Prompt-Based Text Generation: Generate text using a specified model and prompt.
  • Model Management: List available models and view their details.
  • Version Information: Display the version of the Ollama service you are connected to.
  • Directory Input: Include all files in a directory as part of your prompt, ignoring .gitignore files.

Installation

To install Dalal globally using npm, execute the following command:

npm install -g dalal

Usage

Basic Command Structure

dalal ollama <prompt> [options]
  • <prompt>: The text prompt you want to use for generating the response.
  • [options]: Optional flags to customize the behavior of the command.

Available Options

  • --base, -b: Specify the base URL of the Ollama service (default: http://localhost:11434).
  • --list, -l: List all available models.
  • --model, -m: Specify the model to use for text generation. If not provided, the first model in the list will be used.
  • --dir, -d: Include all files in the current directory as part of the prompt, ignoring .gitignore files.
  • --help, -h: Display help information for the ollama command.
  • --version, -v: Display the version of the Ollama service.

Examples

  • Generate text with a specific model:

    dalal ollama "Translate this to French" --model "france"
    
  • List available models:

    dalal ollama --list
    
  • Include directory contents in the prompt and generate text:

    dalal ollama "Summarize this project" --dir
    
  • Display version information:

    dalal ollama --version
    

Contributing

We welcome contributions from the open-source community! If you have ideas for new features or improvements, feel free to submit an issue or create a pull request.

  • Fork the repository.
  • Create your feature branch: git checkout -b my-new-feature.
  • Commit your changes: git commit -am 'Add some feature'.
  • Push to the branch: git push origin my-new-feature.
  • Open a pull request.

License

Dalal is released under the MIT License.

About Us

At Dalal, we believe in leveraging technology to simplify complex processes and empower individuals with powerful tools. Our mission is to make AI more accessible and useful for everyone.

Feel free to explore the potential of Dalal and join us on this exciting journey!

Keywords

cli

FAQs

Package last updated on 05 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts