hi Iâm getting a network error
Traceback (most recent call last):
File â/Users/adigweleo/web-crawl-q-and-a-example/web-qa.pyâ, line 302, in
df[âembeddingsâ] = df.text.apply(lambda x: openai.Embedding.create(input=x, engine=âtext-embedding-ada-002â)[âdataâ][0][âembeddingâ])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File â/Users/adigweleo/env/lib/python3.11/site-packages/pandas/core/series.pyâ, line 4771, in apply
return SeriesApply(self, func, convert_dtype, args, kwargs).apply()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File â/Users/adigweleo/env/lib/python3.11/site-packages/pandas/core/apply.pyâ, line 1105, in apply
return self.apply_standard()
^^^^^^^^^^^^^^^^^^^^^
File â/Users/adigweleo/env/lib/python3.11/site-packages/pandas/core/apply.pyâ, line 1156, in apply_standard
mapped = lib.map_infer(
^^^^^^^^^^^^^^
File âpandas/_libs/lib.pyxâ, line 2918, in pandas._libs.lib.map_infer
File â/Users/adigweleo/web-crawl-q-and-a-example/web-qa.pyâ, line 302, in
df[âembeddingsâ] = df.text.apply(lambda x: openai.Embedding.create(input=x, engine=âtext-embedding-ada-002â)[âdataâ][0][âembeddingâ])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File â/Users/adigweleo/env/lib/python3.11/site-packages/openai/api_resources/embedding.pyâ, line 33, in create
response = super().create(args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File â/Users/adigweleo/env/lib/python3.11/site-packages/openai/api_resources/abstract/engine_api_resource.pyâ, line 153, in create
response, _, api_key = requestor.request(
^^^^^^^^^^^^^^^^^^
File â/Users/adigweleo/env/lib/python3.11/site-packages/openai/api_requestor.pyâ, line 230, in request
resp, got_stream = self._interpret_response(result, stream)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File â/Users/adigweleo/env/lib/python3.11/site-packages/openai/api_requestor.pyâ, line 624, in _interpret_response
self._interpret_response_line(
File â/Users/adigweleo/env/lib/python3.11/site-packages/openai/api_requestor.pyâ, line 687, in _interpret_response_line
raise self.handle_error_response(
openai.error.APIError: The server had an error while processing your request. Sorry about that! {
âerrorâ: {
âmessageâ: âThe server had an error while processing your request. Sorry about that!â,
âtypeâ: âserver_errorâ,
âparamâ: null,
âcodeâ: null
}
}
500 {âerrorâ: {âmessageâ: âThe server had an error while processing your request. Sorry about that!â, âtypeâ: âserver_errorâ, âparamâ: None, âcodeâ: None}} {âDateâ: âSun, 04 Feb 2024 11:00:27 GMTâ, âContent-Typeâ: âapplication/jsonâ, âContent-Lengthâ: â176â, âConnectionâ: âkeep-aliveâ, âaccess-control-allow-originâ: '', âopenai-modelâ: âtext-embedding-ada-002â, âopenai-organizationâ: âuser-pnwtj3ua6h8k5zft5z1egnmwâ, âopenai-processing-msâ: â2106â, âopenai-versionâ: â2020-10-01â, âstrict-transport-securityâ: âmax-age=15724800; includeSubDomainsâ, âx-ratelimit-limit-requestsâ: â3000â, âx-ratelimit-limit-tokensâ: â1000000â, âx-ratelimit-remaining-requestsâ: â2999â, âx-ratelimit-remaining-tokensâ: â999743â, âx-ratelimit-reset-requestsâ: â20msâ, âx-ratelimit-reset-tokensâ: â15msâ, âx-request-idâ: â27a1f21f8f7e54ef09edd0d74d123b5aâ, âCF-Cache-Statusâ: âDYNAMICâ, âServerâ: âcloudflareâ, âCF-RAYâ: â850268e7391854b7-MANâ, âalt-svcâ: âh3=â:443â; ma=86400â}
please help me