Back to Lobehub

Using Azure AI API Key in LobeHub

docs/usage/providers/azureai.mdx

2.1.562.6 KB
Original Source

Using Azure AI in LobeHub

<Image alt={'Using Azure AI in LobeHub'} cover src={'/blog/assets29de82efbe7657a8b9ba7daf0904585d.webp'} />

Azure AI is an open AI technology platform built on Microsoft Azure's cloud infrastructure. It offers a wide range of AI capabilities including natural language processing, machine learning, and computer vision, enabling businesses to easily develop and deploy AI-powered applications.

This guide will walk you through how to integrate Azure AI models into LobeHub:

<Steps> ### Step 1: Deploy an Azure AI Project and Model
  • First, visit Azure AI Foundry and sign up or log in.
  • Once logged in, go to the homepage and select Browse Models.

<Image alt={'Accessing Azure AI Foundry'} inStep src={'/blog/assets8096422e62e10dcd58efe75c616f9e88.webp'} />

  • In the model marketplace, choose the model you want to use.
  • On the model details page, click the Deploy button.

<Image alt={'Browsing Models'} inStep src={'/blog/assets7dbd100dac8e2614ef6b297885b3c9e2.webp'} />

  • In the pop-up dialog, create a new project.

<Image alt={'Creating a New Project'} inStep src={'/blog/assetsb9d1f02ab6c26f8a2c7873a949b4dd3c.webp'} />

<Callout type={'note'}> For detailed configuration of Azure AI Foundry, please refer to the official documentation. </Callout>

Step 2: Retrieve the Model's API Key and Endpoint

  • In the deployed model's details page, you can find the Endpoint and API Key.
  • Copy and securely save this information.

<Image alt={'Retrieving API Key'} inStep src={'/blog/assets66829206b15b6c36fa3344835659c041.webp'} />

Step 3: Configure Azure AI in LobeHub

  • Go to the App Settings section in LobeHub and navigate to AI Service Providers.
  • Find the Azure AI option in the list of providers.

<Image alt={'Entering Azure AI API Key'} inStep src={'/blog/assets0a81d34f707bd87cee3852f26a3d14f0.webp'} />

  • Open the Azure AI provider settings and enter the Endpoint and API Key you obtained.

<Callout type={'warning'}> Only enter the base part of the Endpoint, e.g., https://xxxxxx.services.ai.azure.com/models. </Callout>

  • Select an Azure AI model for your assistant to start chatting.

<Image alt={'Selecting Azure AI Model'} inStep src={'/blog/assetsbd69842ebb37848ecd50c242aad835b0.webp'} />

<Callout type={'warning'}> You may incur charges from the API service provider during usage. Please refer to Azure AI's pricing policy for more details. </Callout> </Steps>

That's it! You're now ready to use Azure AI models for conversations in LobeHub.