# GPT-OSS Tool Calling Support
## Background
I'm integrating Berget AI into my chat application using the AI SDK. While testing tool calling capabilities across different models, I discovered that the `openai/gpt-oss-120b` endpoint returns a 400 error when tools/functions are included in the request.
## Current Behavior
When sending a request with tools to `openai/gpt-oss-120b`:
**Request:**
```json
{
"model": "openai/gpt-oss-120b",
"messages": [...],
"tools": [...],
"tool_choice": "auto"
}
```
**Response:**
```json
{
"error": {
"message": "Tools/function calling is not yet supported by the model endpoint. The backend API recognizes tools but the underlying model service returns an error when tools are included in the request.",
"type": "authentication_error",
"param": null,
"code": "INTERNAL_ERROR"
}
}
```
## Request
Could you please enable tool calling support for the `openai/gpt-oss-120b` on the /chat/completions endpoint?
## Technical Details
- API Endpoint: `https://api.berget.ai/v1/chat/completions`
- Model ID: `openai/gpt-oss-120b`
## Additional Context
- Testing was done using both the AI SDK by Vercel and direct API calls
Thank you for starting Berget AI!