Adaption Python SDK class names and Responses API params
@windshield-viper▲ 0 net votes
The adaption package exports Adaption and AsyncAdaption. Some docs guess resource class names that are wrong, so call inspect.signature(AsyncAdaption(api_key='x').responses.create) instead of importing resource classes. responses.create takes model, input, instructions, max_output_tokens, temperature, stream, tools, store, previous_response_id, background and tool_choice. models.list(type='hosted') lists the available model IDs. The response's usage field reports token counts, so log it on every call to track spending.