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 #1001: Add a sample text on Readme #1002

Closed
wants to merge 1 commit into from
Closed

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Aug 1, 2023

AutoPR Failure

Fixes #1001

Status

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

Error:

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/look_at_files.py", line 375, in run
    filepaths = self.get_initial_filepaths(files, context)
  File "/app/autopr/actions/look_at_files.py", line 276, in get_initial_filepaths
    response = self.rail_service.run_prompt_rail(
  File "/app/autopr/services/rail_service.py", line 355, in run_prompt_rail
    prompt = self.completions_repo.complete(
  File "/app/autopr/repos/completions_repo.py", line 84, in complete
    raise e
  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 314, in iter
    return fut.result()
  File "/usr/local/lib/python3.9/concurrent/futures/_base.py", line 439, in result
    return self.__get_result()
  File "/usr/local/lib/python3.9/concurrent/futures/_base.py", line 391, in __get_result
    raise self._exception
  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.InvalidRequestError: The model `gpt-4` does not exist or you do not have access to it. Learn more: https://help.openai.com/en/articles/7102672-how-can-i-access-gpt-4.

During handling of the above exception, another exception occurred:

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 216, in handle_event
    self.create_pull_request(event)
  File "/app/autopr/agents/plan_and_code.py", line 176, in create_pull_request
    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 195, in run_action
    self.publish_service.end_section(f"❌ Failed {action_id}")
  File "/app/autopr/services/publish_service.py", line 237, in end_section
    raise ValueError("Cannot end root section")
ValueError: Cannot end root section

Please open an issue to report this.

📖 Looking at files
💬 Asking for InitialFileSelect
Prompt
Hey, somebody just opened an issue in my repo, could you help me write a pull request?

Given context variables enclosed by +-+:

Issue:
+-+
#1001 Add a sample text on Readme

alexanmtz: Add a sample text on README.md file

Hey AutoPR!


+-+

The list of files in the repo is:
```.editorconfig (80 tokens)
.env.example (280 tokens)
.eslintignore (45 tokens)
.eslintrc (162 tokens)
.gitignore (459 tokens)
.sequelizerc (100 tokens)
.travis.yml (87 tokens)
CONTRIBUTING.md (824 tokens)
ISSUE_TEMPLATE.md (195 tokens)
LICENSE.md (3660 tokens)
PITCHME.md (780 tokens)
Procfile (5 tokens)
README.md (3480 tokens)
app.json (499 tokens)
cron.js (2203 tokens)
crowdin.yml (173 tokens)
deploy-ghpages.sh (529 tokens)
docker-compose-linux.yml (238 tokens)
docker-compose.test.yml (183 tokens)
docker-compose.yml (276 tokens)
migrate.js (2850 tokens)
package-lock.json (758282 tokens)
package.json (2418 tokens)
pull_request_template.md (113 tokens)
reports.js (1407 tokens)
scripts.js (4098 tokens)
server.js (619 tokens)
.circleci/config.yml (1359 tokens)
.vscode/launch.json (160 tokens)
.vscode/settings.json (17 tokens)
config/config.json (199 tokens)
config/passport.js (6926 tokens)
config/secrets.js (674 tokens)
frontend/.babelrc (279 tokens)
frontend/.mocharc.yaml (10 tokens)
frontend/README.md (1440 tokens)
frontend/package-lock.json (1582282 tokens)
frontend/package.json (2992 tokens)
frontend/sitemap-builder.js (186 tokens)
frontend/sitemap.xml (544 tokens)
frontend/stripe-v3.js (59570 tokens)
frontend/translation.js (178 tokens)
frontend/tsconfig.json (152 tokens)
frontend/webpack.config.js (1246 tokens)
frontend/webpack.config.prod.js (1284 tokens)
locales/br.json (5548 tokens)
locales/en.json (6472 tokens)
models/assign.js (170 tokens)
models/coupon.js (213 tokens)
models/history.js (255 tokens)
models/index.js (572 tokens)
models/label.js (154 tokens)
models/member.js (203 tokens)
models/offer.js (178 tokens)
models/order.js (559 tokens)
models/organization.js (256 tokens)
models/plan.js (463 tokens)
models/project.js (213 tokens)
models/role.js (61 tokens)
models/task.js (1515 tokens)
models/taskSolution.js (330 tokens)
models/type.js (112 tokens)
models/user.js (629 tokens)
modules/authenticationHelpers.js (658 tokens)
modules/projectHelpers.js (460 tokens)
test/authenticate.sequelize.test.js (136 tokens)
test/contact.test.js (452 tokens)
test/cron.test.js (3973 tokens)
test/email.test.js (3665 tokens)
test/info.test.js (1705 tokens)
test/order.test.js (6182 tokens)
test/organization.test.js (1306 tokens)
test/project.test.js (503 tokens)
test/scripts.test.js (1638 tokens)
test/task.test.js (16664 tokens)
test/user.test.js (7893 tokens)
test/webhook.test.js (15984 tokens)
.github/workflows/autopr.yml (419 tokens)
.github/workflows/chatgpt-code-generation.yml (266 tokens)
frontend/.storybook/main.js (140 tokens)
frontend/.storybook/preview.js (79 tokens)
frontend/src/consts.js (3003 tokens)
frontend/src/index.d.ts (8 tokens)
frontend/src/index.html (385 tokens)
frontend/src/index.js (54 tokens)
locales/result/br.json (8514 tokens)
locales/result/en.json (6509 tokens)
migration/migrations/20170430212022-create-user.js (310 tokens)
migration/migrations/20180306212049-users.js (127 tokens)
migration/migrations/20180314193229-add-website-to-user.js (129 tokens)
migration/migrations/20180314204119-add-username-to-user.js (127 tokens)
migration/migrations/20180314205257-add-repos-to-user.js (129 tokens)
migration/migrations/20180314210833-add-picture-url-to-user.js (131 tokens)
migration/migrations/20180318174217-add-provider-to-user.js (129 tokens)
migration/migrations/20180404200305-create-task.js (616 tokens)
migration/migrations/20180422180804-create-order.js (818 tokens)
migration/migrations/20180505094828-task_order.js (457 tokens)
migration/migrations/20180511130542-add-customer-to-user.js (133 tokens)
migration/migrations/20180524213355-add-account-to-user.js (131 tokens)
migration/migrations/20180526160654-create-assign.js (445 tokens)
migration/migrations/20180606135249-add-assigned-to-task.js (215 tokens)
migration/migrations/20180610112853-add-transfer-to-task.js (133 tokens)
migration/migrations/20180626131108-add-title-to-task.js (129 tokens)
migration/migrations/20180626132835-add-repourl-to-user.js (131 tokens)
migration/migrations/20180701191416-add-provider-to-order.js (131 tokens)
migration/migrations/20180703154101-add-payment-url-to-order.js (133 tokens)
migration/migrations/20180703154147-add-payer-id-to-order.js (133 tokens)
migration/migrations/20180703190806-add-token-to-order.js (129 tokens)
migration/migrations/20180707140456-add-transfer-to-order.js (133 tokens)
migration/migrations/20180707141413-add-paypal-to-user.js (133 tokens)
migration/migrations/20180930180435-add-language-to-user.js (127 tokens)
migration/migrations/20180930181704-add-country-to-user.js (127 tokens)
migration/migrations/20181227152503-create-offer.js (590 tokens)
migration/migrations/20190116200530-add-mailflag-to-task.js (131 tokens)
migration/migrations/20190118000202-add-os-to-users.js (127 tokens)
migration/migrations/20190118000217-add-languages-to-user.js (129 tokens)
migration/migrations/20190118000224-add-skills-to-user.js (129 tokens)
migration/migrations/20190118000232-add-receive-notifications-to-user.js (135 tokens)
migration/migrations/20190325193202-role.js (312 tokens)
migration/migrations/20190325193646-member.js (539 tokens)
migration/migrations/20190328210733-add-status-to-assigns.js (131 tokens)
migration/migrations/20190424115813-add-open-for-jobs-to-users.js (135 tokens)
migration/migrations/20190523201059-create-organization.js (750 tokens)
migration/migrations/20190924125939-create-task-history.js (497 tokens)
migration/migrations/20191015182526-add-authorization-id-to-order.js (135 tokens)
migration/migrations/20200317183859-Label.js (279 tokens)
migration/migrations/20200318231424-TaskLabel.js (385 tokens)
migration/migrations/20200323014820-create-plan.js (376 tokens)
migration/migrations/20200422012929-add-message-to-assign.js (131 tokens)
migration/migrations/20200707091140-add-transfer_group-to-order.js (133 tokens)
migration/migrations/20200822085416-addProviderUsernameToUser.js (133 tokens)
migration/migrations/20201217162421-create-project.js (378 tokens)
migration/migrations/20201217171700-create-projects-tasks.js (402 tokens)
migration/migrations/20201217203513-add-projectId-to-task.js (214 tokens)
migration/migrations/20201218184508-add-organizations-projects.js (432 tokens)
migration/migrations/20201218194527-add-organizationId-to-project.js (216 tokens)
migration/migrations/20210102201731-create-types.js (354 tokens)
migration/migrations/20210102211604-add-type-to-user.js (444 tokens)
migration/migrations/20210122093719-add-prviate-to-task.js (130 tokens)
migration/migrations/20210202164305-add-description-to-task.js (127 tokens)
migration/migrations/20210405203758-change-order-source-not-unique.js (143 tokens)
migration/migrations/20210501233027-TaskSolution.js (747 tokens)
migration/migrations/20210527014928-coupon.js (435 tokens)
migration/migrations/20210605214301-add-coupon-to-order.js (202 tokens)
migration/migrations/20220404015828-add-active-to-user.js (143 tokens)
migration/migrations/20220412120201-change-offer-comment-char-limit.js (145 tokens)
migration/migrations/20230501125111-add-recover-password-token-to-user.js (268 tokens)
migration/migrations/20230627191129-add-activation-token-to-user.js (262 tokens)
migration/migrations/20230628100256-add-email-verified-to-user.js (282 tokens)
migration/seeders/20190326142803-roles.js (470 tokens)
migration/seeders/20190625021603-generate_users.js (618 tokens)
migration/seeders/20190625021614-generate_tasks.js (656 tokens)
migration/seeders/20210102213618-create-user-types.js (363 tokens)
migration/seeders/20210602015833-generate-coupon.js (206 tokens)
modules/app/index.js (371 tokens)
modules/assigns/assignExists.js (194 tokens)
modules/assigns/index.js (30 tokens)
modules/bot/bountyClosedNotPaidComment.js (497 tokens)
modules/bot/comment.js (378 tokens)
modules/bot/issueAddedComment.js (915 tokens)
modules/contact/contactRecruiters.js (59 tokens)
modules/contact/index.js (32 tokens)
modules/coupon/index.js (33 tokens)
modules/coupon/processCouponUsage.js (191 tokens)
modules/coupon/validateCoupon.js (258 tokens)
modules/mail/assign.js (3152 tokens)
modules/mail/constants.js (300 tokens)
modules/mail/contact.js (363 tokens)
modules/mail/content.js (1177 tokens)
modules/mail/deadline.js (2789 tokens)
modules/mail/handleError.js (118 tokens)
modules/mail/handleResponse.js (87 tokens)
modules/mail/issueClosed.js (519 tokens)
modules/mail/mail.js (437 tokens)
modules/mail/payment.js (1659 tokens)
modules/mail/request.js (1158 tokens)
modules/mail/status.js (728 tokens)
modules/mail/task.js (3175 tokens)
modules/mail/template.js (361 tokens)
modules/mail/transfer.js (1653 tokens)
modules/mail/user.js (298 tokens)
modules/members/index.js (29 tokens)
modules/members/memberExists.js (197 tokens)
modules/offers/index.js (29 tokens)
modules/offers/offerExists.js (191 tokens)
modules/orders/index.js (197 tokens)
modules/orders/orderBuilds.js (2334 tokens)
modules/orders/orderCancel.js (1395 tokens)
modules/orders/orderDetails.js (863 tokens)
modules/orders/orderExists.js (171 tokens)
modules/orders/orderFetch.js (214 tokens)
modules/orders/orderPayment.js (1354 tokens)
modules/orders/orderRefund.js (1889 tokens)
modules/orders/orderSearch.js (360 tokens)
modules/orders/orderTransfer.js (693 tokens)
modules/orders/orderUpdate.js (1317 tokens)
modules/orders/orderUpdateAfterStripe.js (442 tokens)
modules/organizations/index.js (87 tokens)
modules/organizations/organizationBuilds.js (147 tokens)
modules/organizations/organizationFetch.js (230 tokens)
modules/organizations/organizationList.js (212 tokens)
modules/organizations/organizationUpdate.js (200 tokens)
modules/projects/index.js (46 tokens)
modules/projects/projectFetch.js (236 tokens)
modules/projects/projectList.js (194 tokens)
modules/roles/index.js (29 tokens)
modules/roles/roleExists.js (178 tokens)
modules/tasks/index.js (428 tokens)
modules/tasks/removeAssignedUser.js (855 tokens)
modules/tasks/requestAssignedUser.js (1236 tokens)
modules/tasks/taskBuilds.js (2150 tokens)
modules/tasks/taskClaim.js (866 tokens)
modules/tasks/taskDeleteById.js (286 tokens)
modules/tasks/taskDeleteConfirmation.js (386 tokens)
modules/tasks/taskExists.js (171 tokens)
modules/tasks/taskFetch.js (5041 tokens)
modules/tasks/taskFunding.js (399 tokens)
modules/tasks/taskInvite.js (379 tokens)
modules/tasks/taskMessage.js (290 tokens)
modules/tasks/taskMessageAuthor.js (212 tokens)
modules/tasks/taskPayment.js (1055 tokens)
modules/tasks/taskReport.js (486 tokens)
modules/tasks/taskSearch.js (670 tokens)
modules/tasks/taskSolutionCreate.js (575 tokens)
modules/tasks/taskSolutionFetchData.js (982 tokens)
modules/tasks/taskSolutionGet.js (173 tokens)
modules/tasks/taskSolutionUpdate.js (689 tokens)
modules/tasks/taskSync.js (644 tokens)
modules/tasks/taskTransfer.js (597 tokens)
modules/tasks/taskUpdate.js (4295 tokens)
modules/team/index.js (32 tokens)
modules/team/requestJoinCoreTeam.js (122 tokens)
modules/types/index.js (29 tokens)
modules/types/typeSearch.js (139 tokens)
modules/users/index.js (353 tokens)
modules/users/userAccount.js (298 tokens)
modules/users/userAccountCreate.js (509 tokens)
modules/users/userAccountUpdate.js (343 tokens)
modules/users/userBankAccount.js (279 tokens)
modules/users/userBankAccountCreate.js (786 tokens)
modules/users/userBuilds.js (374 tokens)
modules/users/userCustomer.js (344 tokens)
modules/users/userDeleteById.js (504 tokens)
modules/users/userExists.js (570 tokens)
modules/users/userOrganizations.js (738 tokens)
modules/users/userPreferences.js (367 tokens)
modules/users/userSearch.js (447 tokens)
modules/users/userTasks.js (747 tokens)
modules/users/userTypes.js (220 tokens)
modules/users/userUpdate.js (484 tokens)
modules/webhooks/chargeSucceeded.js (1013 tokens)
test/data/account.json (1385 tokens)
test/data/balance.js (810 tokens)
test/data/card.js (459 tokens)
test/data/charge.js (4007 tokens)
test/data/github.auth.token.js (55 tokens)
test/data/github.event.main.js (444 tokens)
test/data/github.issue.create.js (7444 tokens)
test/data/github.issue.labeled.js (7445 tokens)
test/data/github.org.json (314 tokens)
test/data/payout.js (1594 tokens)
test/data/refund.js (2385 tokens)
test/data/stripe.invoice.create.js (2935 tokens)
test/data/stripe.invoice.paid.js (3367 tokens)
test/data/stripe.invoice.update.js (2919 tokens)
test/data/transfer.js (591 tokens)
test/helpers/index.js (265 tokens)
frontend/src/actions/assignActions.js (1851 tokens)
frontend/src/actions/contactActions.js (527 tokens)
frontend/src/actions/couponActions.js (727 tokens)
frontend/src/actions/infoActions.js (344 tokens)
frontend/src/actions/loginActions.js (2246 tokens)
frontend/src/actions/notificationActions.js (278 tokens)
frontend/src/actions/orderActions.js (4242 tokens)
frontend/src/actions/organizationsActions.js (2743 tokens)
frontend/src/actions/preferencesActions.js (596 tokens)
frontend/src/actions/profileActions.js (464 tokens)
frontend/src/actions/projectActions.js (1251 tokens)
frontend/src/actions/taskActions.js (9141 tokens)
frontend/src/actions/taskSolutionActions.js (2493 tokens)
frontend/src/actions/teamActions.js (531 tokens)
frontend/src/actions/userActions.js (4712 tokens)
frontend/src/actions/userRoleActions.js (1772 tokens)
frontend/src/auth/auth.js (884 tokens)
frontend/src/components/FourOFour.js (616 tokens)
frontend/src/components/transition.js (55 tokens)
frontend/src/containers/account-activation.ts (106 tokens)
frontend/src/containers/account-details.js (355 tokens)
frontend/src/containers/account.js (328 tokens)
frontend/src/containers/checkout-form.js (157 tokens)
frontend/src/containers/contact-recruiter-form.js (161 tokens)
frontend/src/containers/home.js (177 tokens)
frontend/src/containers/info.js (175 tokens)
frontend/src/containers/login-form.js (187 tokens)
frontend/src/containers/login-page.js (148 tokens)
frontend/src/containers/notification.js (172 tokens)
frontend/src/containers/organization-list.js (162 tokens)
frontend/src/containers/payments.js (481 tokens)
frontend/src/containers/profile-head.js (142 tokens)
frontend/src/containers/profile.js (742 tokens)
frontend/src/containers/project-list.js (351 tokens)
frontend/src/containers/recover-password.js (206 tokens)
frontend/src/containers/send-solution-dialog.js (365 tokens)
frontend/src/containers/task-explorer.js (125 tokens)
frontend/src/containers/task-list-user.js (222 tokens)
frontend/src/containers/task-list.js (407 tokens)
frontend/src/containers/task-orders.js (217 tokens)
frontend/src/containers/task.js (1097 tokens)
frontend/src/containers/team.js (133 tokens)
frontend/src/containers/topbar.js (496 tokens)
frontend/src/containers/user-account.js (357 tokens)
frontend/src/containers/user-organization-tree.js (211 tokens)
frontend/src/containers/user-roles.js (324 tokens)
frontend/src/containers/user-tasks.js (271 tokens)
frontend/src/containers/welcome.js (178 tokens)
frontend/src/images/credit-card-icon.svg (410 tokens)
frontend/src/main/app.css (146 tokens)
frontend/src/main/app.js (1100 tokens)
frontend/src/main/authOrApp.js (54 tokens)
frontend/src/main/cookie-consent-bar.tsx (795 tokens)
frontend/src/main/routes-sitemap.js (215 tokens)
frontend/src/main/routes.js (1420 tokens)
frontend/src/modules/auth.js (384 tokens)
frontend/src/reducers/accountReducer.js (867 tokens)
frontend/src/reducers/contactReducer.js (220 tokens)
frontend/src/reducers/couponReducer.js (255 tokens)
frontend/src/reducers/infoReducer.js (200 tokens)
frontend/src/reducers/loginReducer.js (544 tokens)
frontend/src/reducers/notificationReducer.js (276 tokens)
frontend/src/reducers/orderReducer.js (1132 tokens)
frontend/src/reducers/organizationsReducer.js (902 tokens)
frontend/src/reducers/preferencesReducer.js (308 tokens)
frontend/src/reducers/profileReducer.js (227 tokens)
frontend/src/reducers/projectReducer.js (403 tokens)
frontend/src/reducers/reducers.js (367 tokens)
frontend/src/reducers/taskReducer.js (2716 tokens)
frontend/src/reducers/taskSolutionReducer.js (500 tokens)
frontend/src/reducers/teamReducer.js (187 tokens)
frontend/src/reducers/userRoleReducer.js (215 tokens)
frontend/src/selectors/task.js (315 tokens)
frontend/src/selectors/tasks.js (1257 tokens)
frontend/src/stories/Button.jsx (378 tokens)
frontend/src/stories/Button.stories.jsx (314 tokens)
frontend/src/stories/Header.jsx (885 tokens)
frontend/src/stories/Header.stories.jsx (165 tokens)
frontend/src/stories/Introduction.stories.mdx (2290 tokens)
frontend/src/stories/Page.jsx (1274 tokens)
frontend/src/stories/Page.stories.jsx (236 tokens)
frontend/src/stories/button.css (257 tokens)
frontend/src/stories/header.css (225 tokens)
frontend/src/stories/page.css (452 tokens)
frontend/src/styleguide/media.js (288 tokens)
frontend/src/translations/br.json (13885 tokens)
frontend/src/translations/en.json (12651 tokens)
frontend/tests/actions/actions.test.js (4410 tokens)
frontend/tests/components/cardTeam.test.js (228 tokens)
frontend/tests/components/checkout.test.js (779 tokens)
frontend/tests/components/messageAuthor.test.js (574 tokens)
frontend/tests/reducers/reducers.test.js (707 tokens)
modules/app/controllers/auth.js (3604 tokens)
modules/app/controllers/contact.js (143 tokens)
modules/app/controllers/coupon.js (121 tokens)
modules/app/controllers/info.js (560 tokens)
modules/app/controllers/order.js (1431 tokens)
modules/app/controllers/organization.js (490 tokens)
modules/app/controllers/project.js (235 tokens)
modules/app/controllers/task.js (2097 tokens)
modules/app/controllers/taskSolution.js (627 tokens)
modules/app/controllers/team.js (144 tokens)
modules/app/controllers/type.js (133 tokens)
modules/app/controllers/webhook.js (14195 tokens)
modules/app/routes/auth.js (1064 tokens)
modules/app/routes/contact.js (57 tokens)
modules/app/routes/coupon.js (87 tokens)
modules/app/routes/info.js (69 tokens)
modules/app/routes/orders.js (228 tokens)
modules/app/routes/organization.js (147 tokens)
modules/app/routes/projects.js (82 tokens)
modules/app/routes/secure.js (278 tokens)
modules/app/routes/taskSolutions.js (131 tokens)
modules/app/routes/tasks.js (384 tokens)
modules/app/routes/team.js (57 tokens)
modules/app/routes/types.js (63 tokens)
modules/app/routes/webhooks.js (66 tokens)
modules/mail/templates/user-account-activation.ts (27493 tokens)
frontend/src/actions/helpers/index.js (72 tokens)
frontend/src/actions/messages/messages.js (3573 tokens)
frontend/src/common/form/inputAuth.js (275 tokens)
frontend/src/common/operator/if.js (42 tokens)
frontend/src/components/Cards/PaymentHeaderCard.jsx (1747 tokens)
frontend/src/components/Cards/RegularCard.jsx (649 tokens)
frontend/src/components/Cards/StatsCard.jsx (1082 tokens)
frontend/src/components/Cards/TeamCard.js (1403 tokens)
frontend/src/components/Stats/CurrentMonthStats.js (741 tokens)
frontend/src/components/Stats/InformationCard.js (342 tokens)
frontend/src/components/Stats/StackData.js (1087 tokens)
frontend/src/components/Stats/Stats-main-page.js (733 tokens)
frontend/src/components/Stats/top-dashboard.js (834 tokens)
frontend/src/components/Table/Table.jsx (1012 tokens)
frontend/src/components/Tabs/TabContainer.js (117 tokens)
frontend/src/components/bottom/FooterStyles.js (250 tokens)
frontend/src/components/bottom/GithubCard.tsx (418 tokens)
frontend/src/components/bottom/SlackCard.tsx (628 tokens)
frontend/src/components/bottom/bottom.js (4427 tokens)
frontend/src/components/checkout/address-section.js (65 tokens)
frontend/src/components/checkout/card-section.js (332 tokens)
frontend/src/components/checkout/checkout-form.js (3398 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.

⚠️⚠️⚠️ Your OpenAI API key does not have access to the gpt-4 model. Please note that ChatGPT Plus does not give you access to the gpt-4 API; you need to sign up on the GPT-4 API waitlist.

Error
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/look_at_files.py", line 375, in run
    filepaths = self.get_initial_filepaths(files, context)
  File "/app/autopr/actions/look_at_files.py", line 276, in get_initial_filepaths
    response = self.rail_service.run_prompt_rail(
  File "/app/autopr/services/rail_service.py", line 355, in run_prompt_rail
    prompt = self.completions_repo.complete(
  File "/app/autopr/repos/completions_repo.py", line 84, in complete
    raise e
  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 314, in iter
    return fut.result()
  File "/usr/local/lib/python3.9/concurrent/futures/_base.py", line 439, in result
    return self.__get_result()
  File "/usr/local/lib/python3.9/concurrent/futures/_base.py", line 391, in __get_result
    raise self._exception
  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.InvalidRequestError: The model `gpt-4` does not exist or you do not have access to it. Learn more: https://help.openai.com/en/articles/7102672-how-can-i-access-gpt-4.

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.

Add a sample text on Readme
1 participant