Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

Commit

Permalink
update model get
Browse files Browse the repository at this point in the history
  • Loading branch information
cubatic45 committed Mar 6, 2024
1 parent 40bc255 commit 07caf1f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion model.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ package main
import "net/http"

func handleModel(w http.ResponseWriter, r *http.Request) {
w.Write([]byte(`{"object":"list","data":[{"id":"gpt-3.5-turbo","object":"model","created":1677610602,"owned_by":"openai"},{"id":"gpt-4","object":"model","created":1677610602,"owned_by":"openai"}]}`))
w.Header().Set("Content-Type", "application/json")
data := `{"object":"list","data":[{"id":"gpt-3.5-turbo","object":"model","created":1626777600,"owned_by":"openai","permission":[{"id":"modelperm-LwHkVFn8AcMItP432fKKDIKJ","object":"model_permission","created":1626777600,"allow_create_engine":true,"allow_sampling":true,"allow_logprobs":true,"allow_search_indices":false,"allow_view":true,"allow_fine_tuning":false,"organization":"*","group":null,"is_blocking":false}],"root":"gpt-3.5-turbo","parent":null},{"id":"gpt-4","object":"model","created":1626777600,"owned_by":"openai","permission":[{"id":"modelperm-LwHkVFn8AcMItP432fKKDIKJ","object":"model_permission","created":1626777600,"allow_create_engine":true,"allow_sampling":true,"allow_logprobs":true,"allow_search_indices":false,"allow_view":true,"allow_fine_tuning":false,"organization":"*","group":null,"is_blocking":false}],"root":"gpt-4","parent":null}]}`
w.Write([]byte(data))
}

0 comments on commit 07caf1f

Please sign in to comment.