Skip to content

Commit

Permalink
Refactor code formatting and enhance model parameter handling in prom…
Browse files Browse the repository at this point in the history
…pty.ts
  • Loading branch information
pelikhan committed Sep 4, 2024
1 parent 2822fe4 commit 532b5ab
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/core/src/prompty.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,13 @@ export function promptyToGenAIScript(doc: PromptyDocument) {
description,
tags,
parameters,
responseType: outputs ? "json_object" : undefined,
responseType: outputs
? "json_object"
: modelParameters?.response_format,
responseSchema: outputs,
temperature: modelParameters?.temperature,
maxTokens: modelParameters?.max_tokens,
topP: modelParameters?.top_p,
})

let src = ``
Expand Down

0 comments on commit 532b5ab

Please sign in to comment.