Skip to content

Kernel Reestarting #28

Open
Open
@MeliJuanmi

Description

Hi I am trying to run this code cell:

from codeinterpreterapi import CodeInterpreterSession
import os

# create a session
session = CodeInterpreterSession(openai_api_key="openai-api-key", model="gpt-3.5-turbo-0613")
await session.astart()

# generate a response based on user input
output = await session.generate_response(
    "Plot the Tesla stock for 2023 YTD"
)

# ouput the response (text + image)
print("AI: ", output.content)
for file in output.files:
    file.show_image()

# terminate the session
await session.astop()

The conection with the openAi is with an api_base connection and I get the following error:

image

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingduplicateThis issue or pull request already exists

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions