> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wandb.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Microsoft Azure

> Weave を Microsoft Azure OpenAI サービスと統合する

Weights & Biases (W\&B) Weave は Microsoft Azure OpenAI サービスと統合されており、Azure AI アプリケーションの最適化を支援します。このページでは、Weave で Azure OpenAI への Call のトラッキングを開始する方法と、より高度なワークフロー向けの追加リソースを紹介します。

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

<div id="get-started">
  ## はじめに
</div>

Azure OpenAI の Call を Weave でトラッキングするには、トラッキングしたい関数に `weave.op` デコレータを付けるだけです。デコレータを付けると、Weave は関数の各 Call について、inputs、output、メタデータを自動的に取得します。

```python lines theme={null}
@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}

```

<div id="learn-more">
  ## さらに詳しく
</div>

以下のセクションでは、Weave で Azure を使用する高度なトピックについて説明します。

<div id="use-the-azure-ai-model-inference-api-with-weave">
  ### Weave で Azure AI Model Inference API を使用する
</div>

[Weave で Azure AI Model Inference API を使用して 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-)を学べます。

<div id="trace-azure-openai-models-with-weave">
  ### Weave で Azure OpenAI モデルをトレースする
</div>

[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)方法をご覧ください。
