forked from joonspk-research/genagents
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPasted-Traceback-most-recent-call-last-File-home-runner-genagentsVishwas-main-py-line-35-in-mod-1734446019424.txt
40 lines (39 loc) · 2.63 KB
/
Pasted-Traceback-most-recent-call-last-File-home-runner-genagentsVishwas-main-py-line-35-in-mod-1734446019424.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Traceback (most recent call last):
File "/home/runner/genagentsVishwas/main.py", line 35, in <module>
conversation.start()
File "/home/runner/genagentsVishwas/main.py", line 23, in start
agent_response = self.agent.utterance(self.conversation_history)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/genagentsVishwas/genagents/genagents.py", line 135, in utterance
ret = utterance(self, curr_dialogue, context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/genagentsVishwas/genagents/modules/interaction.py", line 184, in utterance
agent_desc = _utterance_agent_desc(agent, anchor)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/genagentsVishwas/genagents/modules/interaction.py", line 36, in _utterance_agent_desc
retrieved = agent.memory_stream.retrieve([anchor], 0, n_count=120)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/genagentsVishwas/genagents/modules/memory_stream.py", line 387, in retrieve
x = extract_relevance(curr_nodes, self.embeddings, focal_pt)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/genagentsVishwas/genagents/modules/memory_stream.py", line 265, in extract_relevance
focal_embedding = get_text_embedding(focal_pt)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/genagentsVishwas/simulation_engine/gpt_structure.py", line 162, in get_text_embedding
response = openai.embeddings.create(
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/genagentsVishwas/.pythonlibs/lib/python3.12/site-packages/openai/_utils/_proxy.py", line 25, in __getattr__
proxied = self.__get_proxied__()
^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/genagentsVishwas/.pythonlibs/lib/python3.12/site-packages/openai/_utils/_proxy.py", line 61, in __get_proxied__
return self.__load__()
^^^^^^^^^^^^^^^
File "/home/runner/genagentsVishwas/.pythonlibs/lib/python3.12/site-packages/openai/_module_client.py", line 54, in __load__
return _load_client().embeddings
^^^^^^^^^^^^^^
File "/home/runner/genagentsVishwas/.pythonlibs/lib/python3.12/site-packages/openai/__init__.py", line 305, in _load_client
_client = _ModuleClient(
^^^^^^^^^^^^^^
File "/home/runner/genagentsVishwas/.pythonlibs/lib/python3.12/site-packages/openai/_client.py", line 92, in __init__
raise OpenAIError(
openai.OpenAIError: The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable