Add your description here
Project description
whisper
🤫
Install
To install Whisper, you can use pip:
pip install just-whisper
Setup
After installing Whisper, you need to initialize the configuration for Whisper. This involves setting up API keys for the services you intend to use, such as OpenAI or Anthropic.
To initialize the configuration, run:
$ whisper init
This will create a basic configuration file in your home directory (~/.whisper/whisper.toml
). You should update this file with your API keys.
Setup with keys
If you have keys for OpenAI or Anthropic handy, you can initialize the configuration with:
$ whisper init --openai-key <your-openai-key> --anthropic-key <your-anthropic-key>
Config
The whisper config file is located at ~/.whisper/whisper.toml
. It looks like this:
# ~/.whisper/whisper.toml
default = "openai"
[openai]
api_key = "sk-proj-..."
model = "gpt-3.5-turbo"
[anthropic]
api_key = "sk-ant-..."
model = "claude-3-opus-20240229"
Config Management
You can manage your config files using the whisper config
command. For example...
Show Config
❯ whisper config show
UserConfig(
│ default='openai',
│ openai=OpenAIConfig(api_key='replace-me', model='gpt-3.5-turbo'),
│ anthropic=AnthropicConfig(api_key='replace-me', model='claude-3-5-sonnet-20240620')
)
Get A Config Value
❯ whisper config get openai.model
gpt-3.5-turbo
Set A Config Value
❯ whisper config set openai.api_key "sk-proj-..."
UserConfig(
│ default='openai',
│ openai=OpenAIConfig(api_key='sk-proj-...', model='gpt-3.5-turbo'),
│ anthropic=AnthropicConfig(api_key='replace-me', model='claude-3-5-sonnet-20240620')
)
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
Hashes for just_whisper-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f76170295a6a32fe703b8ed7d461b12cb239dff2c37b3c8e863bb74dba40fbf |
|
MD5 | 25c4cae1e99d63c55899fa352a7bf93b |
|
BLAKE2b-256 | 05f3b00265a8f43971c2cb314a65ec4cd033cfefc20f873ba17c0bbcdb93438e |