You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. On account/machine 1, export an agent using your own local credentials (not the shared cloud credentials) 2. (Try to) Import this agent on account/machine
2. It won't import due to the credentials in the Agent JSON being missing from your machine.
…9081)
### Changes 🏗️
This is for [Credential ID Exports into Agent JSON #8919
](#8919)
I have added a new function ``removeCredentials`` into
[``utils.ts``](https://github.com/Significant-Gravitas/AutoGPT/compare/dev...bently/open-2153-credential-id-exports-into-agent-json?expand=1#diff-db26a69e6fb7546dc621634f3c8ee6efa3639e72e02837f753af18b2fdddf7be)
which will go through and look for any "credentials" that are in the
JSON during a agent export, this will then remove them and let the user
download the file.
I have also added the same function to the importing of agents for old
agents that where exported that still contain the credentials, this
means that old agents can be imported with out breaking/causing issues.
When I say it looks for credentials I dont mean actual credentials like
api keys them self, in the JSON that is exported it contains the
following, this needs removing
```
"credentials": {
"id": "6767232a-3407-4c34-85a3-6887d4969f0c",
"title": "Anthropic Toran",
"provider": "anthropic",
"type": "api_key"
},
```
If there is a better way to go about this let me know!
Steps to reproduce:
1. On account/machine 1, export an agent using your own local credentials (not the shared cloud credentials) 2. (Try to) Import this agent on account/machine
2. It won't import due to the credentials in the Agent JSON being missing from your machine.
Basic Example Agents to reproduce with attached.
Credentials Export test_v2.json
Credentials Flux Test_v1.json
The above snippet is included in the JSON of exported agents, preventing them from working on machines/accounts where this credential isn't present.
The text was updated successfully, but these errors were encountered: