Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

572 B
Raw Blame
import { assert, describe, it } from "@effect/vitest"
import { Effect, Layer } from "effect"
import { Model } from "effect/unstable/ai"

describe("Model", () => {
  it.effect("provides metadata alongside the wrapped layer for the duration of the scope", () =>
    Effect.gen(function*() {
      const providerName = yield* Model.ProviderName
      const modelName = yield* Model.ModelName

      assert.strictEqual(providerName, "openai")
      assert.strictEqual(modelName, "gpt-5")
    }).pipe(
      Effect.provide(Model.make("openai", "gpt-5", Layer.empty))
    ))
})