Skip to content

How to use DeepSeek LLM via Azure? #17765

Answered by ravwojdyla
aiwalter asked this question in Q&A
Discussion options

You must be logged in to vote

I believe you can use AzureAICompletionsModel

from llama_index.llms.azure_inference import AzureAICompletionsModel

llm = AzureAICompletionsModel(
  model_name="DeepSeek-R1",
  endpoint="https://<FOUNDRY ENDPOINT>.services.ai.azure.com/models", 
  credential=os.environ["AZURE_INFERENCE_CREDENTIAL"],
)

Here's some doc:

Replies: 4 comments 10 replies

Comment options

You must be logged in to vote
4 replies
@aiwalter
Comment options

@dosubot
Comment options

@aiwalter
Comment options

@dosubot
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@scdnapier
Comment options

@aiwalter
Comment options

@dosubot
Comment options

@aiwalter
Comment options

@dosubot
Comment options

Answer selected by aiwalter
Comment options

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

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