fix: remove debug logging (#379)
This commit is contained in:
@@ -74,8 +74,6 @@ class CustomApp(EmbedChain):
|
|||||||
def _get_openai_answer(prompt: str, config: ChatConfig) -> str:
|
def _get_openai_answer(prompt: str, config: ChatConfig) -> str:
|
||||||
from langchain.chat_models import ChatOpenAI
|
from langchain.chat_models import ChatOpenAI
|
||||||
|
|
||||||
logging.info(vars(config))
|
|
||||||
|
|
||||||
chat = ChatOpenAI(
|
chat = ChatOpenAI(
|
||||||
temperature=config.temperature,
|
temperature=config.temperature,
|
||||||
model=config.model or "gpt-3.5-turbo",
|
model=config.model or "gpt-3.5-turbo",
|
||||||
@@ -120,8 +118,6 @@ class CustomApp(EmbedChain):
|
|||||||
def _get_azure_openai_answer(prompt: str, config: ChatConfig) -> str:
|
def _get_azure_openai_answer(prompt: str, config: ChatConfig) -> str:
|
||||||
from langchain.chat_models import AzureChatOpenAI
|
from langchain.chat_models import AzureChatOpenAI
|
||||||
|
|
||||||
logging.info(vars(config))
|
|
||||||
|
|
||||||
chat = AzureChatOpenAI(
|
chat = AzureChatOpenAI(
|
||||||
deployment_name="td2",
|
deployment_name="td2",
|
||||||
model_name=config.model or "text-davinci-002",
|
model_name=config.model or "text-davinci-002",
|
||||||
|
|||||||
Reference in New Issue
Block a user