Use openrouter

This commit is contained in:
2026-03-05 16:28:19 +02:00
parent 01e346e157
commit 27b7d87e68
4 changed files with 19 additions and 15 deletions

View File

@@ -137,7 +137,7 @@ export const createActivityContent = async ({
`;
const aiResponse = await openai.responses.create({
model: "gpt-5",
model: "@preset/ghostwriter",
input: [{ role: "user", content: prompt }],
reasoning: {
effort: "minimal",

View File

@@ -4,7 +4,8 @@ export const useOpenAI = () => {
const config = useRuntimeConfig();
const client = new OpenAI({
apiKey: config.openaiApiKey,
apiKey: config.openrouterApiKey,
baseURL: "https://openrouter.ai/api/v1",
});
return client;