Parameter max-completion-tokens is not working
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- typescript
Research direction
Reproduce the workflow using actions/ai-inference@v2 with max-completion-tokens: 4000 and inspect the emitted configuration showing max-tokens: 200. Trace how the action reads this input and compare it with the documented deprecated parameter. Done means the configured completion-token limit is honored and the relevant behavior is covered by an appropriate check.
Written by the indexing model from the issue text.
Description
I'm using
- name: Generate human-readable report
id: inference
uses: actions/ai-inference@v2
with:
model: openai/gpt-5
max-completion-tokens: 4000
prompt: |
Turn this .... deployment what-if JSON into a concise human-readable Markdown report.
And the output gives me
endpoint: https://models.github.ai/inference
system-prompt: You are a helpful assistant
max-tokens: 200
token: ***
enable-github-mcp: false
provider: github-models
Using legacy prompt format
Max tokens is set to 200 ? Why? Is this max-completion-tokens parameter ignored?
The docs state
"(deprecated, use max-completion-tokens instead)"
- Dominant language
- TypeScript
- Stars
- 512
- Forks
- 69
- Avg merge
- 20m
- Merged PRs (30d)
- 1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from actions/ai-inference
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
actions/ai-inference#271 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
actions/ai-inference#215 ·
-
no no more hackers Open
Difficulty 5/5 Over a week Newbie friendliness 5/100
actions/ai-inference#278 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 68/100
actions/ai-inference#216 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 62/100
actions/ai-inference#203 ·
All issues in actions/ai-inference
Similar issues
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 91/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 95/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100