Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(cleanup): Remove all LLM functionality #626

Merged
merged 5 commits into from
Nov 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading