clean up import
modified: app.py
This commit is contained in:
parent
23e844baf9
commit
0c856a17a4
1 changed files with 5 additions and 7 deletions
12
app.py
12
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]", "</s>"],
|
||||
):
|
||||
# Initialize the Together client
|
||||
import together
|
||||
|
||||
together.api_key = os.environ["TOGETHER_API_KEY"]
|
||||
|
||||
with app.app_context():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue