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: 0

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