Skip to content

Commit

Permalink
Update about transcripts
Browse files Browse the repository at this point in the history
  • Loading branch information
pseudotensor committed Oct 30, 2024
1 parent 5d01099 commit 5417bc3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions openai_server/agent_prompting.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,7 @@ def get_audio_transcription_helper():
```
* usage: python {cwd}/openai_server/agent_tools/audio_transcription.py [-h] --input "AUDIO_FILE_PATH"
* Can transcribe audio audio and some video formats: mp3, mp4, mpeg, mpga, m4a, wav, webm, and more.
* Once get transcript, useful to use ask_question_about_documents.py to ask questions about the transcript.
"""
else:
audio_transcription = ''
Expand Down
6 changes: 3 additions & 3 deletions openai_server/autogen_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,15 +290,15 @@ def __execute_code_dont_check_setup(self, code_blocks: List[CodeBlock]) -> Comma
f'python {cwd}/openai_server/agent_tools/' in code and \
filename.endswith('.py'):
# switch back to shell if was wrongly .py extension
lang = 'shell'
code_block.language = lang = 'shell'
new_filename = filename.replace('.py', '.sh')
shutil.move(filename, new_filename)
filename = new_filename
# override lang if filename is detected, less error-prone than using code block lang
elif filename.endswith('.sh'):
lang = 'shell'
code_block.language = lang = 'shell'
elif filename.endswith('.py'):
lang = 'python'
code_block.language = lang = 'python'
except ValueError:
return CommandLineCodeResult(exit_code=1, output="Filename is not in the workspace")

Expand Down
2 changes: 1 addition & 1 deletion src/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "3b2288d420309d4cd2e012f8e2400f31ace50ed3"
__version__ = "66a8ecd97e5eb947abe589878eac5837c5f72117"

0 comments on commit 5417bc3

Please sign in to comment.