Skip to content

Commit

Permalink
chore(cleanup): Remove all LLM functionality (#626)
Browse files Browse the repository at this point in the history
* Remove sentiment analysis code since it's not used any more

* Also remove sentiment-related WorkerTypes

* Remove all LLM functionality

* Missed one LLM call

* Remove some unused functions
  • Loading branch information
mcamou authored Nov 13, 2024
1 parent c58fe2a commit 5d12c5e
Show file tree
Hide file tree
Showing 29 changed files with 16 additions and 2,240 deletions.
414 changes: 1 addition & 413 deletions cmd/masa-node-cli/handlers.go

Large diffs are not rendered by default.

7 changes: 0 additions & 7 deletions cmd/masa-node/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ func initOptions(cfg *config.AppConfig, keyManager *masacrypto.KeyManager) ([]no
// WorkerManager configuration
// TODO: this needs to be moved under config, but now it's here as there are import cycles given singletons
workerManagerOptions := []workers.WorkerOptionFunc{
workers.WithLlmChatUrl(cfg.LLMChatUrl),
workers.WithMasaDir(cfg.MasaDir),
}

Expand All @@ -30,7 +29,6 @@ func initOptions(cfg *config.AppConfig, keyManager *masacrypto.KeyManager) ([]no
node.WithBootNodes(cfg.Bootnodes...),
node.WithMasaDir(cfg.MasaDir),
node.WithCachePath(cachePath),
node.WithLLMCloudFlareURL(cfg.LLMCfUrl),
node.WithKeyManager(keyManager),
}

Expand All @@ -54,11 +52,6 @@ func initOptions(cfg *config.AppConfig, keyManager *masacrypto.KeyManager) ([]no
masaNodeOptions = append(masaNodeOptions, node.IsWebScraper)
}

if cfg.LlmServer {
workerManagerOptions = append(workerManagerOptions, workers.EnableLLMServerWorker)
masaNodeOptions = append(masaNodeOptions, node.IsLlmServer)
}

workHandlerManager := workers.NewWorkHandlerManager(workerManagerOptions...)
blockChainEventTracker := node.NewBlockChain()
pubKeySub := &pubsub.PublicKeySubscriptionHandler{}
Expand Down
117 changes: 0 additions & 117 deletions docs/oracle-node/chat-completion.md

This file was deleted.

84 changes: 0 additions & 84 deletions docs/oracle-node/discord-sentiment.md

This file was deleted.

9 changes: 0 additions & 9 deletions docs/oracle-node/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,6 @@ FILE_PATH=.
VALIDATOR=false
PORT=8080
# AI LLM
CLAUDE_API_KEY=
CLAUDE_API_URL=https://api.anthropic.com/v1/messages
CLAUDE_API_VERSION=2023-06-01
ELAB_URL=https://api.elevenlabs.io/v1/text-to-speech/ErXwobaYiN019PkySvjV/stream
ELAB_KEY=
OPENAI_API_KEY=
PROMPT="You are a helpful assistant."
# X
TWITTER_USERNAME="yourusername"
TWITTER_PASSWORD="yourpassword"
Expand Down
75 changes: 0 additions & 75 deletions docs/oracle-node/telegram-sentiment.md

This file was deleted.

Loading

0 comments on commit 5d12c5e

Please sign in to comment.