$SHUTTLEAI_API_KEY
with your API key, which you can find on our Dashboard.
ChatCompletion
request.
Understanding the Response
- finish_reason: “length” indicates that the response ended because it reached the
max_tokens
limit. Other possible values include “stop” and “tool_calls”. - completion_tokens: Shows the number of tokens used to generate the response, which will not exceed the set
max_tokens
.