Skip to content

Simplify configuration options (URI and API version) #76

Open

Description

@luisquintanilla

When specifying the URI in ChromaConfigurationOptions, the value is sensitive to trailing slashes.

For example, this works:

var configOptions = new ChromaConfigurationOptions(uri: "http://localhost:8000/api/v1/");

This does not and returns a Not Found error. The only difference is the trailing slash.

var configOptions = new ChromaConfigurationOptions(uri: "http://localhost:8000/api/v1");

Looking at the OpenAPI docs, there's no trailing slash for the root path

Image

It'd be nice in configuration options if the only thing you specified as a user was the host and port. Since there are multiple versions of the API, you might also provide the version.

For example:

var configOptions = new ChromaConfigurationOptions(uri: "http://localhost:8000", version: ApiVersion.V1);

or

var configOptions = new ChromaConfigurationOptions(host: "localhost", port: 8000, version: ApiVersion.V1);

Internally, it would take care of forming the URI correctly.

Activity

  1. ssone95 commented on Aug 6, 2025

    @ssone95
    Owner

    @luisquintanilla Makes sense, we were thinking about that, but it was left for a future set of changes after v1 release.
    Now - with plans for V2 support, we're thinking about quality-of-life improvements we could bring to it, so I definitely appreciate you bringing that up.

  2. Laurianti commented on Oct 3, 2026

    @Laurianti

    ChromaDotNet.Client does both (#84): the URI can be just the address of the server, with or without the trailing slash, and the API version is an option, WithApiVersion(ChromaApiVersion.V1).

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions