Whisper 🤫 sweet nothin's to your favorite LLM.
Project description
whisper
🤫
::coverage
Supported Models
Provider Name | Supported by Whisper | Config Key |
---|---|---|
ChatAnthropic | ✅ | anthropic |
ChatMistralAI | ✅ | mistral |
ChatFireworks | ✅ | fireworks |
AzureChatOpenAI | ✅ | azureopenai |
ChatOpenAI | ✅ | openai |
ChatTogether | ❌ | |
ChatVertexAI | ❌ | |
ChatGoogleGenerativeAI | ❌ | |
ChatGroq | ❌ | |
ChatCohere | ❌ | |
ChatBedrock | ❌ | |
ChatHuggingFace | ❌ | |
ChatNVIDIA | ❌ | |
ChatOllama | ❌ | |
ChatLlamaCpp | ❌ | |
ChatAI21 | ❌ | |
ChatUpstage | ❌ | |
ChatDatabricks | ❌ |
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')
)
Support Me :)
If you found this project helpful, please consider supporting me by buying me a coffee.
ETH: 0x329941cDc2D84ddDf3c0b9dB9791bc787e64AE4E
BTC: 3AVY6ySYGVJJHFo3ebrNYx9oSmqShLYrz8
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
File details
Details for the file just_whisper-0.1.5.tar.gz
.
File metadata
- Download URL: just_whisper-0.1.5.tar.gz
- Upload date:
- Size: 16.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f218c9138b634c332909c27e724252db57aa826329151981c33f5b9d7d2a9d20 |
|
MD5 | 398fa4ab88d32211566a6854cc64ba99 |
|
BLAKE2b-256 | 77e4bf03b70fb53a76e16fc8dbe04f4ee0f3490d874910fcc3d203b6dfde4c0c |
File details
Details for the file just_whisper-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: just_whisper-0.1.5-py3-none-any.whl
- Upload date:
- Size: 10.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27fb389e31f22565613be22d565339ceea7c2733c1a50d280ba18f76336ebc99 |
|
MD5 | 95b609fd7e6468771e93a09a9fdc687e |
|
BLAKE2b-256 | 78f550dc21bff5ffb53381fad71badf1a9cafeefd134587518c4bdb6bd0c9afb |