-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add installation script and
claude
command
- Add installation script to add environment's bin directory to the PATH - Update README.md with installation instructions and usage for `claude` command - Add `claude` command to automatically set relevant environment variables for using the CLI with `claude-3-5-sonnet-latest` model - Update version to 0.5.3 in `version.py` - Include `claude` command in `setup.py` entry points - Update `CHANGELOG.md` with changes for version 0.5.3
- Loading branch information
Showing
6 changed files
with
105 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
Changelog | ||
--- | ||
|
||
### 31/01/2025 v0.5.3 | ||
|
||
- add install command to add environment's bin directory to the PATH | ||
- update README.md | ||
|
||
--- | ||
|
||
### 30/01/2025 v0.5.2 | ||
|
||
- add `claude` command to automatically set relevant environment variables to use CLI with `claude-3-5-sonnet-latest` model. | ||
|
||
--- | ||
|
||
### 29/01/2025 v0.5.1 | ||
|
||
- fix typo in setup.py preventing installation | ||
- convert TerminalSelector to use label/value pairs instead of just strings of its values | ||
- alters thread labels when selecting so that the thread id is not shown, just the initial prompt | ||
|
||
--- | ||
|
||
### 12/01/2025 v0.5.0 | ||
|
||
- add support for image generation via OpenAI API |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import asyncio | ||
import sys | ||
|
||
from assistants.cli import cli | ||
from assistants.config import environment | ||
from assistants.user_data.sqlite_backend import init_db | ||
|
||
CLAUDE_MODEL = "claude-3-5-sonnet-latest" | ||
|
||
|
||
def main(): | ||
if not environment.ANTHROPIC_API_KEY: | ||
print("ANTHROPIC_API_KEY not set in environment variables.", file=sys.stderr) | ||
sys.exit(1) | ||
environment.DEFAULT_MODEL = CLAUDE_MODEL | ||
environment.CODE_MODEL = CLAUDE_MODEL | ||
environment.ASSISTANT_INSTRUCTIONS = "" | ||
asyncio.run(init_db()) | ||
cli() | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__VERSION__ = "0.5.1" | ||
__VERSION__ = "0.5.3" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
author="Michael Jarvis", | ||
author_email="[email protected]", | ||
description="OpenAI Assistants Wrapper, with CLI and Telegram Bot", | ||
long_description=open("README.md").read(), | ||
long_description=open("README.md").read() + "\n\n" + open("CHANGELOG.md").read(), | ||
long_description_content_type="text/markdown", | ||
url="https://github.com/nihilok/assistants", | ||
packages=find_packages(exclude=["assistants.tests*"]), | ||
|
@@ -38,6 +38,7 @@ | |
"console_scripts": [ | ||
"ai-cli=assistants.main:main", | ||
"ai-tg-bot=assistants.main_tg:main", | ||
"claude=assistants.claude:main", | ||
], | ||
}, | ||
python_requires=">=3.10", | ||
|