Hugging Face Forums
TypeError: InferenceClient.text_generation() got an unexpected keyword argument 'token'
Beginners
John6666
June 10, 2025, 11:41pm
6
Yea.
max_new_tokens
is better if you need.
show post in topic
Related topics
Topic
Replies
Views
Activity
Number of tokens (550) exceeded maximum context length (512) error
Beginners
2
273
September 12, 2024
I'm having an error message working with my User access tokens
Inference Endpoints on the Hub
19
12486
June 6, 2025
Facing issue using a model hosted on HuggingFace Server and talking to it using API_KEY
Beginners
7
215
May 12, 2025
Error in generating model output: InferenceClient.chat_completion() got an unexpected keyword argument 'last_input_token_count'
Models
2
43
June 10, 2025
sentence-transformers/all-MiniLM-L6-v2 Not working all of a sudden
Beginners
9
124
May 8, 2025