ollama
No long description provided.
Installation
dagger install github.com/shykes/daggerverse/ollama@8ceab4d82c00c9cb8b028c945c43e05d469cf4c5
Entrypoint
Return Type
Ollama
Example
dagger -m github.com/shykes/daggerverse/ollama@8ceab4d82c00c9cb8b028c945c43e05d469cf4c5 call \
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
Name | Type | Default Value | Description |
---|---|---|---|
prompt | String ! | - | No description provided |
Example
dagger -m github.com/shykes/daggerverse/ollama@8ceab4d82c00c9cb8b028c945c43e05d469cf4c5 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
Name | Type | Default Value | Description |
---|---|---|---|
model | String ! | - | No description provided |
Example
dagger -m github.com/shykes/daggerverse/ollama@8ceab4d82c00c9cb8b028c945c43e05d469cf4c5 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@8ceab4d82c00c9cb8b028c945c43e05d469cf4c5 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
Name | Type | Default Value | Description |
---|---|---|---|
model | String ! | - | No description provided |
Example
dagger -m github.com/shykes/daggerverse/ollama@8ceab4d82c00c9cb8b028c945c43e05d469cf4c5 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)
}