> ## Documentation Index
> Fetch the complete documentation index at: https://wb-21fd5541-feature-automate-reference-docs-generation.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Azure

Weights & Biases (W\&B) Weaveは、Microsoft Azure OpenAIサービスと統合し、チームがAzure AIアプリケーションを最適化するのを支援します。W\&Bを使用すると、

<Tip>
  最新のチュートリアルについては、以下をご覧ください [Microsoft Azure上のWeights & Biases](https://wandb.ai/site/partners/azure).
</Tip>

## はじめに

WeaveでAzureの使用を開始するには、追跡したい関数に単に装飾するだけです `weave.op`.

```python
@weave.op()
def call_azure_chat(model_id: str, messages: list, max_tokens: int = 1000, temperature: float = 0.5):
    response = client.chat.completions.create(
        model=model_id,
        messages=messages,
        max_tokens=max_tokens,
        temperature=temperature
    )
    return {"status": "success", "response": response.choices[0].message.content}

```

## 詳細を学ぶ

以下のリソースを使用して、WeaveでのAzureの高度なトピックについて詳しく学びましょう。

### WeaveでAzure AI Model Inference APIを使用する

\[Azure AI Model Inference API]をWeaveと共に使用してAzureモデルの洞察を得る方法を [このガイド](https://wandb.ai/byyoung3/ML-NEWS2/reports/A-guide-to-using-the-Azure-AI-model-inference-API--Vmlldzo4OTY1MjEy#tutorial:-implementing-azure-ai-model-inference-api-with-w\&b-weave-).

### WeaveでAzure OpenAIモデルをトレースする

Weaveを使用してAzure OpenAIモデルをトレースする方法を [このガイド](https://wandb.ai/a-sh0ts/azure-weave-cookbook/reports/How-to-use-Azure-OpenAI-and-Azure-AI-Studio-with-W-B-Weave--Vmlldzo4MTI0NDgy).
