mirror of
https://git.mirrors.martin98.com/https://github.com/jina-ai/reader
synced 2025-08-06 08:36:02 +08:00
fix: readerlm params
This commit is contained in:
parent
e23d9f30a6
commit
3e58afc2ba
@ -38,7 +38,7 @@ export class LmControl extends AsyncService {
|
||||
throw new AssertionFailureError('Screenshot of the page is not available');
|
||||
}
|
||||
|
||||
const html = await this.jsdomControl.cleanHTMLforLMs(snapshot.html, 'script,link,style,textarea,select>option,svg')
|
||||
const html = await this.jsdomControl.cleanHTMLforLMs(snapshot.html, 'script,link,style,textarea,select>option,svg');
|
||||
|
||||
const it = this.commonLLM.iterRun('vertex-gemini-1.5-flash-002', {
|
||||
prompt: [
|
||||
@ -81,7 +81,14 @@ export class LmControl extends AsyncService {
|
||||
|
||||
options: {
|
||||
// system: 'You are an AI assistant developed by Jina AI',
|
||||
stream: true
|
||||
stream: true,
|
||||
modelSpecific: {
|
||||
top_k: 1,
|
||||
temperature: 0,
|
||||
repetition_penalty: 1.05,
|
||||
presence_penalty: 0.25,
|
||||
max_tokens: 8192,
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@ -112,7 +119,14 @@ export class LmControl extends AsyncService {
|
||||
prompt: `${instruction}\n\n${tripleBackTick}html\n${html}\n${tripleBackTick}\n${schema ? `The JSON schema:\n${tripleBackTick}json\n${schema}\n${tripleBackTick}\n` : ''}`,
|
||||
options: {
|
||||
// system: 'You are an AI assistant developed by Jina AI',
|
||||
stream: true
|
||||
stream: true,
|
||||
modelSpecific: {
|
||||
top_k: 1,
|
||||
temperature: 0,
|
||||
repetition_penalty: 1.05,
|
||||
presence_penalty: 0.25,
|
||||
max_tokens: 8192,
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user