"git@developer.sourcefind.cn:orangecat/ollama.git" did not exist on "0d6342a882d9a7ab9adae4fbc5e877af5c9c068c"
Commit 015772ef authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

refac

parent e20baad6
...@@ -432,7 +432,12 @@ async def generate_chat_completion( ...@@ -432,7 +432,12 @@ async def generate_chat_completion(
idx = model["urlIdx"] idx = model["urlIdx"]
if "pipeline" in model and model.get("pipeline"): if "pipeline" in model and model.get("pipeline"):
payload["user"] = {"name": user.name, "id": user.id} payload["user"] = {
"name": user.name,
"id": user.id,
"email": user.email,
"role": user.role,
}
# Check if the model is "gpt-4-vision-preview" and set "max_tokens" to 4000 # Check if the model is "gpt-4-vision-preview" and set "max_tokens" to 4000
# This is a workaround until OpenAI fixes the issue with this model # This is a workaround until OpenAI fixes the issue with this model
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment