Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AI Tagging Not Working #945

Open
1 task done
paulr24 opened this issue Jan 29, 2025 · 0 comments
Open
1 task done

AI Tagging Not Working #945

paulr24 opened this issue Jan 29, 2025 · 0 comments

Comments

@paulr24
Copy link

paulr24 commented Jan 29, 2025

Describe the Bug

I'm using Perplexity API, which seems to be OpenAI compatible, and while it is working for the summarize feature, AI tagging is not working.

Steps to Reproduce

My AI settings are as follows:

OPENAI_BASE_URL: https://api.perplexity.ai
OPENAI_API_KEY: [redacted]
INFERENCE_IMAGE_MODEL: sonar-pro
INFERENCE_TEXT_MODEL: sonar-pro

Expected Behaviour

AI tagging

Screenshots or Additional Context

Here is a portion of my logs that seem to indicate an OpenAI failure:

2025-01-29T15:17:04.067Z error: [inference][33] inference job failed: Error: 400 ["At body -> response_format -> ResponseFormatText -> type: Input should be 'text'", "At body -> response_format -> ResponseFormatJSONSchema -> type: Input should be 'json_schema'", "At body -> response_format -> ResponseFormatJSONSchema -> json_schema: Field required", "At body -> response_format -> ResponseFormatRegex -> type: Input should be 'regex'", "At body -> response_format -> ResponseFormatRegex -> regex: Field required"]

Error: 400 ["At body -> response_format -> ResponseFormatText -> type: Input should be 'text'", "At body -> response_format -> ResponseFormatJSONSchema -> type: Input should be 'json_schema'", "At body -> response_format -> ResponseFormatJSONSchema -> json_schema: Field required", "At body -> response_format -> ResponseFormatRegex -> type: Input should be 'regex'", "At body -> response_format -> ResponseFormatRegex -> regex: Field required"]

at APIError.generate (/app/apps/workers/node_modules/.pnpm/[email protected][email protected]/node_modules/openai/error.js:45:20)

at OpenAI.makeStatusError (/app/apps/workers/node_modules/.pnpm/[email protected][email protected]/node_modules/openai/core.js:291:33)

at OpenAI.makeRequest (/app/apps/workers/node_modules/.pnpm/[email protected][email protected]/node_modules/openai/core.js:335:30)

at process.processTicksAndRejections (node:internal/process/task_queues:105:5)

at async OpenAIInferenceClient.inferFromText (/app/apps/workers/node_modules/.pnpm/@hoarder+shared@[email protected]/node_modules/@hoarder/shared/inference.ts:2:1964)

at async inferTagsFromText (/app/apps/workers/openaiWorker.ts:6:3029)

at async inferTags (/app/apps/workers/openaiWorker.ts:6:3264)

at async Object.runOpenAI [as run] (/app/apps/workers/openaiWorker.ts:6:6686)

at async Runner.runOnce (/app/apps/workers/node_modules/.pnpm/[email protected][email protected]/node_modules/liteque/dist/runner.js:2:2578)

Device Details

Synology DS920+

Exact Hoarder Version

v0.21.0

Have you checked the troubleshooting guide?

  • I have checked the troubleshooting guide and I haven't found a solution to my problem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant