GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Suno-API/model.go at main · Suno-API/Suno-API

Expand file tree

/

model.go

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
108 lines (93 loc) · 3.38 KB
/

model.go

Copy path

File metadata and controls

108 lines (93 loc) · 3.38 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
package main
import "suno-api/entity/po"
type SubmitGenSongReq struct {
Prompt string `json:"prompt"`
Mv string `json:"mv"`
Title string `json:"title"`
Tags string `json:"tags"`
GptDescriptionPrompt string `json:"gpt_description_prompt,omitempty"`
TaskID string `json:"task_id"`
ContinueAt *float64 `json:"continue_at,omitempty"`
ContinueClipId *string `json:"continue_clip_id,omitempty"`
MakeInstrumental bool `json:"make_instrumental"`
}
type SubmitGenLyricsReq struct {
Prompt string `json:"prompt"`
}
type FetchReq struct {
IDs []string `json:"ids"`
Action string `json:"action"`
}
type GenSongResponse struct {
ID string `json:"id"`
Clips []po.SunoSong `json:"clips"`
Metadata any `json:"metadata"`
MajorModelVersion string `json:"major_model_version"`
Status string `json:"status"`
CreatedAt string `json:"created_at"`
BatchSize int64 `json:"batch_size"`
}
type GenLyricsResponse struct {
ID string `json:"id"`
}
type FetchLyricsResponse struct {
Text string `json:"text"`
Status string `json:"status"`
Title string `json:"title"`
}
type GeneralOpenAIRequest struct {
Model string `json:"model,omitempty"`
Messages []Message `json:"messages,omitempty"`
Stream bool `json:"stream,omitempty"`
MaxTokens uint `json:"max_tokens,omitempty"`
Temperature float64 `json:"temperature,omitempty"`
TopP float64 `json:"top_p,omitempty"`
TopK int `json:"top_k,omitempty"`
FunctionCall interface{} `json:"function_call,omitempty"`
FrequencyPenalty float64 `json:"frequency_penalty,omitempty"`
PresencePenalty float64 `json:"presence_penalty,omitempty"`
ToolChoice string `json:"tool_choice,omitempty"`
Tools []Tool `json:"tools,omitempty"`
}
type Function struct {
Url string `json:"url,omitempty"`
Name string `json:"name"`
Description string `json:"description"`
Parameters Parameter `json:"parameters"`
Arguments string `json:"arguments,omitempty"`
}
type Parameter struct {
Type string `json:"type"`
Properties map[string]Property `json:"properties"`
Required []string `json:"required"`
}
type Property struct {
Type string `json:"type"`
Description string `json:"description"`
Enum []string `json:"enum,omitempty"`
}
type Tool struct {
Id string `json:"id,omitempty"`
Type string `json:"type"`
Function Function `json:"function"`
}
type ChatCompletionsStreamResponse struct {
Id string `json:"id"`
Object string `json:"object"`
Created interface{} `json:"created"`
Model string `json:"model"`
Choices []ChatCompletionsStreamResponseChoice `json:"choices"`
}
type ChatCompletionsStreamResponseChoice struct {
Index int `json:"index"`
Delta struct {
Content string `json:"content"`
Role string `json:"role,omitempty"`
} `json:"delta"`
FinishReason *string `json:"finish_reason,omitempty"`
}
type Message struct {
Role string `json:"role"`
Content string `json:"content"`
Name *string `json:"name,omitempty"`
}
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.