Skip to content

Commit

Permalink
fixed issue in toml preventying pypi upload
Browse files Browse the repository at this point in the history
  • Loading branch information
farfromavocaido committed Oct 5, 2024
1 parent 35327d1 commit 9603be3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
Binary file modified .DS_Store
Binary file not shown.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
# Danai

Danai is a comprehensive utility package designed to streamline interactions with OpenAI models. It offers a suite of tools for various tasks including token counting, pricing calculations, quick queries, directory summarization, and JSON response management. Whether you're working with text files or strings, Danai simplifies the process of managing and analyzing token usage and costs associated with OpenAI's powerful language models.
Danai is a comprehensive utility package designed to streamline interactions with OpenAI models. It offers a suite of tools for various tasks including token counting, pricing calculations, quick queries, directory summarisation, and JSON response management.

## Features
Danai simplifies the process of moving between different output types – particularly with structured data – and assists with managing and analysing token usage and costs associated with OpenAI's powerful language models.

## Features
T
- **Token Counting**: Count the number of tokens in text files or strings using specified OpenAI models.
- **Pricing Calculation**: Calculate the cost of tokens generated by OpenAI models based on pricing data, which is routinely updated from OpenAI.
- **Quick Queries**: Quickly generate responses from OpenAI models and print them.
- **Directory Summarization**: Print directory contents and generate directory trees while ignoring certain files and directories.
- **Quick Queries**: Quickly generate responses from OpenAI models and print them to the console or to timestamped files.
- **Directory Summarisation**: Print directory contents to collated markdown files and generate directory trees, while ignoring certain files and directories.
- **JSON Response Saving**: Save OpenAI API responses as JSON files with optional pretty-printing and cost calculation.

## Installation
Expand Down Expand Up @@ -64,7 +66,7 @@ prompt = "Your prompt here"
quickprint(prompt, model="gpt-4o-mini")
```

### Directory Summarization
### Directory Summarisation

Print the contents of a directory while ignoring certain files and directories:

Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ build-backend = "setuptools.build_meta"

[project]
name = "danai"
version = "0.3.9.2"
description = "A utility package for simplifying interactions with OpenAI models.""
version = "0.3.9.3"
description = "A utility package for simplifying interactions with OpenAI models."
authors = [{name = "Aidan Coughlan", email = "[email protected]"}]
license = {text = "MIT"}
readme = "README.md"
Expand Down

0 comments on commit 9603be3

Please sign in to comment.