Updated to version 0.5
This commit is contained in:
@@ -2,6 +2,28 @@
|
||||
|
||||

|
||||
|
||||
# Update Yolo v0.5 - Support for Claude and other providers
|
||||
|
||||
* Added Claude support. Can an API key from Anthropic, current model `claude-3-5-sonnet-20240620`.
|
||||
* ai_model.py to abstract model usage and allow adding new providers more easily
|
||||
* Rewrote some logic to simplify and generalize support for various new APIs (like Ollama, Claude)
|
||||
|
||||
# Update Yolo v0.4 - Support for Groq
|
||||
|
||||
* Added groq support. You can get an API key at `https://console.groq.com` and set mode to for instance `llama3-8b-8192`. groq is lightning fast.
|
||||
* Simplified and improved default `prompt.txt`,
|
||||
* Note: Testing shows that model `gpt-4o` gives the best results.
|
||||
|
||||
|
||||
# Update Yolo v0.3 - Support for Azure OpenAI
|
||||
|
||||
* Key changes are upgrades to the latest OpenAI libraries and support for Azure OpenAI. There is an `api` key in the `yolo.yaml` that can be set to `azure_openai` and then you can provide all the parameters accordingly in the yaml file as well (`api-version`, your `azure-endpoint`,...). The api key for azure is called `AZURE_OPENAI_API_KEY` by the way. It can be set via environment variable and config file.
|
||||
* It's now possible to change the color of the suggested command via config file
|
||||
* The "modify prompt" feature is now optional and can be toggled via config file.
|
||||
* Minor bug fixes (like copy to clipboard should work on macOS)
|
||||
|
||||
Tested on macOS and Linux. Windows hopefully still works also.
|
||||
|
||||
# Update Yolo v0.2 - Support for GPT-4 API
|
||||
|
||||
This update introduces the `yolo.yaml` configuration file. In this file you can specify which OpenAI model you want to query, and other settings. The safety switch also moved into this configuration file.
|
||||
@@ -9,16 +31,18 @@ This update introduces the `yolo.yaml` configuration file. In this file you can
|
||||
For now the default model is still `gpt-3.5-turbo`, but you can update to `gpt-4` if you have gotten access already!
|
||||
|
||||
```
|
||||
Yolo v0.2 - by @wunderwuzzi23
|
||||
Yolo v0.3 - by @wunderwuzzi23
|
||||
|
||||
Usage: yolo [-a] list the current directory information
|
||||
Argument: -a: Prompt the user before running the command (only useful when safety is off)
|
||||
|
||||
Current configuration per yolo.yaml:
|
||||
* Model : gpt-3.5-turbo
|
||||
* API : openai
|
||||
* Model : gpt-4-turbo-preview
|
||||
* Temperature : 0
|
||||
* Max. Tokens : 500
|
||||
* Safety : on
|
||||
* Safety : True
|
||||
* Command Color: blue
|
||||
```
|
||||
|
||||
Happy Hacking!
|
||||
@@ -41,7 +65,18 @@ yolo show me some funny unicode characters
|
||||
There are three ways to configure the key on Linux and macOS:
|
||||
- You can either `export OPENAI_API_KEY=<yourkey>`, or have a `.env` file in the same directory as `yolo.py` with `OPENAI_API_KEY="<yourkey>"` as a line
|
||||
- Create a file at `~/.openai.apikey` with the key in it
|
||||
- Add the key to the `yolo.yaml` configuration file
|
||||
- Set the key in the `yolo.yaml` configuration file
|
||||
|
||||
### Azure OpenAI Key configuration
|
||||
There are three ways to configure the key on Linux and macOS:
|
||||
- You can either `export AZURE_OPENAI_API_KEY=<yourkey>`, or have a `.env` file in the same directory as `yolo.py` with `AZURE_OPENAI_API_KEY="<yourkey>"` as a line
|
||||
- Create a file at `~/.azureopenai.apikey` with the key in it
|
||||
- Set the key in the `yolo.yaml` configuration file
|
||||
|
||||
### Groq Configuration
|
||||
- Grab an API key from `console.groq.com`
|
||||
- You can either `export GROQ_API_KEY=<yourkey>`, or have a `.env` file in the same directory as `yolo.py` with `GROQ_API_KEY="<yourkey>"` as a line
|
||||
- Set `api` and `model` (e.g llama3-8b-8192) in `yolo.yaml` configuration file
|
||||
|
||||
## Aliases
|
||||
|
||||
@@ -74,6 +109,22 @@ You also have the option to:
|
||||
|
||||
That's it basically.
|
||||
|
||||
|
||||
### PowerShell Command
|
||||
|
||||
If you want a PowerShell style command you can use something like this (check that the path is to yolo.py is correct) and you can add this function to your PowerShell profile.
|
||||
|
||||
```
|
||||
function Invoke-Yolo {
|
||||
param([Parameter(ValueFromRemainingArguments=$true)]$Commands)
|
||||
$AllCommands = $Commands -join " "
|
||||
$YoloPath = Join-Path -Path $env:USERPROFILE -ChildPath "\yolo-ai-cmdbot\yolo.py"
|
||||
python.exe $YoloPath $AllCommands
|
||||
}
|
||||
```
|
||||
|
||||
You can find the profile file with `$PROFILE` in a PowerShell Terminal. I might add a better installation in future.
|
||||
|
||||
## OpenAI API Key Configuration on Windows
|
||||
|
||||
On Windows `export OPENAI_API_KEY=<yourkey>` will not work instead:
|
||||
@@ -83,6 +134,8 @@ On Windows `export OPENAI_API_KEY=<yourkey>` will not work instead:
|
||||
|
||||
Optionally (since v.0.2), the key can also be stored in `yolo.yaml`.
|
||||
|
||||
If you want to use Azure, the the key is called `AZURE_OPENAI_API_KEY`.
|
||||
|
||||
## Running yolo on Windows
|
||||
|
||||
Windows is less tested, it does work though and will use PowerShell.
|
||||
|
||||
Reference in New Issue
Block a user