PermissionDeniedError: <!DOCTYPE html><!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en-US"> <![endif]--><!--[if IE 7]> <html class="no-js ie7 oldie" lang="en-US"> <![endif]--><!--[if IE 8]> <html class="no-js ie8 oldie" lang="en-US"> <![endif]--><!--[if gt IE 8]><!--><htmlclass="no-js"lang="en-US"><!--<![endif]--><head><title>Attention Required! | Cloudflare</title><metacharset="UTF-8"/><metahttp-equiv="Content-Type"content="text/html; charset=UTF-8"/><metahttp-equiv="X-UA-Compatible"content="IE=Edge"/><metaname="robots"content="noindex, nofollow"/><metaname="viewport"content="width=device-width,initial-scale=1"/><linkrel="stylesheet"id="cf_styles-css"href="/cdn-cgi/styles/cf.errors.css"/><!--[if lt IE 9]><link rel="stylesheet" id='cf_styles-ie-css' href="/cdn-cgi/styles/cf.errors.ie.css" /><![endif]--><style>body{margin:0;padding:0}</style><!--[if gte IE 10]><!--><script>if(!navigator.cookieEnabled){ window.addEventListener('DOMContentLoaded',function(){var cookieEl = document.getElementById('cookie-alert'); cookieEl.style.display ='block';})}</script><!--<![endif]--></head><body><divid="cf-wrapper"><divclass="cf-alert cf-alert-error cf-cookie-error"id="cookie-alert"data-translate="enable_cookies">Please enable cookies.</div><divid="cf-error-details"class="cf-error-details-wrapper"><divclass="cf-wrapper cf-header cf-error-overview"><h1data-translate="block_headline">Sorry, you have been blocked</h1><h2class="cf-subheadline"><spandata-translate="unable_to_access">You are unable to access</span> api.openai.com</h2></div><!-- /.header --><divclass="cf-section cf-highlight"><divclass="cf-wrapper"><divclass="cf-screenshot-container cf-screenshot-full"><spanclass="cf-no-screenshot error"></span></div></div></div><!-- /.captcha-container --><divclass="cf-section cf-wrapper"><divclass="cf-columns two"><divclass="cf-column"><h2data-translate="blocked_why_headline">Why have I been blocked?</h2><pdata-translate="blocked_why_detail">This website is using a security service to protect itself from online attacks. The action you just performed triggered the security solution. There are several actions that could trigger this block including submitting a certain word or phrase, a SQL command or malformed data.</p></div><divclass="cf-column"><h2data-translate="blocked_resolve_headline">What can I do to resolve this?</h2><pdata-translate="blocked_resolve_detail">You can email the site owner to let them know you were blocked. Please include what you were doing when this page came up and the Cloudflare Ray ID found at the bottom of this page.</p></div></div></div><!-- /.section --><divclass="cf-error-footer cf-wrapper w-240 lg:w-full py-10 sm:py-4 sm:px-8 mx-auto text-center sm:text-left border-solid border-0 border-t border-gray-300"><pclass="text-13"><spanclass="cf-footer-item sm:block sm:mb-1">Cloudflare Ray ID: <strongclass="font-semibold">835f7536ee2a73af</strong></span><spanclass="cf-footer-separator sm:hidden">•</span><spanid="cf-footer-item-ip"class="cf-footer-item hidden sm:block sm:mb-1"> Your IP: <buttontype="button"id="cf-footer-ip-reveal"class="cf-footer-ip-reveal-btn">Click to reveal</button><spanclass="hidden"id="cf-footer-ip">185.163.218.120</span><spanclass="cf-footer-separator sm:hidden">•</span></span><spanclass="cf-footer-item sm:block sm:mb-1"><span>Performance & security by</span><arel="noopener noreferrer"href="https://www.cloudflare.com/5xx-error-landing"id="brand_link"target="_blank">Cloudflare</a></span></p><script>(function(){function d(){var b=a.getElementById("cf-footer-item-ip"),c=a.getElementById("cf-footer-ip-reveal");b&&"classList"in b&&(b.classList.remove("hidden"),c.addEventListener("click",function(){c.classList.add("hidden");a.getElementById("cf-footer-ip").classList.remove("hidden")}))}var a=document;document.addEventListener&&a.addEventListener("DOMContentLoaded",d)})();</script></div><!-- /.error-footer --></div><!-- /#cf-error-details --></div><!-- /#cf-wrapper --><script> window._cf_translation ={};</script></body></html>
Traceback:
File "C:\Users\DELL\AppData\Local\Programs\Python\Python312\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 534, in _run_script
exec(code, module.__dict__)
File "C:\Users\DELL\Desktop\AI-Tools-Pydantic-Instructor-main\ui.py", line 37, in <module>
main()
File "C:\Users\DELL\Desktop\AI-Tools-Pydantic-Instructor-main\ui.py", line 25, in main
result = structured_generator(openai_model, prompt, Titles)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\DELL\Desktop\AI-Tools-Pydantic-Instructor-main\helpers.py", line 23, in structured_generator
result : custom_moel = open_ai_client.chat.completions.create(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\DELL\AppData\Local\Programs\Python\Python312\Lib\site-packages\instructor\patch.py", line 260, in new_chatcompletion_sync
response = retry_sync(
^^^^^^^^^^^
File "C:\Users\DELL\AppData\Local\Programs\Python\Python312\Lib\site-packages\instructor\patch.py", line 186, in retry_sync
response = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\DELL\AppData\Local\Programs\Python\Python312\Lib\site-packages\openai\_utils\_utils.py", line 303, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\DELL\AppData\Local\Programs\Python\Python312\Lib\site-packages\openai\resources\chat\completions.py", line 598, in create
return self._post(
^^^^^^^^^^^
File "C:\Users\DELL\AppData\Local\Programs\Python\Python312\Lib\site-packages\openai\_base_client.py", line 1088, in post
return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\DELL\AppData\Local\Programs\Python\Python312\Lib\site-packages\openai\_base_client.py", line 853, in request
return self._request(
^^^^^^^^^^^^^^
File "C:\Users\DELL\AppData\Local\Programs\Python\Python312\Lib\site-packages\openai\_base_client.py", line 930, in _request
raise self._make_status_error_from_response(err.response) from None
السؤال
Waleed Alomar
السلام عليكم
لدي مشكلة في هذا المشروع عند كتابة الامر
يظهر لي هذا الخطا
كما في الصورة
وهذا ملف المشروع ايصا
AI-Tools-Pydantic-Instructor-main.rar
2 أجوبة على هذا السؤال
Recommended Posts
انضم إلى النقاش
يمكنك أن تنشر الآن وتسجل لاحقًا. إذا كان لديك حساب، فسجل الدخول الآن لتنشر باسم حسابك.