Skip to content

Conversation

@anasdorbani
Copy link
Member

@anasdorbani anasdorbani commented Aug 21, 2025

This PR closes #178 and introduces two main updates to the API:

  1. Payload structure update

    • Changed the request body from:

      {'model_name': 'summarizer', 'secret_name': 'summarizer_secret'},
      {'prompt_name': 'description-generation', 'version': 1},
      {'product_name': product_name}

      to:

      {'model_name': 'summarizer', 'secret_name': 'summarizer_secret'},
      {'prompt_name': 'description-generation', 'version': 1, 'context_columns': [{'data': product_name}]}
    • This aligns the input format with the new API contract by wrapping product_name inside context_columns.

  2. Functions now support images as inputs alongside text.

  3. Bug fixes and reliability improvements:

    • Fixed errors caused by missing or malformed input values.

    • Improved error handling and validation to reduce runtime failures.

@anasdorbani anasdorbani merged commit 0b0e4dd into main Aug 22, 2025
19 of 26 checks passed
ju-klein pushed a commit to ju-klein/flock that referenced this pull request Nov 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants