feat: agent files
This commit is contained in:
9
core/backend/llama_gpt_oss.py
Normal file
9
core/backend/llama_gpt_oss.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from langchain_openai import ChatOpenAI
|
||||
|
||||
def get_llama_oss_20b_llm(server_url, model_name):
|
||||
"""Initialize and return a ChatOpenAI instance configured for llama-oss-20b."""
|
||||
return ChatOpenAI(
|
||||
base_url=f"{server_url}/v1",
|
||||
api_key="not-needed",
|
||||
model=model_name
|
||||
)
|
||||
Reference in New Issue
Block a user