Skip to content

Commit

Permalink
Merge branch 'feat/model-runtime' into deploy/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
takatost committed Dec 28, 2023
2 parents e08c13d + a34fe35 commit 69c9bcc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions api/core/entities/provider_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ def add_or_update_custom_credentials(self, credentials: dict) -> None:
db.session.add(provider_record)
db.session.commit()

self.switch_preferred_provider_type(ProviderType.CUSTOM)

def delete_custom_credentials(self) -> None:
"""
Delete custom provider credentials.
Expand Down
2 changes: 1 addition & 1 deletion api/services/audio_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ def transcript(cls, tenant_id: str, file: FileStorage):
buffer = io.BytesIO(file_content)
buffer.name = 'temp.mp3'

return model_instance.invoke_speech2text(buffer)
return {"text": model_instance.invoke_speech2text(buffer)}

0 comments on commit 69c9bcc

Please sign in to comment.