Skip to content

response too little tokens? #529

Answered by jeffreydevreede
st01cs asked this question in Q&A
Discussion options

You must be logged in to vote

In your curl request you need to set the max_tokens attribute:

curl -X 'POST' 
  'http://llama07.server.com/v1/chat/completions' 
  -H 'accept: application/json' 
  -H 'Content-Type: application/json' 
  -d '{
  "max_tokens": 200,
  "messages": [
    {
      "content": "You are a helpful assistant.",
      "role": "system"
    },
    {
      "content": "Write a poem for France?",
      "role": "user"
    }
  ]
}'

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by st01cs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants