Skip to content

Commit

Permalink
feat(#49): 0.7t
Browse files Browse the repository at this point in the history
  • Loading branch information
h1alexbel committed Mar 21, 2024
1 parent b1be3b9 commit 0150693
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
9 changes: 4 additions & 5 deletions src/deep-infra.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,14 @@ export class DeepInfra implements Model {
* @param model Model
* @param system System prompt
* @param prompt User prompt
* @param temperature Temperature
*/
constructor(
private readonly token: string,
private readonly model: string,
private readonly system: Scalar<string>,
private readonly prompt: Scalar<string>
private readonly prompt: Scalar<string>,
private readonly temperature: number
) {
this.token = token;
this.model = model;
Expand All @@ -50,7 +52,7 @@ export class DeepInfra implements Model {
method: 'POST',
body: JSON.stringify({
model: this.model,
temperature: 0.5,
temperature: this.temperature,
messages: [
{
role: "system",
Expand All @@ -59,9 +61,6 @@ export class DeepInfra implements Model {
{
role: "user",
content: this.prompt.value()
// content: new UserPrompt(
// report
// ).value()
}
],
}),
Expand Down
3 changes: 2 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@ async function run() {
new QualityExpert(),
new UserPrompt(
new Titled(smart.title, body).asString()
)
),
0.5
).analyze();
await new Feedback(
answer,
Expand Down
3 changes: 2 additions & 1 deletion src/pdd-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ export class PddModel implements Model {
this.token,
this.model,
new TodoReviewer(),
this.prompt
this.prompt,
0.7
).analyze();
}
return answer;
Expand Down

0 comments on commit 0150693

Please sign in to comment.