This repository was archived by the owner on Jul 22, 2025. It is now read-only.
Same prompt is working on perplexity UI (Free version) and giving results but when trying to get results from code, not working #239
Unanswered
IamMukulTaneja
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Prompt for UI !
Answer by UI ! (Correct one)
Request Payload with same Prompt !
Request payload: {"model":"sonar-pro","messages":[{"role":"user","content":"\nFind recent LinkedIn posts by hiring managers, recruiters, or employees of Sarvam.ai specifically hiring for product manager roles.\nExclude posts related to other roles like engineering, design, or marketing. Prioritize posts mentioning job openings, hiring announcements, or referrals for Product Managers.\nFocus on posts from the last 1-2 months and return the results in the following JSON array format:\n[\n{\n\"id\": \"\u003crandom-uuid\u003e\",\n\"title\": \"\u003cJob Title\u003e\",\n\"company\": \"%!s(MISSING)\",\n\"description\": \"\u003cFirst 200 characters of the job description or hiring post summary\u003e\",\n\"postedDate\": \"\u003cYYYY-MM-DD\u003e\",\n\"experienceLevel\": \"Mid Level\", // Experience level required for the role (e.g., Entry, Mid, Senior),\n\"location\": \"San Francisco, CA\", // Location of the job, if available\n\"jobUrl\": \"\u003cDirect LinkedIn job post or hiring post link\u003e\",\n\"source\": \"LinkedIn\"\n}\n]"}],"max_tokens":2000,"temperature":0,"top_p":1,"return_images":false,"return_related_questions":false,"top_k":20,"stream":false,"presence_penalty":0,"frequency_penalty":0}
Response Payload with same Prompt !
{"id": "7e659c9a-0b46-4b0f-b953-ef462926ae5d", "model": "sonar-pro", "created": 1742470047, "usage": {"prompt_tokens": 191, "completion_tokens": 117, "total_tokens": 308, "citation_tokens": 5560, "num_search_queries": 2}, "citations": ["https://www.sarvam.ai", "https://careers.kula.ai/sarvam-ai/3163", "https://careers.kula.ai/sarvam-ai/2972/?weekdayJdUid=223442", "https://userpilot.com/blog/ai-product-manager-job-roles/", "https://economictimes.com/tech/artificial-intelligence/sarvam-ai-launches-sarvam-labs-for-foundational-research-in-the-us/articleshow/119167070.cms", "https://techresearchonline.com/news/sarvam-ai-generative-ai-platform/", "https://www.cbinsights.com/company/sarvam-ai"], "object": "chat.completion", "choices": [{"index": 0, "finish_reason": "stop", "message": {"role": "assistant", "content": "Unfortunately, I do not have access to real-time LinkedIn data or posts to search for recent job openings at Sarvam.ai. LinkedIn's content is not publicly accessible in a way that would allow me to query and return specific recent posts about product manager roles at that company. Without being able to actually search LinkedIn, I cannot provide the requested JSON array with accurate job posting details. I apologize that I cannot fulfill this specific request. However, I can suggest checking Sarvam.ai's official careers page or LinkedIn company profile directly for the most up-to-date job openings and hiring announcements."}, "delta": {"role": "assistant", "content": ""}}]}
Configurations
Can anybody please help !!
Beta Was this translation helpful? Give feedback.
All reactions