You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pygame 2.1.3 (SDL 2.0.22, Python 3.10.8)
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
File "E:\Fay-fay-agent-edition\main.py", line 10, in
from gui import flask_server
File "E:\Fay-fay-agent-edition\gui\flask_server.py", line 9, in
import fay_booter
File "E:\Fay-fay-agent-edition\fay_booter.py", line 5, in
from core.fay_core import FeiFei
File "E:\Fay-fay-agent-edition\core\fay_core.py", line 24, in
from agent import agent_service
File "E:\Fay-fay-agent-edition\agent\agent_service.py", line 12, in
agent = FayAgentCore()
File "E:\Fay-fay-agent-edition\agent\fay_agent.py", line 60, in init
self.agent_memory.save_context({"input": "我的基本信息是?"}, {"output": attr_info})
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\memory\vectorstore.py", line 73, in save_context
self.retriever.add_documents(documents)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\schema\vectorstore.py", line 697, in add_documents
return self.vectorstore.add_documents(documents, **kwargs)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\schema\vectorstore.py", line 122, in add_documents
return self.add_texts(texts, metadatas, **kwargs)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\vectorstores\faiss.py", line 223, in add_texts
embeddings = self._embed_documents(texts)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\vectorstores\faiss.py", line 135, in _embed_documents
return self.embedding_function.embed_documents(texts)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\embeddings\openai.py", line 555, in embed_documents
return self._get_len_safe_embeddings(texts, engine=engine)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\embeddings\openai.py", line 431, in _get_len_safe_embeddings
response = embed_with_retry(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\embeddings\openai.py", line 106, in embed_with_retry
return embeddings.client.create(**kwargs)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\openai\resources\embeddings.py", line 113, in create
return self._post(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\openai_base_client.py", line 1213, in post
return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\openai_base_client.py", line 902, in request
return self._request(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\openai_base_client.py", line 995, in _request
return self._process_response(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\openai_base_client.py", line 1089, in _process_response
return api_response.parse()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\openai_response.py", line 309, in parse
parsed = self._options.post_parser(parsed)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\openai\resources\embeddings.py", line 101, in parser
for embedding in obj.data:
AttributeError: 'int' object has no attribute 'data'
The text was updated successfully, but these errors were encountered:
eyumu
changed the title
AttributeError: 'int' object has no attribute 'data'
启动报错 AttributeError: 'int' object has no attribute 'data'
Apr 15, 2024
pygame 2.1.3 (SDL 2.0.22, Python 3.10.8)
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
File "E:\Fay-fay-agent-edition\main.py", line 10, in
from gui import flask_server
File "E:\Fay-fay-agent-edition\gui\flask_server.py", line 9, in
import fay_booter
File "E:\Fay-fay-agent-edition\fay_booter.py", line 5, in
from core.fay_core import FeiFei
File "E:\Fay-fay-agent-edition\core\fay_core.py", line 24, in
from agent import agent_service
File "E:\Fay-fay-agent-edition\agent\agent_service.py", line 12, in
agent = FayAgentCore()
File "E:\Fay-fay-agent-edition\agent\fay_agent.py", line 60, in init
self.agent_memory.save_context({"input": "我的基本信息是?"}, {"output": attr_info})
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\memory\vectorstore.py", line 73, in save_context
self.retriever.add_documents(documents)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\schema\vectorstore.py", line 697, in add_documents
return self.vectorstore.add_documents(documents, **kwargs)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\schema\vectorstore.py", line 122, in add_documents
return self.add_texts(texts, metadatas, **kwargs)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\vectorstores\faiss.py", line 223, in add_texts
embeddings = self._embed_documents(texts)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\vectorstores\faiss.py", line 135, in _embed_documents
return self.embedding_function.embed_documents(texts)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\embeddings\openai.py", line 555, in embed_documents
return self._get_len_safe_embeddings(texts, engine=engine)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\embeddings\openai.py", line 431, in _get_len_safe_embeddings
response = embed_with_retry(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\embeddings\openai.py", line 106, in embed_with_retry
return embeddings.client.create(**kwargs)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\openai\resources\embeddings.py", line 113, in create
return self._post(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\openai_base_client.py", line 1213, in post
return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\openai_base_client.py", line 902, in request
return self._request(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\openai_base_client.py", line 995, in _request
return self._process_response(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\openai_base_client.py", line 1089, in _process_response
return api_response.parse()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\openai_response.py", line 309, in parse
parsed = self._options.post_parser(parsed)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\openai\resources\embeddings.py", line 101, in parser
for embedding in obj.data:
AttributeError: 'int' object has no attribute 'data'
The text was updated successfully, but these errors were encountered: