January 21, 2025
Gaianet. Автоматическая установка двух нод.
DropPredator - дропы, ноды, анекдоты.
Видео обзор - Перейти
Гайд. Как начать получать в разы больше очков, если нода уже установлена
screen -ls
- Находим сессию, где работает скрипт на автоматическое общение с AI, и вписываем название после точки.
screen -r НАЗВАНИЕСЕССИИ
nano ~/random_chat_with_faker.py
import requests
import random
import logging
import time
from faker import Faker
from datetime import datetime
node_url = "https://АДРЕСКОШЕЛЬКА.gaia.domains/v1/chat/completions"
faker = Faker()
headers = {
"accept": "application/json",
"Content-Type": "application/json"
}
logging.basicConfig(filename='chat_log.txt', level=logging.INFO, format='%(asctime)s - %(message)s')
def log_message(node, message):
logging.info(f"{node}: {message}")
def send_message(node_url, message):
try:
response = requests.post(node_url, json=message, headers=headers)
response.raise_for_status()
return response.json()
except requests.exceptions.RequestException as e:
print(f"Failed to get response from API: {e}")
return None
def extract_reply(response):
if response and 'choices' in response:
return response['choices'][0]['message']['content']
return ""
while True:
random_question = faker.sentence(nb_words=10)
message = {
"messages": [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": random_question}
]
}
question_time = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
response = send_message(node_url, message)
reply = extract_reply(response)
reply_time = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
log_message("Node replied", f"Q ({question_time}): {random_question} A ({reply_time}): {reply}")
print(f"Q ({question_time}): {random_question}\nA ({reply_time}): {reply}")
delay = random.randint(1, 3)
time.sleep(delay)python3 random_chat_with_faker.py
Поздравляю, вы альфа и теперь фармите в разы больше поинтов, чем незнающее об этой фишке большинство !!!
Автоматическая установка нод
wget https://raw.githubusercontent.com/predator-bites/GaianetLFG_2/refs/heads/main/install_gaia_1.sh && wget https://raw.githubusercontent.com/predator-bites/GaianetLFG_2/refs/heads/main/install_gaia_2.sh && sudo chmod +x install_gaia_1.sh install_gaia_2.sh && ./install_gaia_1.sh && source ~/.bashrc && ./install_gaia_2.sh
gaianet info
gaianet info --base $HOME/gaianet-2
Если вам нужно выполнить команду с началом "gaianet" для второй ноды, всегда добавляйте в конце
--base $HOME/gaianet-2
gaianet start
gaianet start --base $HOME/gaianet-2
gaianet stop
gaianet stop --base $HOME/gaianet-2
screen -ls
Выбираете чат, который интересует
screen -x ПОЛНОЕ_НАЗВАНИЕ_ЧАТА