[BUG] The gpt5 model of openai is not supported yet
- Dominant language
- Go
- Stars
- 5.7k
- Forks
- 795
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 29
Description
### 📋 CheckList
- [x] I have searched existing issues to avoid duplicates
- [x] I am using a recently maintained version of Coze Loop
- [x] I have provided all required information
- [x] I understand this is a bug report and not a feature request
- [x] I have submitted this report in English (otherwise it will not be processed)
### 🐛 Bug Description
An error occurs when calling openai's gpt5 model
### 🔄 Steps to Reproduce
1. Configure openai's gpt5 model in the model configuration file
2. click 'run' button
### ✅ Expected Behavior
call return success
### ❌ Actual Behavior
call model failed,error, status code: 400, status: 400 Bad Request,message: Unsupported parameter: 'max_tokens' is not supported with this model. Use 'max_completion_tokens' instead.
### 🚨 Severity
None
### 🔧 Component
None
### 💻 Environment
_No response_
### 🔧 Go Environment
_No response_
### 📋 Logs
```shell
```
### 📝 Additional Context
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.