cohere-ai / cohere-python

Python Library for Accessing the Cohere API
https://docs.cohere.ai
MIT License
278 stars 60 forks source link

Web Connector not Applied using Python Library #504

Closed AbdullahADhaim closed 2 months ago

AbdullahADhaim commented 2 months ago

This code works fine and doesn't give any error, but the web connector isn't properly working and the result has ZERO documents unless I use a normal HTTP POST Request to https://production.api.cohere.ai/v1/chat it will work

co.chat(model="command-r-plus", message=PROMPT, preamble=PREAMBLE, connectors=[{"id": "web-search"}])

billytrend-cohere commented 2 months ago

Discussed over discord. Requires prompt engineering/guided generation