whisper
π€«Provider Name | Supported by Whisper | Config Key |
---|---|---|
GPT4All | β | gpt4all |
ChatAnthropic | β | anthropic |
ChatMistralAI | β | mistral |
ChatFireworks | β | fireworks |
AzureChatOpenAI | β | azureopenai |
ChatOpenAI | β | openai |
ChatTogether | β | |
ChatVertexAI | β | |
ChatGoogleGenerativeAI | β | |
ChatGroq | β | |
ChatCohere | β | |
ChatBedrock | β | |
ChatHuggingFace | β | |
ChatNVIDIA | β | |
ChatOllama | β | |
ChatLlamaCpp | β | |
ChatAI21 | β | |
ChatUpstage | β | |
ChatDatabricks | β |
To install Whisper, you can use pip:
pipx install just-whisper
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.
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>
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"
You can manage your config files using the whisper config
command. For example...
β― 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')
)
β― whisper config get openai.model
gpt-3.5-turbo
β― 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')
)
If you found this project helpful, please consider supporting me by buying me a coffee.
ETH: 0x329941cDc2D84ddDf3c0b9dB9791bc787e64AE4E
BTC: 3AVY6ySYGVJJHFo3ebrNYx9oSmqShLYrz8