mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-07 08:27:05 +00:00
refac
This commit is contained in:
parent
2dd09223f2
commit
d56bb2c383
1 changed files with 2 additions and 0 deletions
|
|
@ -6,6 +6,7 @@ from open_webui.utils.misc import (
|
|||
)
|
||||
|
||||
from typing import Callable, Optional
|
||||
import copy
|
||||
import json
|
||||
|
||||
|
||||
|
|
@ -286,6 +287,7 @@ def convert_payload_openai_to_ollama(openai_payload: dict) -> dict:
|
|||
Returns:
|
||||
dict: A modified payload compatible with the Ollama API.
|
||||
"""
|
||||
openai_payload = copy.deepcopy(openai_payload)
|
||||
ollama_payload = {}
|
||||
|
||||
# Mapping basic model and message details
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue