Compare commits
1 Commits
842d151a44
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
07ffd95a02 |
@@ -86,9 +86,40 @@ async function buildPlaceAnalysis(input: {
|
|||||||
},
|
},
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
model: config.openRouterModel,
|
model: config.openRouterModel,
|
||||||
|
provider: { require_parameters: true },
|
||||||
temperature: 0.1,
|
temperature: 0.1,
|
||||||
max_tokens: 900,
|
max_tokens: 2000,
|
||||||
response_format: { type: 'json_object' },
|
response_format: {
|
||||||
|
type: 'json_schema',
|
||||||
|
json_schema: {
|
||||||
|
name: 'place_analysis',
|
||||||
|
strict: true,
|
||||||
|
schema: {
|
||||||
|
type: 'object',
|
||||||
|
additionalProperties: false,
|
||||||
|
required: ['placeName', 'tags', 'signals', 'summary'],
|
||||||
|
properties: {
|
||||||
|
placeName: { type: 'string' },
|
||||||
|
tags: { type: 'array', items: { type: 'string' } },
|
||||||
|
signals: {
|
||||||
|
type: 'array',
|
||||||
|
items: {
|
||||||
|
type: 'object',
|
||||||
|
additionalProperties: false,
|
||||||
|
required: ['axis', 'leaf', 'evidence', 'confidence'],
|
||||||
|
properties: {
|
||||||
|
axis: { type: 'string' },
|
||||||
|
leaf: { type: 'string' },
|
||||||
|
evidence: { type: 'string' },
|
||||||
|
confidence: { type: 'number', minimum: 0, maximum: 1 },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
summary: { type: 'string' },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
messages: [
|
messages: [
|
||||||
{
|
{
|
||||||
role: 'system',
|
role: 'system',
|
||||||
|
|||||||
Reference in New Issue
Block a user