Skip to content

Commit

Permalink
Fix tts model (#1122)
Browse files Browse the repository at this point in the history
  • Loading branch information
collindutter authored Aug 29, 2024
1 parent 49fb104 commit ba47112
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Parsing streaming response with some OpenAi compatible services.
- Issue in `PromptSummaryEngine` if there are no artifacts during recursive summarization.
- Issue in `GooglePromptDriver` using Tools with no schema.
- Incorrect model in `OpenAiDriverConfig`'s `text_to_speech_driver`.

**Note**: This release includes breaking changes. Please refer to the [Migration Guide](./MIGRATION.md#030x-to-031x) for details.

Expand Down
2 changes: 1 addition & 1 deletion griptape/configs/drivers/openai_drivers_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def vector_store_driver(self) -> LocalVectorStoreDriver:

@lazy_property()
def text_to_speech_driver(self) -> OpenAiTextToSpeechDriver:
return OpenAiTextToSpeechDriver(model="tts")
return OpenAiTextToSpeechDriver(model="tts-1")

@lazy_property()
def audio_transcription_driver(self) -> OpenAiAudioTranscriptionDriver:
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/configs/drivers/test_openai_driver_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def test_to_dict(self, config):
"api_version": None,
"base_url": None,
"format": "mp3",
"model": "tts",
"model": "tts-1",
"organization": None,
"voice": "alloy",
},
Expand Down

0 comments on commit ba47112

Please sign in to comment.