Skip to content

Documentation: Update constructor call #1801

Open
@ullenboom

Description

@ullenboom

On https://docs.spring.io/spring-ai/reference/api/chat/ollama-chat.html#_function_calling the constructor call is not valid anymore:

var chatModel = new OllamaChatModel(this.ollamaApi, OllamaOptions.create() .withModel(OllamaOptions.DEFAULT_MODEL) .withTemperature(0.9));

Should be something along the lines:

var chatModel = OllamaChatModel.builder()
                                     .withOllamaApi( this.ollamaApi )
                                     .withXXX(...) )
                                     .build();

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions