37 lines
1.2 KiB
Python
37 lines
1.2 KiB
Python
"""
|
||
===================================
|
||
@Auther:WenZ
|
||
@Company: BooWay
|
||
@project:booway_dm
|
||
===================================
|
||
"""
|
||
|
||
# from langchain_community.chat_models import ChatOpenAI
|
||
from langchain_openai import ChatOpenAI
|
||
from langchain_core.output_parsers import StrOutputParser
|
||
from langchain_core.prompts import ChatPromptTemplate
|
||
from langchain_core.prompts.prompt import PromptTemplate
|
||
from langchain_core.output_parsers import JsonOutputParser
|
||
|
||
|
||
# qwen_llm = ChatOpenAI(model='deepseek-qwen2.5-32b',base_url="http://172.20.0.145:9995/v1/",api_key='233',temperature=1)
|
||
|
||
# temperature=0.7
|
||
qwen_llm = ChatOpenAI(
|
||
openai_api_base="https://api.siliconflow.cn/v1",
|
||
model_name="Qwen/Qwen2.5-72B-Instruct",
|
||
# sk-muuqautpcyuowjtgfecbnivqodlhzydtfslqkmwbknawejsx
|
||
openai_api_key="sk-bbeamiumkouptsrueilgufqqyuumelcsivxwjbdugqwsqhwj",
|
||
temperature=0.1
|
||
)
|
||
|
||
deep_v3 = ChatOpenAI(
|
||
openai_api_base="https://api.siliconflow.cn/v1",
|
||
model_name="deepseek-ai/DeepSeek-V3",
|
||
# sk-muuqautpcyuowjtgfecbnivqodlhzydtfslqkmwbknawejsx
|
||
openai_api_key="sk-bbeamiumkouptsrueilgufqqyuumelcsivxwjbdugqwsqhwj",
|
||
temperature=0.1
|
||
)
|
||
|
||
|
||
__all__ = ["deep_v3", "qwen_llm", "StrOutputParser", "ChatPromptTemplate", "PromptTemplate", "JsonOutputParser"] |