Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tjbck committed May 31, 2024
1 parent 0255d1c commit 8edfc45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,8 +526,8 @@ async def filter_outlet(pipeline_id: str, form_data: FilterForm):
@app.post("/v1/chat/completions")
@app.post("/chat/completions")
async def generate_openai_chat_completion(form_data: OpenAIChatCompletionForm):
user_message = get_last_user_message(form_data.messages.model_dump())
messages = [message.model_dump() for message in form_data.messages]
user_message = get_last_user_message(messages)

if (
form_data.model not in app.state.PIPELINES
Expand Down

0 comments on commit 8edfc45

Please sign in to comment.