Closed aliciayen closed 1 month ago
Issue was resolved by redefining max_new_tokens
:
from ibm_watson_machine_learning.metanames import GenTextParamsMetaNames as GenParams
llm_params = {
GenParams.MAX_NEW_TOKENS: 1000,
}
llm = ChatWatsonx(
model_id="mistralai/mixtral-8x7b-instruct-v01",
url=os.environ["WX_ENDPOINT"],
project_id=os.environ["WX_PROJECT_ID"],
params = llm_params
I am trying to use
with_structured_output
referencing the examples in the function's doc strings:But the output is not expected:
Please help advise, thank you in advance!