> ## Documentation Index
> Fetch the complete documentation index at: https://wb-21fd5541-docs-hivemind-launch.mintlify.site/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 アプリケーションの最適化を支援します。W\&B を使用すると、次のことができます。

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

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

Azure を Weave で使い始めるには、トラッキングしたい関数に `weave.op` デコレータを付けるだけです。

```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>

[このガイド](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 AI Model Inference API] を使用して Azure モデルへの理解を深める方法を学べます。

<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)を参照してください。
