Skip to content

Commit

Permalink
Pass the API key
Browse files Browse the repository at this point in the history
  • Loading branch information
nonprofittechy committed Dec 18, 2023
1 parent 97f6758 commit 9e57ccc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docassemble/ALWeaver/data/questions/assembly_line.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2000,7 +2000,7 @@ code: |
if hasattr(interview, "use_gpt_to_draft_json") and interview.use_gpt_to_draft_json:
document_text = get_document_text(interview.uploaded_templates)
document_fields = get_fields(interview.uploaded_templates)
draft_screens = formfyxer.draft_interview_questions(document_fields, document_text)
draft_screens = formfyxer.draft_interview_questions(document_fields, document_text, openai_api=get_config("open ai",{}).get("key"))
interview.auto_assign_attributes(
screens=draft_screens
)
Expand Down

0 comments on commit 9e57ccc

Please sign in to comment.