From 0c856a17a4a58e267188ec6ebc2e5cd38bcfb9f8 Mon Sep 17 00:00:00 2001 From: Russell Ballestrini Date: Fri, 1 Mar 2024 10:33:26 -0500 Subject: [PATCH] clean up import modified: app.py --- app.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/app.py b/app.py index 1101c3a..69d9494 100644 --- a/app.py +++ b/app.py @@ -6,17 +6,18 @@ import eventlet from mistralai.client import MistralClient from mistralai.models.chat_completion import ChatMessage +import together + from openai import OpenAI from groq import Groq +import boto3 +import json + import tiktoken import os -import time - -import boto3 -import json from flask_sqlalchemy import SQLAlchemy @@ -801,9 +802,6 @@ def chat_together( model_name="mistralai/Mixtral-8x7B-Instruct-v0.1", stop=["[/INST]", ""], ): - # Initialize the Together client - import together - together.api_key = os.environ["TOGETHER_API_KEY"] with app.app_context():