Skip to content

Unexpected keyword argument 'save_field_meta' #8618

@tlo9

Description

@tlo9

Following the Learn DSPy section on Optimizers, the text states that the save_field_meta can be used while saving.

You can add save_field_meta to additionally save the list of fields with the keys, name, field_type, description, and prefix with: optimized_program.save(YOUR_SAVE_PATH, save_field_meta=True).

Yet doing so results in a TypeError:

optimized_program.save("my_program.json", save_field_meta=True) TypeError: BaseModule.save() got an unexpected keyword argument 'save_field_meta'

The method signature for save suggests that this functionality was removed/changed:

save(path, save_program=False, modules_to_serialize=None)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions