mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 00:27:24 +00:00
Get accurate OpenRouter pricing
This commit is contained in:
11 files changed
+81
-94
No files matched your search
@@ -28,8 +28,8 @@ export function useAIProjectId({ onError }: UseAIProjectIdOptions = {}) {
|
||||
|
||||
try {
|
||||
// Initialize OpenAI client
|
||||
const { model, connection } = parseProviderModel(providerModel, settings.providers);
|
||||
const openai = createAIClient(connection, user);
|
||||
const { model, provider } = parseProviderModel(providerModel, settings.providers);
|
||||
const openai = createAIClient(provider, user);
|
||||
|
||||
const systemPrompt = `You are a product expert. Given the user's project description, come up with a short, unique, and memorable name for their product or brand. Generate only the name without any additional text or punctuation. The name should be lowercase, use hyphens instead of spaces, and contain only alphanumeric characters and hyphens. Avoid using special characters or underscores.`;
|
||||
|
||||
|
||||
Reference in new issue
Block a user