danielmiessler / fabric

fabric is an open-source framework for augmenting humans using AI. It provides a modular framework for solving specific problems using a crowdsourced set of AI prompts that can be used anywhere.
https://danielmiessler.com/p/fabric-origin-story
MIT License
18.78k stars 1.92k forks source link

us-api.i.posthog.com Error while using PraisonAI (--agents) #414

Open bamit99 opened 1 month ago

bamit99 commented 1 month ago

I am getting the errors below when using the --agents switch with fabric. I think this is probably because the tool is reaching some sort of limit while doing Internet Search or similar. How to avoid it? The tool comes back with the answers but I am guessing with limited information since we run into limitations. I am using Deepseek v2 for OpenAI and the usual Google Keys for YT and Google API,

2024-05-23 12:07:37,907 - 139747531929152 - _common.py-_common:120 - ERROR: Giving up send_request(...) after 4 tries (requests.exceptions.ConnectionError: HTTPSConnectionPool(host='us-api.i.posthog.com', port=443): Max retries exceeded with url: /batch/ (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f198c61d550>: Failed to establish a new connection: [Errno 111] Connection refused'))) 2024-05-23 12:07:38,170 - 139747020236352 - _common.py-_common:120 - ERROR: Giving up send_request(...) after 4 tries (requests.exceptions.ConnectionError: HTTPSConnectionPool(host='us-api.i.posthog.com', port=443): Max retries exceeded with url: /batch/ (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f198c563c10>: Failed to establish a new connection: [Errno 111] Connection refused'))) 2024-05-23 12:07:38,841 - 139746995058240 - _common.py-_common:120 - ERROR: Giving up send_request(...) after 4 tries (requests.exceptions.ConnectionError: HTTPSConnectionPool(host='us-api.i.posthog.com', port=443): Max retries exceeded with url: /batch/ (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f198c503d50>: Failed to establish a new connection: [Errno 111] Connection refused'))) 2024-05-23 12:07:39,284 - 139747011843648 - _common.py-_common:120 - ERROR: Giving up send_request(...) after 4 tries (requests.exceptions.ConnectionError: HTTPSConnectionPool(host='us-api.i.posthog.com', port=443): Max retries exceeded with url: /batch/ (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f198c502250>: Failed to establish a new connection: [Errno 111] Connection refused'))

gamercoder153 commented 1 month ago

can u create agents with praison ai using fabric

bamit99 commented 1 month ago

Yes. Fabric folder shows a test.yaml file that has all the PraisonAI agents needed for the request to work.

eous commented 1 month ago

You can set the environment variable EC_TELEMETRY to false or some other non true boolean value to disable the anonymous embed chain telemetry collection.

bamit99 commented 1 month ago

Let me try and get back to you.

julliannailluj commented 1 month ago

You can set the environment variable EC_TELEMETRY to false or some other non true boolean value to disable the anonymous embed chain telemetry collection.

Canyou tell me where is that EC_TELEMETRY located? Thanks

eous commented 1 month ago

https://github.com/embedchain/embedchain/blob/9544c69c55618b9ff0e3d413b9a246647a0338c3/embedchain/telemetry/posthog.py#L21