fix: update Prompt type in GeneralOpenAIRequest and adjust related logic in ConvertCompletionsRequest

This commit is contained in:
Laisky.Cai
2025-02-10 02:11:53 +00:00
parent 4fb8501833
commit 33f3400c12
4 changed files with 8 additions and 8 deletions

View File

@@ -19,9 +19,8 @@ import (
)
func ConvertCompletionsRequest(textRequest model.GeneralOpenAIRequest) *Request {
p, _ := textRequest.Prompt.(string)
return &Request{
Prompt: p,
Prompt: textRequest.Prompt,
MaxTokens: textRequest.MaxTokens,
Stream: textRequest.Stream,
Temperature: textRequest.Temperature,