Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #25: Improve text to speech settings. It's far from perfect #26

Closed
wants to merge 1 commit into from

Conversation

github-actions[bot]
Copy link

@github-actions github-actions bot commented May 16, 2023

AutoPR Failure

Fixes #25

Status

This pull request was being autonomously generated by AutoPR, but it encountered an error.

Error:

Traceback (most recent call last):
  File "/venv/lib/python3.9/site-packages/tenacity/__init__.py", line 382, in __call__
    result = fn(*args, **kwargs)
  File "/app/autopr/repos/completions_repo.py", line 142, in _complete
    openai_response = openai.ChatCompletion.create(
  File "/venv/lib/python3.9/site-packages/openai/api_resources/chat_completion.py", line 25, in create
    return super().create(*args, **kwargs)
  File "/venv/lib/python3.9/site-packages/openai/api_resources/abstract/engine_api_resource.py", line 153, in create
    response, _, api_key = requestor.request(
  File "/venv/lib/python3.9/site-packages/openai/api_requestor.py", line 230, in request
    resp, got_stream = self._interpret_response(result, stream)
  File "/venv/lib/python3.9/site-packages/openai/api_requestor.py", line 624, in _interpret_response
    self._interpret_response_line(
  File "/venv/lib/python3.9/site-packages/openai/api_requestor.py", line 687, in _interpret_response_line
    raise self.handle_error_response(
openai.error.RateLimitError: You exceeded your current quota, please check your plan and billing details.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/app/autopr/services/agent_service.py", line 78, in run_agent
    agent.handle_event(event)
  File "/app/autopr/agents/plan_and_code.py", line 53, in handle_event
    context = self.action_service.run_actions_iteratively(
  File "/app/autopr/services/action_service.py", line 215, in run_actions_iteratively
    context = self.run_action(action_id, context)
  File "/app/autopr/services/action_service.py", line 186, in run_action
    results = action.run(arguments, context)
  File "/app/autopr/actions/plan_pr.py", line 417, in run
    filepaths = self.get_initial_filepaths(files, issue)
  File "/app/autopr/actions/plan_pr.py", line 300, in get_initial_filepaths
    response = self.rail_service.run_prompt_rail(
  File "/app/autopr/services/rail_service.py", line 315, in run_prompt_rail
    prompt = self.completions_repo.complete(
  File "/app/autopr/repos/completions_repo.py", line 65, in complete
    result = self._complete(
  File "/venv/lib/python3.9/site-packages/tenacity/__init__.py", line 289, in wrapped_f
    return self(f, *args, **kw)
  File "/venv/lib/python3.9/site-packages/tenacity/__init__.py", line 379, in __call__
    do = self.iter(retry_state=retry_state)
  File "/venv/lib/python3.9/site-packages/tenacity/__init__.py", line 326, in iter
    raise retry_exc from fut.exception()
tenacity.RetryError: RetryError[<Future at 0x7fbc9f4828e0 state=finished raised RateLimitError>]

Please open an issue to report this.

Progress Updates

📝 Planning pull request
❌ Failed plan_pull_request
Prompt
Hey, somebody just opened an issue in my repo, could you help me write a pull request?

The issue is:
```#25 Improve text to speech settings. It's far from perfect

github-actions[bot]: https://api.github.com/tim-gromeyer/VoiceAssistant/blob/3d8e30f32df196d2155d1200f50306868fc83066/src/texttospeechsettings.h#L15

```c_cpp

class QVBoxLayout;
class QTextToSpeech;

// TODO: Improve text to speech settings. It's far from perfect
class TextToSpeechSettings : public SettingsWidget
{
    Q_OBJECT

```

```

The list of files in the repo is:
```.clang-format (1178 tokens)
.gitignore (32 tokens)
.gitmodules (39 tokens)
CMakeLists.txt (2230 tokens)
CONTRIBUTING.md (337 tokens)
COPYING (788311 tokens)
INSTALL.md (757 tokens)
README.md (1410 tokens)
SECURITY.md (240 tokens)
.github/CODEOWNERS (10 tokens)
3rdparty/CMakeLists.txt (110 tokens)
cmake/Dirs.cmake (461 tokens)
cmake/DownloadVosk.cmake (1242 tokens)
cmake/FindVosk.cmake (371 tokens)
cmake/Packaging.cmake (2512 tokens)
cmake/Plugins.cmake (761 tokens)
cmake/Translation.cmake (401 tokens)
commands/README.md (763 tokens)
commands/de-DE (2 tokens)
commands/en-US (2 tokens)
docs/Doxyfile (911 tokens)
packaging/VoiceAssistant.desktop.in (307 tokens)
plugins/README.md (619 tokens)
plugins/base.h (538 tokens)
plugins/bridge.h (1408 tokens)
plugins/settingswidget.h (1732 tokens)
ressources/ressources.qrc (90 tokens)
scripts/clang-format.sh (35 tokens)
scripts/createDocumentation (47 tokens)
speechtotext/CMakeLists.txt (106 tokens)
speechtotext/speechtotextplugin.h (1077 tokens)
src/commandwizard.cpp (4346 tokens)
src/commandwizard.h (1117 tokens)
src/global.h (642 tokens)
src/jokes.cpp (2599 tokens)
src/jokes.h (426 tokens)
src/listwidget.h (737 tokens)
src/main.cpp (1443 tokens)
src/mainwindow.cpp (14283 tokens)
src/mainwindow.h (1116 tokens)
src/modeldownloader.cpp (5571 tokens)
src/modeldownloader.h (416 tokens)
src/recognizer.cpp (3704 tokens)
src/recognizer.h (826 tokens)
src/settingsdialog.cpp (1285 tokens)
src/settingsdialog.h (216 tokens)
src/texttospeechsettings.cpp (3589 tokens)
src/texttospeechsettings.h (617 tokens)
src/utils.cpp (3367 tokens)
src/utils.h (936 tokens)
tests/CMakeLists.txt (120 tokens)
tests/test_load_plugins.cpp (686 tokens)
translations/VoiceAssistant_de.ts (15230 tokens)
translations/VoiceAssistant_fr.ts (13511 tokens)
translations/VoiceAssistant_nb_NO.ts (13857 tokens)
translations/VoiceAssistant_ru.ts (15140 tokens)
translations/translations.qrc (73 tokens)
translations/update.py (474 tokens)
translations/update.sh (166 tokens)
ui/mainwindow.ui (2388 tokens)
ui/settingsdialog.ui (1343 tokens)
.github/ISSUE_TEMPLATE/bug_report.md (220 tokens)
.github/ISSUE_TEMPLATE/feature_request.md (139 tokens)
.github/workflows/autopr.yml (497 tokens)
.github/workflows/build.yml (868 tokens)
.github/workflows/todo-to-issue.yml (481 tokens)
.github/workflows/website.yml (276 tokens)
commands/de/default.json (2199 tokens)
commands/en/default.json (2194 tokens)
docs/doxygen-awesome-css/.gitignore (12 tokens)
docs/doxygen-awesome-css/LICENSE (274 tokens)
docs/doxygen-awesome-css/doxygen-awesome-darkmode-toggle.js (3951 tokens)
docs/doxygen-awesome-css/doxygen-awesome-fragment-copy-button.js (1659 tokens)
docs/doxygen-awesome-css/doxygen-awesome-interactive-toc.js (1366 tokens)
docs/doxygen-awesome-css/doxygen-awesome-paragraph-link.js (977 tokens)
docs/doxygen-awesome-css/doxygen-awesome-sidebar-only-darkmode-toggle.css (448 tokens)
docs/doxygen-awesome-css/doxygen-awesome-sidebar-only.css (1293 tokens)
docs/doxygen-awesome-css/doxygen-awesome.css (25271 tokens)
plugins/testPlugin/.gitignore (309 tokens)
plugins/testPlugin/CMakeLists.txt (313 tokens)
plugins/testPlugin/metadata.json (3 tokens)
plugins/testPlugin/plugintest.cpp (231 tokens)
plugins/testPlugin/plugintest.h (169 tokens)
ressources/logo/Icon.svg (5833 tokens)
ressources/logo/icons.sh (480 tokens)
speechtotext/vosk-api/CMakeLists.txt (384 tokens)
speechtotext/vosk-api/voskplugin.cpp (2055 tokens)
speechtotext/vosk-api/voskplugin.h (720 tokens)
docs/doxygen-awesome-css/doxygen-custom/custom.css (1086 tokens)
docs/doxygen-awesome-css/doxygen-custom/header.html (2076 tokens)```

Should we take a look at any files? If so, pick only a few files (max 5000 tokens). 
Respond with a very short rationale, and a list of files.
If looking at files would be a waste of time with regard to the issue, respond with an empty list.
Error
Traceback (most recent call last):
  File "/venv/lib/python3.9/site-packages/tenacity/__init__.py", line 382, in __call__
    result = fn(*args, **kwargs)
  File "/app/autopr/repos/completions_repo.py", line 142, in _complete
    openai_response = openai.ChatCompletion.create(
  File "/venv/lib/python3.9/site-packages/openai/api_resources/chat_completion.py", line 25, in create
    return super().create(*args, **kwargs)
  File "/venv/lib/python3.9/site-packages/openai/api_resources/abstract/engine_api_resource.py", line 153, in create
    response, _, api_key = requestor.request(
  File "/venv/lib/python3.9/site-packages/openai/api_requestor.py", line 230, in request
    resp, got_stream = self._interpret_response(result, stream)
  File "/venv/lib/python3.9/site-packages/openai/api_requestor.py", line 624, in _interpret_response
    self._interpret_response_line(
  File "/venv/lib/python3.9/site-packages/openai/api_requestor.py", line 687, in _interpret_response_line
    raise self.handle_error_response(
openai.error.RateLimitError: You exceeded your current quota, please check your plan and billing details.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/app/autopr/services/action_service.py", line 186, in run_action
    results = action.run(arguments, context)
  File "/app/autopr/actions/plan_pr.py", line 417, in run
    filepaths = self.get_initial_filepaths(files, issue)
  File "/app/autopr/actions/plan_pr.py", line 300, in get_initial_filepaths
    response = self.rail_service.run_prompt_rail(
  File "/app/autopr/services/rail_service.py", line 315, in run_prompt_rail
    prompt = self.completions_repo.complete(
  File "/app/autopr/repos/completions_repo.py", line 65, in complete
    result = self._complete(
  File "/venv/lib/python3.9/site-packages/tenacity/__init__.py", line 289, in wrapped_f
    return self(f, *args, **kw)
  File "/venv/lib/python3.9/site-packages/tenacity/__init__.py", line 379, in __call__
    do = self.iter(retry_state=retry_state)
  File "/venv/lib/python3.9/site-packages/tenacity/__init__.py", line 326, in iter
    raise retry_exc from fut.exception()
tenacity.RetryError: RetryError[<Future at 0x7fbc9f4828e0 state=finished raised RateLimitError>]

@tim-gromeyer tim-gromeyer deleted the autopr/25 branch June 16, 2023 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve text to speech settings. It's far from perfect
1 participant