Use this file to discover all available pages before exploring further.
The majority of critical model parameters like temperature and max_tokens can be configured in the Freeplay UI. However, if you are using additional parameters these can still be recorded during the Record call and will be displayed in the UI alongside the Completion.
from freeplay import Freeplay, RecordPayload, CallInfo# create a session which will create a UIDsession = fpClient.sessions.create()# build call info from scratch to log additional params# get the base paramsstart_params = formatted_prompt.prompt_info.model_parameters# set the additional parametersadditional_params = {"presence_penalty": 0.8, "n": 5}# combine the two parameter setsall_params = {**start_params, **additional_params}call_info = CallInfo( provider=formatted_prompt.prompt_info.provider, model=formatted_prompt.prompt_info.model, start_time=s, end_time=e, model_parameters=all_params # pass the full parameter set)# record the resultspayload = RecordPayload( project_id=project_id, all_messages=all_messages, inputs=prompt_vars, session_info=session.session_info, prompt_version_info=prompt_info, call_info=call_info)completion_info = fpClient.recordings.create(payload)