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

how to use baseurl #58

Open
kjyang0114-cod opened this issue Nov 4, 2024 · 1 comment
Open

how to use baseurl #58

kjyang0114-cod opened this issue Nov 4, 2024 · 1 comment

Comments

@kjyang0114-cod
Copy link

No description provided.

@miketam
Copy link

miketam commented Nov 7, 2024

  1. You can edit cofounder/api/utils/openai.js file.

let openai;
try {
openai = new OpenAI({
apiKey: process.env.OPENAI_API_KEY,
baseUrl: process.env.OPENAI_BASE_URL,
});
} catch (e) {
console.error("utils:openai : " + e);
}

add baseUrl param.

  1. edit "cofounder/api/.env"

OPENAI_BASE_URL = "https://xxxx/v1"

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

No branches or pull requests

2 participants