Skip to content

Commit

Permalink
Merge pull request #511 from macrocosm-os/feature/SN1-368-clean
Browse files Browse the repository at this point in the history
Remove old settings
  • Loading branch information
bkb2135 authored Jan 2, 2025
2 parents 1454af0 + 472ba83 commit dbeaa29
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 143 deletions.
6 changes: 3 additions & 3 deletions neurons/miners/epistula_miner/miner.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# ruff: noqa: E402
from prompting import settings
from shared import settings

settings.settings = settings.Settings.load(mode="miner")
settings = settings.settings
settings.shared_settings = settings.SharedSettings.load(mode="miner")
shared_settings = settings.shared_settings

import asyncio
import json
Expand Down
6 changes: 3 additions & 3 deletions neurons/test_vanilla_post.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import openai
from httpx import Timeout

from prompting import settings
from shared import settings

settings.settings = settings.Settings.load(mode="validator")
settings = settings.settings
settings.shared_settings = settings.SharedSettings.load(mode="validator")
shared_settings = settings.shared_settings

from shared.epistula import create_header_hook

Expand Down
134 changes: 0 additions & 134 deletions prompting/settings.py

This file was deleted.

6 changes: 3 additions & 3 deletions scripts/client.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from prompting import settings
from shared import settings

settings.settings = settings.Settings.load(mode="validator")
settings = settings.settings
settings.shared_settings = settings.SharedSettings.load(mode="validator")
shared_settings = settings.shared_settings

import asyncio
import json
Expand Down

0 comments on commit dbeaa29

Please sign in to comment.