Skip to content

Sobre los (**kwargs) #1

@successbyfailure

Description

@successbyfailure

Ese **kwargs convierte el diccionario en argumentos con nombre.
Si ollama_api_key NO existe, es equivalente a:
Python
ChatOllama(
model=ollama_model,
base_url=ollama_url
)
Si ollama_api_key sí existe, entonces:
Python
ChatOllama(
model=ollama_model,
base_url=ollama_url,
client_kwargs={
"headers": {
"Authorization": f"Bearer {ollama_api_key}"
}
}
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions