mirror of
https://github.com/open-webui/pipelines
synced 2025-05-12 08:30:43 +00:00
Merge branch 'main' into feat-text-to-sql-valves
This commit is contained in:
commit
7b257d3a5c
@ -1,6 +1,7 @@
|
|||||||
from typing import List, Union, Generator, Iterator
|
from typing import List, Union, Generator, Iterator
|
||||||
from pydantic import BaseModel
|
from pydantic import BaseModel
|
||||||
import requests
|
import requests
|
||||||
|
import os
|
||||||
|
|
||||||
|
|
||||||
class Pipeline:
|
class Pipeline:
|
||||||
@ -52,7 +53,7 @@ class Pipeline:
|
|||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
}
|
}
|
||||||
|
|
||||||
url = f"{self.valves.AZURE_OPENAI_ENDPOINT}/openai/deployments/{self.valves.DEPLOYMENT_NAME}/chat/completions?api-version={self.valves.API_VERSION}"
|
url = f"{self.valves.AZURE_OPENAI_ENDPOINT}/openai/deployments/{self.valves.AZURE_OPENAI_DEPLOYMENT_NAME}/chat/completions?api-version={self.valves.AZURE_OPENAI_API_VERSION}"
|
||||||
|
|
||||||
allowed_params = {'messages', 'temperature', 'role', 'content', 'contentPart', 'contentPartImage',
|
allowed_params = {'messages', 'temperature', 'role', 'content', 'contentPart', 'contentPartImage',
|
||||||
'enhancements', 'dataSources', 'n', 'stream', 'stop', 'max_tokens', 'presence_penalty',
|
'enhancements', 'dataSources', 'n', 'stream', 'stop', 'max_tokens', 'presence_penalty',
|
||||||
|
@ -26,6 +26,7 @@ boto3
|
|||||||
redis
|
redis
|
||||||
sqlmodel
|
sqlmodel
|
||||||
chromadb
|
chromadb
|
||||||
|
psycopg2-binary
|
||||||
|
|
||||||
# Observability
|
# Observability
|
||||||
langfuse
|
langfuse
|
||||||
@ -58,3 +59,7 @@ seaborn
|
|||||||
selenium
|
selenium
|
||||||
playwright
|
playwright
|
||||||
beautifulsoup4
|
beautifulsoup4
|
||||||
|
|
||||||
|
# Llama Index for RAG
|
||||||
|
llama-index
|
||||||
|
llama-index-llms-ollama
|
Loading…
Reference in New Issue
Block a user