Skip to content

Commit 3188144

Browse files
VinciGit00claude
andcommitted
refactor: remove fetchConfig/llmConfig from extract endpoint
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent b570a57 commit 3188144

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

src/client.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,8 @@ export function scrapegraphai(config: ClientConfig) {
4040
async extract(url: string, extractOptions: ApiExtractOptions, requestOptions?: RequestOptions) {
4141
const body: Record<string, unknown> = { url, prompt: extractOptions.prompt };
4242
if (extractOptions.schema) body.schema = toJsonSchema(extractOptions.schema);
43-
if (extractOptions.llmConfig) body.llmConfig = extractOptions.llmConfig;
4443
if (extractOptions.mode) body.mode = extractOptions.mode;
4544
if (extractOptions.contentType) body.contentType = extractOptions.contentType;
46-
if (extractOptions.fetchConfig) body.fetchConfig = extractOptions.fetchConfig;
4745
return request(
4846
"POST",
4947
buildUrl("/api/v2/extract"),

src/schemas.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,6 @@ export const apiExtractRequestBaseSchema = z
172172
prompt: apiUserPromptSchema,
173173
schema: z.record(z.string(), z.unknown()).optional(),
174174
contentType: apiFetchContentTypeSchema.optional(),
175-
fetchConfig: apiFetchConfigSchema.optional(),
176-
llmConfig: apiLlmConfigSchema.optional(),
177175
})
178176
.refine((d) => d.url || d.html || d.markdown, {
179177
message: "Either url, html, or markdown is required",

0 commit comments

Comments
 (0)