Skip to content

Commit 5d12c5e

Browse files
authored
chore(cleanup): Remove all LLM functionality (#626)
* 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
1 parent c58fe2a commit 5d12c5e

29 files changed

+16
-2240
lines changed

cmd/masa-node-cli/handlers.go

+1-413
Large diffs are not rendered by default.

cmd/masa-node/config.go

-7
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ func initOptions(cfg *config.AppConfig, keyManager *masacrypto.KeyManager) ([]no
1212
// WorkerManager configuration
1313
// TODO: this needs to be moved under config, but now it's here as there are import cycles given singletons
1414
workerManagerOptions := []workers.WorkerOptionFunc{
15-
workers.WithLlmChatUrl(cfg.LLMChatUrl),
1615
workers.WithMasaDir(cfg.MasaDir),
1716
}
1817

@@ -30,7 +29,6 @@ func initOptions(cfg *config.AppConfig, keyManager *masacrypto.KeyManager) ([]no
3029
node.WithBootNodes(cfg.Bootnodes...),
3130
node.WithMasaDir(cfg.MasaDir),
3231
node.WithCachePath(cachePath),
33-
node.WithLLMCloudFlareURL(cfg.LLMCfUrl),
3432
node.WithKeyManager(keyManager),
3533
}
3634

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

57-
if cfg.LlmServer {
58-
workerManagerOptions = append(workerManagerOptions, workers.EnableLLMServerWorker)
59-
masaNodeOptions = append(masaNodeOptions, node.IsLlmServer)
60-
}
61-
6255
workHandlerManager := workers.NewWorkHandlerManager(workerManagerOptions...)
6356
blockChainEventTracker := node.NewBlockChain()
6457
pubKeySub := &pubsub.PublicKeySubscriptionHandler{}

docs/oracle-node/chat-completion.md

-117
This file was deleted.

docs/oracle-node/discord-sentiment.md

-84
This file was deleted.

docs/oracle-node/quickstart.md

-9
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,6 @@ FILE_PATH=.
4343
VALIDATOR=false
4444
PORT=8080
4545
46-
# AI LLM
47-
CLAUDE_API_KEY=
48-
CLAUDE_API_URL=https://api.anthropic.com/v1/messages
49-
CLAUDE_API_VERSION=2023-06-01
50-
ELAB_URL=https://api.elevenlabs.io/v1/text-to-speech/ErXwobaYiN019PkySvjV/stream
51-
ELAB_KEY=
52-
OPENAI_API_KEY=
53-
PROMPT="You are a helpful assistant."
54-
5546
# X
5647
TWITTER_USERNAME="yourusername"
5748
TWITTER_PASSWORD="yourpassword"

docs/oracle-node/telegram-sentiment.md

-75
This file was deleted.

0 commit comments

Comments
 (0)