Azure / Azure/azure-sdk-for-python

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

Đang mở
#40,539 4 bình luận 0 reaction 1 người được giao Được giao cho @trangevi Xem trên GitHub
AI Model Inference Client customer-reported needs-team-attention question Service Attention
Ngôn ngữ chính
Python
Star
5.6k
Fork
3.4k
Merge trung bình
2 ngày
Pull request đã merge (30 ngày)
217

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.