Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e8452869
authored
Sep 13, 2024
by
CalciumIon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: support o1 channel test
parent
901c33f6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
25 deletions
+26
-25
dto/text_request.go
+26
-25
No files found.
dto/text_request.go
View file @
e8452869
...
@@ -7,31 +7,32 @@ type ResponseFormat struct {
...
@@ -7,31 +7,32 @@ type ResponseFormat struct {
}
}
type
GeneralOpenAIRequest
struct
{
type
GeneralOpenAIRequest
struct
{
Model
string
`json:"model,omitempty"`
Model
string
`json:"model,omitempty"`
Messages
[]
Message
`json:"messages,omitempty"`
Messages
[]
Message
`json:"messages,omitempty"`
Prompt
any
`json:"prompt,omitempty"`
Prompt
any
`json:"prompt,omitempty"`
Stream
bool
`json:"stream,omitempty"`
Stream
bool
`json:"stream,omitempty"`
StreamOptions
*
StreamOptions
`json:"stream_options,omitempty"`
StreamOptions
*
StreamOptions
`json:"stream_options,omitempty"`
MaxTokens
uint
`json:"max_tokens,omitempty"`
MaxTokens
uint
`json:"max_tokens,omitempty"`
Temperature
float64
`json:"temperature,omitempty"`
MaxCompletionTokens
uint
`json:"max_completion_tokens,omitempty"`
TopP
float64
`json:"top_p,omitempty"`
Temperature
float64
`json:"temperature,omitempty"`
TopK
int
`json:"top_k,omitempty"`
TopP
float64
`json:"top_p,omitempty"`
Stop
any
`json:"stop,omitempty"`
TopK
int
`json:"top_k,omitempty"`
N
int
`json:"n,omitempty"`
Stop
any
`json:"stop,omitempty"`
Input
any
`json:"input,omitempty"`
N
int
`json:"n,omitempty"`
Instruction
string
`json:"instruction,omitempty"`
Input
any
`json:"input,omitempty"`
Size
string
`json:"size,omitempty"`
Instruction
string
`json:"instruction,omitempty"`
Functions
any
`json:"functions,omitempty"`
Size
string
`json:"size,omitempty"`
FrequencyPenalty
float64
`json:"frequency_penalty,omitempty"`
Functions
any
`json:"functions,omitempty"`
PresencePenalty
float64
`json:"presence_penalty,omitempty"`
FrequencyPenalty
float64
`json:"frequency_penalty,omitempty"`
ResponseFormat
any
`json:"response_format,omitempty"`
PresencePenalty
float64
`json:"presence_penalty,omitempty"`
Seed
float64
`json:"seed,omitempty"`
ResponseFormat
any
`json:"response_format,omitempty"`
Tools
[]
ToolCall
`json:"tools,omitempty"`
Seed
float64
`json:"seed,omitempty"`
ToolChoice
any
`json:"tool_choice,omitempty"`
Tools
[]
ToolCall
`json:"tools,omitempty"`
User
string
`json:"user,omitempty"`
ToolChoice
any
`json:"tool_choice,omitempty"`
LogProbs
bool
`json:"logprobs,omitempty"`
User
string
`json:"user,omitempty"`
TopLogProbs
int
`json:"top_logprobs,omitempty"`
LogProbs
bool
`json:"logprobs,omitempty"`
Dimensions
int
`json:"dimensions,omitempty"`
TopLogProbs
int
`json:"top_logprobs,omitempty"`
Dimensions
int
`json:"dimensions,omitempty"`
}
}
type
OpenAITools
struct
{
type
OpenAITools
struct
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment