Create
Object Hierarchy:
Description:
public class Create :
Base
API call to create a model using the Ollama create API endpoint.
Creates a new model using the Ollama create API. This is a "dumb" implementation that simply performs the API call with the provided
parameters. No logic about when to create or how to name - the caller provides all parameters.
Supports all create API fields except messages. This call always streams status updates. See
https://docs.ollama.com/api/create for the API specification.
Used internally by Model.customize() to create temporary model variants when custom num_ctx settings are needed.
Content:
Properties:
- public string from { get; set; }
Existing model to create from.
- public string license { get; set; }
License string or array of licenses for the model.
- public string model { get; set; }
Name for the model to create (required).
- public Options parameters { get; set; }
Key-value parameters for the model.
- public string quantize { get; set; }
Quantization level to apply.
- public bool stream { get; set; }
Whether to stream status updates.
- public string system { get; set; }
System prompt to embed in the model.
- public string template { get; set; }
Prompt template to use for the model.
Creation methods:
Methods:
Signals:
Inherited Members:
All known members inherited from class OLLMchat.Call.Base
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref
All known members inherited from interface Json.Serializable
- default_deserialize_property
- default_serialize_property
- deserialize_property
- find_property
- get_property
- list_properties
- serialize_property
- set_property