Skip to content

KeyError: 'id' #15

Closed
Closed
@qingzhenduyu

Description

@qingzhenduyu

Hello,
I've encountered a KeyError: 'id' when attempting to get access to openai gpt4. Below is a brief description of the issue

Traceback (most recent call last): File "D:\Research\GPT4\process.py", line 101, in <module> main() File "D:\Research\GPT4\process.py", line 93, in main process_prompt(lines[i]) File "D:\Research\GPT4\process.py", line 70, in process_prompt result = call_gpt4_api(line) File "D:\Research\GPT4\process.py", line 42, in call_gpt4_api with CodeInterpreterSession(verbose=True) as session: File "C:\Users\DELL\anaconda3\envs\gpt\lib\site-packages\codeinterpreterapi\session.py", line 481, in __enter__ self.start() File "C:\Users\DELL\anaconda3\envs\gpt\lib\site-packages\codeinterpreterapi\session.py", line 89, in start status = SessionStatus.from_codebox_status(self.codebox.start()) File "C:\Users\DELL\anaconda3\envs\gpt\lib\site-packages\codeboxapi\box\localbox.py", line 107, in start self._connect() File "C:\Users\DELL\anaconda3\envs\gpt\lib\site-packages\codeboxapi\box\localbox.py", line 116, in _connect self.kernel_id = response.json()["id"]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions