ReviewOS

also looking at this

stacks/postline

chore(deps): upgrade vendored Stacks framework to 0.70.163

#29
Merged glennmichael123 wants to merge chore/upgrade-0.70.163 into main
224 files +3516 -874
storage/framework/core/ai/src/drivers/ollama/index.tsmodified+8-0
Changes to storage/framework/core/ai/src/drivers/ollama/index.ts
@@ -159,8 +159,15 @@ export async function chat(
159159 temperature,
160160 topP,
161161 stop,
162 responseFormat,
162163 } = options
163164
165 const format = responseFormat?.type === 'json_schema'
166 ? responseFormat.json_schema.schema
167 : responseFormat?.type === 'json_object'
168 ? 'json'
169 : undefined
170
164171 const response = await fetch(`${config.host}/api/chat`, {
165172 method: 'POST',
166173 headers: { 'Content-Type': 'application/json' },
@@ -168,6 +175,7 @@ export async function chat(
168175 model,
169176 messages,
170177 stream: false,
178 format,
171179 options: {
172180 temperature,
173181 top_p: topP,