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

OpenAI version is compatible报错 #46

Open
LTtt456c opened this issue Apr 10, 2024 · 1 comment
Open

OpenAI version is compatible报错 #46

LTtt456c opened this issue Apr 10, 2024 · 1 comment

Comments

@LTtt456c
Copy link

OpenAI version is compatible.
Traceback (most recent call last):
File "D:\Code\python\auto_job__find__chatgpt__rpa\auto_job_find\write_response.py", line 188, in
vectorstore = get_vectorstore(chunks)
File "D:\Code\python\auto_job__find__chatgpt__rpa\auto_job_find\langchain_functions.py", line 54, in get_vectorstore
vectorstore = FAISS.from_texts(texts=text_chunks, embedding=embeddings)
File "D:\Program Files\Python310\lib\site-packages\langchain_community\vectorstores\faiss.py", line 959, in from_texts
embeddings = embedding.embed_documents(texts)
File "D:\Program Files\Python310\lib\site-packages\langchain_community\embeddings\openai.py", line 668, in embed_documents
return self._get_len_safe_embeddings(texts, engine=engine)
File "D:\Program Files\Python310\lib\site-packages\langchain_community\embeddings\openai.py", line 494, in _get_len_safe_embeddings
response = embed_with_retry(
File "D:\Program Files\Python310\lib\site-packages\langchain_community\embeddings\openai.py", line 116, in embed_with_retry
return embeddings.client.create(**kwargs)
File "D:\Program Files\Python310\lib\site-packages\openai\resources\embeddings.py", line 106, in create
return self._post(
File "D:\Program Files\Python310\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 "D:\Program Files\Python310\lib\site-packages\openai_base_client.py", line 853, in request
return self._request(
File "D:\Program Files\Python310\lib\site-packages\openai_base_client.py", line 930, in _request
raise self._make_status_error_from_response(err.response) from None
openai.NotFoundError:

<title>404 Not Found</title>

404 Not Found


nginx
@LTtt456c
Copy link
Author

GPT的key是第三方的免费的,env地址设置的是 OPENAI_BASE_URL=https://api.chatanywhere.com.cn

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

No branches or pull requests

1 participant