Search
Try Notion
FAQ
Using User-City instead of User-Location?
You may use the User-City query parameter, but it must be a valid city name that exists in the User-Region. Please send an email to [email protected] if you have a specific city list to make sure we can support it.
headers = { "Accept": "application/json", "User-Region": Region.de, "User-Language": BaseLang.english, "Kai-Voice": Voice.english, "Authorization": f"Bearer SLACK:TESTING:123", "X-API-Key": self.X_API_KEY, "Content-Type": "application/json", "Turn-Mode": "single_turn" } data = {"transcripts": [{"transcript": "food near me"}], "source": "text"} params = {"user_city": "Altdöbern"} # headers don't support unicode well response = await self.client.post("/api/oscar/alpha/message", headers=headers, json=data, params=params)
Python
Using single-turn only?
You may pass Turn-Mode header and set it to single_turn