Skip to content

What does 'ABI_API_KEY' refer to? #364

Answered by Dr0p42
AntoineTA asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @AntoineTA, thank you for raising that up. The ABI_API_KEY is a "secret" that you can generate freely, and that will be used to protect your ABI api deployment.

I need to document this, but for example you can just put "MyCustomSecretAPIKey" or anything and it will work.

You can check also the ABI api doc, hosted live here: http://abi-api.default.space.naas.ai/redoc#tag/Authentication

ABI_API_KEY must be passed either as:

import requests

url = "https://<your-registry-name>.default.space.naas.ai/assistants/supervisor/completion"

headers = {
    "Authorization": f"Bearer {token}"
}

response = requests.post(url, headers=headers)
print(response.json())

or

import requests

url = "http…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@AntoineTA
Comment options

Answer selected by AntoineTA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants