jackMort / jackMort/ChatGPT.nvim

o1-mini: unsupported parameter

Open
#473 6 comments 7 reactions 0 assignees View on GitHub
Dominant language
Lua
Stars
4k
Forks
317
PR merge metrics
No merged PRs in 30d

Description

Firstly, thanks for this magnificient plugin.

I've been trying to use the o1-mini model but I get the following error:

```
Unsupported parameter: 'max_tokens' is not supported with this model. Use 'max_completion_tokens' instead.
```

I changed the configuration to add max_completion_tokens but it seems that the max_tokens is sent in the request.

anyone with similar issue?

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names no file, test, or entry point. Trace where ChatGPT.nvim builds the OpenAI request for the o1-mini model, then verify that the request no longer sends max_tokens and uses max_completion_tokens instead; done when the model request is accepted without the reported unsupported-parameter error.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua, neovim
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.