Azure / Azure/azure-sdk-for-python

Azure AI Inference SDK fails to complete chat completion with gpt-4.1

オープン
#40,539 コメント 4 件 リアクション 0 件 担当者 1 名 @trangevi に割り当て済み GitHub で見る
AI Model Inference Client customer-reported needs-team-attention question Service Attention
主要言語
Python
スター
5.6k
フォーク
3.4k
平均マージ
2日 2時間
マージ済み PR(30日)
202

説明

- **Package Name**: azure-ai-inference
- **Package Version**: 1.0.0b9
- **Operating System**: Windows 11
- **Python Version**: 3.12.9

**Describe the bug**
Chat completion request fails with
> **ERROR:**
> JSONDecodeError: Expecting value: line 1 column 1 (char 0)

**To Reproduce**
Steps to reproduce the behavior:
```python
client = ChatCompletionsClient(
endpoint=endpoint,
credential=AzureKeyCredential(os.getenv("AZURE_OPENAI_API_KEY"))
)

response = client.complete(
messages=[
SystemMessage(content="You are a helpful assistant."),
UserMessage(content="Where is Zurich?")
],
model="gpt-4.1"
)
```

**Expected behavior**
Return the chat completion result

**Screenshots**
n/a

**Additional context**
This works fine with any other AOAI model, it only fails with gpt-4.1

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。