Skip to content

Commit

Permalink
drop anyscale
Browse files Browse the repository at this point in the history
  • Loading branch information
ztkent committed Oct 23, 2024
1 parent e0524ed commit 8a99fde
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 32 deletions.
17 changes: 0 additions & 17 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,6 @@
"args": ["-llm=replicate", "give me some python code to classify images"],
"envFile": "${workspaceFolder}/.env",
},
{
"name": "🖥️ start anyscale 🖥️",
"type": "go",
"request": "launch",
"program": "${workspaceFolder}/cmd/moki/moki.go",
"args": ["-llm=anyscale", "give me some python code to classify images"],
"envFile": "${workspaceFolder}/.env",
},
{
"name": "🖥️ conversation 🖥️",
"type": "go",
Expand All @@ -43,15 +35,6 @@
"envFile": "${workspaceFolder}/.env",
"console": "integratedTerminal",
},
{
"name": "🖥️ anyscale conversation 🖥️",
"type": "go",
"request": "launch",
"program": "${workspaceFolder}/cmd/moki/moki.go",
"args": ["-c", "-llm=anyscale"],
"envFile": "${workspaceFolder}/.env",
"console": "integratedTerminal",
},
{
"name": "🖥️ run moki with stdin 🖥️",
"type": "go",
Expand Down
9 changes: 0 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ Conversation mode can explain code snippets, generate unit tests, and scaffold n
- Set your API key as an environment variable:
```bash
export OPENAI_API_KEY=<your key>
export ANYSCALE_API_KEY=<your key>
export REPLICATE_API_TOKEN=<your key>
```

Expand All @@ -39,7 +38,6 @@ Conversation mode can explain code snippets, generate unit tests, and scaffold n
## Configuration
- There are a few options for the API provider:
- OpenAI (https://platform.openai.com/docs/overview)
- Anyscale (https://www.anyscale.com/endpoints)
- Replicate (https://replicate.com/docs)
```
Flags:
Expand All @@ -55,12 +53,6 @@ Model Options:
- [Default] gpt-3.5-turbo, aka: turbo35
- gpt-4-turbo, aka: turbo
- gpt-4o, aka: gpt4o
- Anyscale:
- [Default] meta-llama-3-8b, aka: l3-8b
- meta-llama-3-70b, aka: l3-70b
- mistralai/Mixtral-8x7B-Instruct-v0.1, aka: m8x7b
- mistralai/Mistral-7B-Instruct-v0.1, aka: m7b
- codellama/CodeLlama-70b-Instruct-hf, aka: cl70b
- Replicate:
- [Default] meta-llama-3-8b, aka: l3-8b
- meta-llama-3-8b-instruct, aka: l3-8b-instruct
Expand All @@ -79,7 +71,6 @@ moki -c
By default the assistant will use OpenAI. To use another, run the assistant with a flag.
```bash
moki -llm=openai
moki -llm=anyscale
moki -llm=replicate
```

Expand Down
2 changes: 1 addition & 1 deletion cmd/moki/moki.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func main() {
// Define the flags
helpFlag := flag.Bool("h", false, "Show this message")
convFlag := flag.Bool("c", false, "Start a conversation with Moki")
aiFlag := flag.String("llm", string(aiutil.Anyscale), "Selct the LLM provider, either OpenAI, Anyscale, or Replicate")
aiFlag := flag.String("llm", string(aiutil.OpenAI), "Selct the LLM provider, either OpenAI or Replicate")
modelFlag := flag.String("m", "", "Set the model to use for the LLM response")
temperatureFlag := flag.Float64("t", aiutil.DefaultTemp, "Set the temperature for the LLM response")
maxTokensFlag := flag.Int("max-tokens", aiutil.DefaultMaxTokens, "Set the maximum number of tokens to generate per response")
Expand Down
6 changes: 1 addition & 5 deletions internal/tools/tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ Flags:
API Keys:
- export OPENAI_API_KEY=<your key>
- export ANYSCALE_API_KEY=<your key>
- export REPLICATE_API_TOKEN=<your key>
Model Options:
Expand All @@ -57,8 +56,5 @@ Model Options:
- meta-llama-3-8b-instruct, aka: l3-8b-instruct
- meta-llama-3-70b, aka: l3-70b
- meta-llama-3-70b-instruct, aka: l3-70b-instruct
- Anyscale:
- [Default] mistralai/Mixtral-8x7B-Instruct-v0.1, aka: m8x7b (default)
- mistralai/Mistral-7B-Instruct-v0.1, aka: m7b
- codellama/CodeLlama-70b-Instruct-hf, aka: cl70b
`

0 comments on commit 8a99fde

Please sign in to comment.