mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-14 05:56:00 +08:00
Nick: small improvements
This commit is contained in:
parent
e899ecbe44
commit
a759a7ab7a
@ -263,7 +263,7 @@ export async function extractController(
|
||||
{
|
||||
mode: "llm",
|
||||
systemPrompt:
|
||||
"Always prioritize using the provided content to answer the question. Do not make up an answer. Be concise and follow the schema if provided. Here are the urls the user provided of which he wants to extract information from: " +
|
||||
"Always prioritize using the provided content to answer the question. Do not make up an answer. Be concise and follow the schema always if provided. Here are the urls the user provided of which he wants to extract information from: " +
|
||||
links.join(", "),
|
||||
prompt: req.body.prompt,
|
||||
schema: req.body.schema,
|
||||
|
@ -67,12 +67,11 @@ export async function generateCompletions(
|
||||
|
||||
export async function generateBasicCompletion(prompt: string) {
|
||||
const openai = new OpenAI();
|
||||
const model = process.env.MODEL_NAME ?? "gpt-4o-mini";
|
||||
const model = "gpt-4o";
|
||||
|
||||
const completion = await openai.chat.completions.create({
|
||||
model,
|
||||
messages: [{ role: "user", content: prompt }],
|
||||
});
|
||||
|
||||
return completion.choices[0].message.content;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user