Skip to content

🐛 Bug Report: Pinecone, LangChain RAG and Replicate function templates ask for variables their code doesn't read #15372

Closed

Description

@adityaoberai

Summary

Three Console function templates ask for environment variables that the template code doesn't read. Functions created from them fail on every execution until the user adds the expected variable by hand.

Details

Template app/config/templates/function.php asks for Template code at 1.2.0 requires
sync-with-pinecone PINECONE_INDEX_NAME PINECONE_INDEX_ID (throwIfMissing in node/sync-with-pinecone/src/main.js)
rag-with-langchain PINECONE_INDEX_NAME PINECONE_INDEX_ID (node/rag-with-langchain/src/main.js)
generate-with-replicate REPLICATE_API_KEY REPLICATE_API_TOKEN (node/generate-with-replicate/src/main.js; it's also the Replicate SDK's variable)
  • The Pinecone variable was renamed in the config in 8a4954d (2025-03-08), but the templates weren't updated.
  • generate-with-replicate is also listed twice in app/config/templates/function.php.

Suggested fix

Rename the config variables to match the code, or update the templates and bump providerVersion. Then drop the duplicate Replicate entry.

Notes

This turned up while adding function templates to the appwrite.io integrations catalog. The Pinecone, LangChain and Replicate pages are held back until this is fixed.

cc @adityaoberai

Activity

  1. added
    bug
    product / functions
    on Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugproduct / functions

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions