Skip to Content

Welcome!

Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.

Sign up

You need to be registered to interact with the community.
This question has been flagged
1 Reply
32 Views

# 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!

Avatar
Discard
Author

The GPT-OSS model has a different format both in its output (harmony) and also it has limited support for tool use thorugh the traditional /v1/chat/completions API. OpenAI have launched a new API format for better handling the back and forth between tool callings through different channels. They call it Responses API and we are actively developing support for this at Berget AI and we will let everyone know here when it is ready for beta testing.

Avatar
Discard