cmd

command module
v0.0.0-...-62e2548 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2024 License: Apache-2.0 Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

login command

Procedure

Install dex server to the kind cluster with kong

helm install dex -n auth deployments/dex-server --create-namespace

[!NOTE] see llmariner for the kong installation.

Get id token

Run the following command.

go run main.go

The login page will then open in your browser. For registered accounts, see admin fields in values.yaml.

Use id token

$ curl --header 'Authorization: Bearer foo' http://localhost/v1/fine_tuning/jobs
{"code":16, "message":"invalid token", "details":[]}

$ export TOKEN=<TOKEN>
$ curl --header "Authorization: Bearer $TOKEN" http://localhost/v1/fine_tuning/jobs
{"object":"list", "data":[], "hasMore":false}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL