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

Small important improvement #18

Open
williamneves opened this issue Jul 20, 2023 · 1 comment
Open

Small important improvement #18

williamneves opened this issue Jul 20, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@williamneves
Copy link

When we create a chat, we should have the option to add headers, like:

import { Configuration, OpenAIApi } from "openai";

const configuration = new Configuration({
    apiKey: process.env.OPENAI_API_KEY,
    basePath: "https://oai.hconeai.com/v1",
    baseOptions: {
    headers: {
        "Helicone-Auth": `Bearer ${process.env.HELICONE_API_KEY}`,
    },
});

const openai = new OpenAIApi(configuration);

Thanks!

@lucgagan lucgagan added the enhancement New feature or request label Sep 19, 2023
@lucgagan
Copy link
Owner

Would accept a PR for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants