INNER CODE UNIT · Python

ollama_request_options

bigsk1/voice-chat-ai · app/app.py:218

def ollama_request_options(**extra):
    options = dict(extra)
    num_ctx = _ollama_num_ctx()
    if num_ctx is not None:
        options["num_ctx"] = num_ctx
    return options

def init_ollama_model(model_name):
    global OLLAMA_MODEL
    OLLAMA_MODEL = model_name
    print(f"Switched to Ollama model: {model_name}")

def init_openai_model(model_name):
    global OPENAI_MODEL
    OPENAI_MODEL = model_name
    print(f"Switched to OpenAI model: {model_name}")
    
def init_xai_model(model_name):

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…