Skip to content

Commit 69572df

Browse files
authored
fix: correct visibility option (#97)
* fix: correct visibility option from "unlisted" to "unlist" in shared.py and voices.py * fix: update test for voice visibility from "unlisted" to "unlist"
1 parent 386b887 commit 69572df

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/fishaudio/types/shared.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class PaginatedResponse(BaseModel, Generic[T]):
2727
AudioFormat = Literal["wav", "pcm", "mp3", "opus"]
2828

2929
# Visibility types
30-
Visibility = Literal["public", "unlisted", "private"]
30+
Visibility = Literal["public", "unlist", "private"]
3131

3232
# Training mode types
3333
TrainMode = Literal["fast"]

src/fishaudio/types/voices.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class Voice(BaseModel):
5757
created_at: Timestamp when the model was created
5858
updated_at: Timestamp when the model was last updated
5959
languages: List of supported language codes (e.g., ["en", "zh"])
60-
visibility: Model visibility. Options: "public", "private", "unlisted"
60+
visibility: Model visibility. Options: "public", "private", "unlist"
6161
lock_visibility: Whether visibility setting is locked
6262
like_count: Number of likes the model has received
6363
mark_count: Number of bookmarks/favorites

tests/unit/test_types.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@ def test_tts_request_custom_new_parameters(self):
168168
class TestVoiceVisibility:
169169
"""Test Voice model with updated visibility."""
170170

171-
def test_voice_with_unlisted_visibility(self, sample_voice_response):
172-
"""Test Voice model with 'unlisted' visibility."""
173-
sample_voice_response["visibility"] = "unlisted"
171+
def test_voice_with_unlist_visibility(self, sample_voice_response):
172+
"""Test Voice model with 'unlist' visibility."""
173+
sample_voice_response["visibility"] = "unlist"
174174
voice = Voice.model_validate(sample_voice_response)
175-
assert voice.visibility == "unlisted"
175+
assert voice.visibility == "unlist"

0 commit comments

Comments
 (0)