Skip to content

Commit

Permalink
Merge branch 'main' into feat-text-to-sql-valves
Browse files Browse the repository at this point in the history
  • Loading branch information
0xThresh committed Jul 2, 2024
2 parents d5febd7 + a5bf4bd commit 7b257d3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion examples/pipelines/providers/azure_openai_pipeline.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from typing import List, Union, Generator, Iterator
from pydantic import BaseModel
import requests
import os


class Pipeline:
Expand Down Expand Up @@ -52,7 +53,7 @@ def pipe(
"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',
'enhancements', 'dataSources', 'n', 'stream', 'stop', 'max_tokens', 'presence_penalty',
Expand Down
7 changes: 6 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ boto3
redis
sqlmodel
chromadb
psycopg2-binary

# Observability
langfuse
Expand Down Expand Up @@ -57,4 +58,8 @@ seaborn
# Web scraping
selenium
playwright
beautifulsoup4
beautifulsoup4

# Llama Index for RAG
llama-index
llama-index-llms-ollama

0 comments on commit 7b257d3

Please sign in to comment.