import os
os.environ["OPENAI_API_KEY"] = "THE KEY"
from langchain_experimental.agents.agent_toolkits import create_csv_agent
from langchain_openai import ChatOpenAI
llm = ChatOpenAI(temperature=0.1)
agent_executer = create_csv_agent(llm, '/kaggle/working/book.csv', verbose=True, allow_dangerous_code=True)
agent_executer.invoke("When looking at the Publisher column, how many many books are published on each of the 3 Publishers including [jPublisher A], [Publisher B], [Publisher C]?")
AuthenticationError: Error code: 401 - {'error': {'message': 'Incorrect API key provided: sk-0dUwC***TRrR. You can find your API key at https://platform.openai.com/account/api-keys.', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}}
import os os.environ["OPENAI_API_KEY"] = "THE KEY" from langchain_experimental.agents.agent_toolkits import create_csv_agent from langchain_openai import ChatOpenAI llm = ChatOpenAI(temperature=0.1) agent_executer = create_csv_agent(llm, '/kaggle/working/book.csv', verbose=True, allow_dangerous_code=True) agent_executer.invoke("When looking at the Publisher column, how many many books are published on each of the 3 Publishers including [jPublisher A], [Publisher B], [Publisher C]?")
AuthenticationError: Error code: 401 - {'error': {'message': 'Incorrect API key provided: sk-0dUwC***TRrR. You can find your API key at https://platform.openai.com/account/api-keys.', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}}
我是几分钟前才用自己的GitHub绑定的,这个key显示不能用