Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: use streaming in playground requests #213

Merged
merged 2 commits into from
Feb 5, 2024

Conversation

jeffmaury
Copy link
Contributor

@jeffmaury jeffmaury commented Feb 2, 2024

Fixes #23

What does this PR do?

Use streaming when sending requests to the playground

Screenshot / video of UI

streaming

What issues does this PR fix or reference?

#23

How to test this PR?

Just play with the playground

@feloy
Copy link
Contributor

feloy commented Feb 2, 2024

When testing on Linux, the following error is raised when calling const client = new OpenAI({ baseURL: http://localhost:${state.container.port}/v1 });:

Error: The OPENAI_API_KEY environment variable is missing or empty; either provide it, or instantiate the OpenAI client with an apiKey option, like new OpenAI({ apiKey: 'My API Key' }).

@axel7083
Copy link
Contributor

axel7083 commented Feb 2, 2024

When testing on Linux, the following error is raised when calling const client = new OpenAI({ baseURL: http://localhost:${state.container.port}/v1 });:

Error: The OPENAI_API_KEY environment variable is missing or empty; either provide it, or instantiate the OpenAI client with an apiKey option, like new OpenAI({ apiKey: 'My API Key' }).

I am having the same issue

@jeffmaury
Copy link
Contributor Author

When testing on Linux, the following error is raised when calling const client = new OpenAI({ baseURL: http://localhost:${state.container.port}/v1 });:

Error: The OPENAI_API_KEY environment variable is missing or empty; either provide it, or instantiate the OpenAI client with an apiKey option, like new OpenAI({ apiKey: 'My API Key' }).

Should be fixed now

@jeffmaury
Copy link
Contributor Author

When testing on Linux, the following error is raised when calling const client = new OpenAI({ baseURL: http://localhost:${state.container.port}/v1 });:

Error: The OPENAI_API_KEY environment variable is missing or empty; either provide it, or instantiate the OpenAI client with an apiKey option, like new OpenAI({ apiKey: 'My API Key' }).

I am having the same issue

Should be fixed now

Copy link
Contributor

@lstocchi lstocchi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested, works fine !!

Copy link
Contributor

@feloy feloy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested, works on mac

Copy link
Contributor

@axel7083 axel7083 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Working on Windows 11.

Takes around ~6 GB of ram
image

@jeffmaury jeffmaury merged commit 4e51f28 into containers:main Feb 5, 2024
3 checks passed
@jeffmaury jeffmaury deleted the GH-23 branch February 5, 2024 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: adding streaming response for playground
4 participants