Dagger
Search

ollama

No long description provided.

Installation

dagger install github.com/shykes/daggerverse/ollama@dfb1f91fa463b779021d65011f0060f7decda0ba

Entrypoint

Return Type
Ollama
Example
func (m *myModule) example() *Ollama  {
	return dag.
			Ollama()
}
@function
def example() -> dag.Ollama:
	return (
		dag.ollama()
	)
@func()
example(): Ollama {
	return dag
		.ollama()
}

Types

Ollama 🔗

llama2() 🔗

Return Type
String !
Arguments
NameTypeDefault ValueDescription
promptString !-No description provided
Example
dagger -m github.com/shykes/daggerverse/ollama@dfb1f91fa463b779021d65011f0060f7decda0ba call \
 llama-2 --prompt string
func (m *myModule) example(ctx context.Context, prompt string) string  {
	return dag.
			Ollama().
			Llama2(ctx, prompt)
}
@function
async def example(prompt: str) -> str:
	return await (
		dag.ollama()
		.llama2(prompt)
	)
@func()
async example(prompt: string): Promise<string> {
	return dag
		.ollama()
		.llama2(prompt)
}

client() 🔗

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
modelString !-No description provided
Example
dagger -m github.com/shykes/daggerverse/ollama@dfb1f91fa463b779021d65011f0060f7decda0ba call \
 client --model string
func (m *myModule) example(model string) *Container  {
	return dag.
			Ollama().
			Client(model)
}
@function
def example(model: str) -> dagger.Container:
	return (
		dag.ollama()
		.client(model)
	)
@func()
example(model: string): Container {
	return dag
		.ollama()
		.client(model)
}

base() 🔗

Return Type
Container !
Example
dagger -m github.com/shykes/daggerverse/ollama@dfb1f91fa463b779021d65011f0060f7decda0ba call \
 base
func (m *myModule) example() *Container  {
	return dag.
			Ollama().
			Base()
}
@function
def example() -> dagger.Container:
	return (
		dag.ollama()
		.base()
	)
@func()
example(): Container {
	return dag
		.ollama()
		.base()
}

server() 🔗

Return Type
Service !
Arguments
NameTypeDefault ValueDescription
modelString !-No description provided
Example
dagger -m github.com/shykes/daggerverse/ollama@dfb1f91fa463b779021d65011f0060f7decda0ba call \
 server --model string
func (m *myModule) example(model string) *Service  {
	return dag.
			Ollama().
			Server(model)
}
@function
def example(model: str) -> dagger.Service:
	return (
		dag.ollama()
		.server(model)
	)
@func()
example(model: string): Service {
	return dag
		.ollama()
		.server(model)
}