tumblrbot 1.9.1__tar.gz → 1.9.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {tumblrbot-1.9.1 → tumblrbot-1.9.2}/.gitignore +1 -2
- {tumblrbot-1.9.1 → tumblrbot-1.9.2}/PKG-INFO +2 -2
- {tumblrbot-1.9.1 → tumblrbot-1.9.2}/README.md +1 -1
- {tumblrbot-1.9.1 → tumblrbot-1.9.2}/pyproject.toml +1 -1
- {tumblrbot-1.9.1 → tumblrbot-1.9.2}/src/tumblrbot/flow/generate.py +2 -0
- {tumblrbot-1.9.1 → tumblrbot-1.9.2}/.github/FUNDING.yml +0 -0
- {tumblrbot-1.9.1 → tumblrbot-1.9.2}/.github/dependabot.yml +0 -0
- {tumblrbot-1.9.1 → tumblrbot-1.9.2}/UNLICENSE +0 -0
- {tumblrbot-1.9.1 → tumblrbot-1.9.2}/sample_custom_prompts.jsonl +0 -0
- {tumblrbot-1.9.1 → tumblrbot-1.9.2}/src/tumblrbot/__init__.py +0 -0
- {tumblrbot-1.9.1 → tumblrbot-1.9.2}/src/tumblrbot/__main__.py +0 -0
- {tumblrbot-1.9.1 → tumblrbot-1.9.2}/src/tumblrbot/flow/__init__.py +0 -0
- {tumblrbot-1.9.1 → tumblrbot-1.9.2}/src/tumblrbot/flow/download.py +0 -0
- {tumblrbot-1.9.1 → tumblrbot-1.9.2}/src/tumblrbot/flow/examples.py +0 -0
- {tumblrbot-1.9.1 → tumblrbot-1.9.2}/src/tumblrbot/flow/fine_tune.py +0 -0
- {tumblrbot-1.9.1 → tumblrbot-1.9.2}/src/tumblrbot/utils/__init__.py +0 -0
- {tumblrbot-1.9.1 → tumblrbot-1.9.2}/src/tumblrbot/utils/common.py +0 -0
- {tumblrbot-1.9.1 → tumblrbot-1.9.2}/src/tumblrbot/utils/models.py +0 -0
- {tumblrbot-1.9.1 → tumblrbot-1.9.2}/src/tumblrbot/utils/tumblr.py +0 -0
|
@@ -199,7 +199,7 @@ cython_debug/
|
|
|
199
199
|
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
|
|
200
200
|
# and can be added to the global gitignore or merged into this file. However, if you prefer,
|
|
201
201
|
# you could uncomment the following to ignore the entire vscode folder
|
|
202
|
-
|
|
202
|
+
.vscode/
|
|
203
203
|
|
|
204
204
|
# Ruff stuff:
|
|
205
205
|
.ruff_cache/
|
|
@@ -215,7 +215,6 @@ __marimo__/
|
|
|
215
215
|
# Streamlit
|
|
216
216
|
.streamlit/secrets.toml
|
|
217
217
|
|
|
218
|
-
.vscode
|
|
219
218
|
data
|
|
220
219
|
*.jsonl
|
|
221
220
|
config.toml
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: tumblrbot
|
|
3
|
-
Version: 1.9.
|
|
3
|
+
Version: 1.9.2
|
|
4
4
|
Summary: An updated bot that posts to Tumblr, based on your very own blog!
|
|
5
5
|
Requires-Python: >= 3.13
|
|
6
6
|
Description-Content-Type: text/markdown
|
|
@@ -174,7 +174,7 @@ Specific Options:
|
|
|
174
174
|
- **`tags_chance`** - This should be between 0 and 1. Setting it to 0 corresponds to a 0% chance (never) to add tags to a post. 1 corresponds to a 100% chance (always) to add tags to a post. Adding tags incurs a very small token cost.
|
|
175
175
|
- **`reblog_blog_identifiers`** - Whenever a reblog is attempted, a random blog from this list will be chosen to be reblogged from.
|
|
176
176
|
- **`reblog_chance`** - This setting works the same way as `tags_chance`.
|
|
177
|
-
- **`reblog_user_message`** - This setting is a [format string]. The only argument it is formatted with is the content of the post being reblogged. In simple terms, the `{}` will be replaced with said content.
|
|
177
|
+
- **`reblog_user_message`** - This setting is a [format string]. The only argument it is formatted with is the content of the post being reblogged. In simple terms, the `{}` will be replaced with said content. Alternatively, you can leave out the `{}` so that the reblogged post is appended to the end.
|
|
178
178
|
- *Note: The bot is only given the latest message in a reblog chain due to the required complexity and added costs of including the entire chain.*
|
|
179
179
|
|
|
180
180
|
## Manual Fine-Tuning
|
|
@@ -156,7 +156,7 @@ Specific Options:
|
|
|
156
156
|
- **`tags_chance`** - This should be between 0 and 1. Setting it to 0 corresponds to a 0% chance (never) to add tags to a post. 1 corresponds to a 100% chance (always) to add tags to a post. Adding tags incurs a very small token cost.
|
|
157
157
|
- **`reblog_blog_identifiers`** - Whenever a reblog is attempted, a random blog from this list will be chosen to be reblogged from.
|
|
158
158
|
- **`reblog_chance`** - This setting works the same way as `tags_chance`.
|
|
159
|
-
- **`reblog_user_message`** - This setting is a [format string]. The only argument it is formatted with is the content of the post being reblogged. In simple terms, the `{}` will be replaced with said content.
|
|
159
|
+
- **`reblog_user_message`** - This setting is a [format string]. The only argument it is formatted with is the content of the post being reblogged. In simple terms, the `{}` will be replaced with said content. Alternatively, you can leave out the `{}` so that the reblogged post is appended to the end.
|
|
160
160
|
- *Note: The bot is only given the latest message in a reblog chain due to the required complexity and added costs of including the entire chain.*
|
|
161
161
|
|
|
162
162
|
## Manual Fine-Tuning
|
|
@@ -35,6 +35,8 @@ class DraftGenerator(FlowClass):
|
|
|
35
35
|
def generate_post(self) -> Post:
|
|
36
36
|
if original := self.get_random_post():
|
|
37
37
|
user_message = self.config.reblog_user_message.format(original)
|
|
38
|
+
if "{}" not in self.config.reblog_user_message:
|
|
39
|
+
user_message += str(original)
|
|
38
40
|
else:
|
|
39
41
|
original = Post()
|
|
40
42
|
user_message = self.config.user_message
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|