From 1734b2ffd8f5d87501b064bd13d592038455915a Mon Sep 17 00:00:00 2001 From: Abram Date: Wed, 29 Nov 2023 18:13:08 +0100 Subject: [PATCH] [HOT FIX]: resolve value error in startup_technical_ideas llm app --- examples/startup_technical_ideas/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/startup_technical_ideas/app.py b/examples/startup_technical_ideas/app.py index 840572af45..57e2ae4461 100644 --- a/examples/startup_technical_ideas/app.py +++ b/examples/startup_technical_ideas/app.py @@ -24,7 +24,7 @@ @ag.entrypoint def chat( - messages: MessagesInput = MessagesInput(), + messages: MessagesInput = MessagesInput([{"role": "string", "content": "string"}]) ) -> str: messages = [{"role": "system", "content": ag.config.system_prompt}] + messages max_tokens = ag.config.max_tokens if ag.config.max_tokens != -1 else None