Skip to content

Sobre los (**kwargs) #1

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}"
}
}
)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions