raidendotai / cofounder

ai-generated apps , full stack + generative UI
https://cofounder.openinterface.ai/
MIT License
4.69k stars 465 forks source link

REally Slow #46

Open chadwickallison opened 2 days ago

chadwickallison commented 2 days ago

This is taking hours. Is that normal or what are the dependencies?

I'm on a high end MacBook Pro.

choice21hax commented 2 days ago

It has to access api keys from openai and anthropic. Maybe your network is slow. Mine coded a full app in an hour and my wifi stays at a constant 2.5gb download.

chadwickallison commented 2 days ago

This is the first time I have done this.

I followed the directions and I only have the open AI one.

How do I get the other 2? And how do I add them?

chadwickallison commented 2 days ago

Under the API Folder is shows:

import Anthropic from "@anthropic-ai/sdk"; import dotenv from "dotenv"; dotenv.config(); const anthropic = new Anthropic();

============ import fs from "fs"; import OpenAI from "openai"; import dotenv from "dotenv"; dotenv.config();

let openai;

So how do I add them?

YuniorGlez commented 1 day ago

@chadwickallison probably you have to edit the file called .env inside the folder cofounder/api/.env


OPENAI_API_KEY = "REPLACE_WITH_OPENAI_KEY"
ANTHROPIC_API_KEY = "REPLACE_WITH_ANTHROPIC_KEY"
COFOUNDER_API_KEY = "REPLACE_WITH_COFOUNDER.OPENINTERFACE.AI_KEY"

And you can ask to google or chatgpt how to obtain these keys from the different providers.