Merge commit 'da0842272ced7bee05a8f43c40a7a8c01b14d09a'

This commit is contained in:
Laisky.Cai
2024-04-25 03:04:12 +00:00
16 changed files with 546 additions and 9 deletions

View File

@@ -53,6 +53,7 @@ func responseOllama2OpenAI(response *ChatResponse) *openai.TextResponse {
}
fullTextResponse := openai.TextResponse{
Id: fmt.Sprintf("chatcmpl-%s", random.GetUUID()),
Model: response.Model,
Object: "chat.completion",
Created: helper.GetTimestamp(),
Choices: []openai.TextResponseChoice{choice},