Skip to content

Commit

Permalink
fix: missing style fields
Browse files Browse the repository at this point in the history
  • Loading branch information
db0 committed Nov 5, 2024
1 parent dfc6222 commit aa57dd3
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,15 @@ SPDX-License-Identifier: AGPL-3.0-or-later

# Changelog

# 4.44.1

* Various fixes around styles
* Added `/.well-known/serviceinfo`

# 4.44.0

* Adds styles
* Adds TabbyAPI as approved LLM backend

# 4.43.9

Expand Down
1 change: 1 addition & 0 deletions horde/apis/models/kobold_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,7 @@ def __init__(self, api):
description="The UUID of the style. Use this to use the style or retrieve its information in the future.",
example="00000000-0000-0000-0000-000000000000",
),
"use_count": fields.Integer(description="The amount of times this style has been used in generations."),
"creator": fields.String(description="The alias of the user to whom this style belongs to.", example="db0#1"),
},
)
1 change: 1 addition & 0 deletions horde/apis/models/stable_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -1149,6 +1149,7 @@ def __init__(self, api):
description="The UUID of the style. Use this to use the style or retrieve its information in the future.",
example="00000000-0000-0000-0000-000000000000",
),
"use_count": fields.Integer(description="The amount of times this style has been used in generations."),
"creator": fields.String(description="The alias of the user to whom this style belongs to.", example="db0#1"),
"examples": fields.List(fields.Nested(self.response_model_style_example, skip_none=True)),
},
Expand Down
1 change: 1 addition & 0 deletions horde/apis/models/v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -1862,5 +1862,6 @@ def __init__(self, api):
),
),
"styles": fields.List(fields.Nested(self.response_model_styles_short)),
"use_count": fields.Integer(description="The amount of times this collection has been used in generations."),
},
)
1 change: 1 addition & 0 deletions horde/classes/base/style.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ def get_details(self, details_privilege=0):
"""We display these in the styles list json"""
ret_dict = {
"name": self.name,
"info": self.info,
"id": self.id,
"params": self.params,
"prompt": self.prompt,
Expand Down
2 changes: 1 addition & 1 deletion horde/consts.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# SPDX-License-Identifier: AGPL-3.0-or-later

HORDE_VERSION = "4.44.0"
HORDE_VERSION = "4.44.1"
HORDE_API_VERSION = "2.5"

WHITELISTED_SERVICE_IPS = {
Expand Down

0 comments on commit aa57dd3

Please sign in to comment.