Skip to content

Max model output tokens? #108

Discussion options

You must be logged in to vote

Hi Denis,

In the web chat, the maximum number of generated tokens is 4000.

In the API, you can configure it by setting the max_tokens parameters:

import maritalk

model = maritalk.MariTalk(
    key="insira sua chave aqui. Ex: '100088...'",
    model="sabia-3"
)

response = model.generate(
    "Quanto é 25 + 27?",
    max_tokens=200)

answer = response["answer"]

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@deniseiras
Comment options

@rodrigo-f-nogueira
Comment options

@deniseiras
Comment options

@rodrigo-f-nogueira
Comment options

Answer selected by deniseiras
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