Skip to content

Commit

Permalink
Update - changed parameter from messages to inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
aybruhm committed Nov 30, 2023
1 parent c71d5ce commit b98d013
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/startup_technical_ideas/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@


@ag.entrypoint
def chat(messages: MessagesInput = MessagesInput()) -> str:
messages = [{"role": "system", "content": ag.config.prompt_system}] + messages
def chat(inputs: MessagesInput = MessagesInput()) -> str:
messages = [{"role": "system", "content": ag.config.prompt_system}] + inputs
max_tokens = ag.config.max_tokens if ag.config.max_tokens != -1 else None
chat_completion = client.chat.completions.create(
model=ag.config.model,
Expand Down

0 comments on commit b98d013

Please sign in to comment.