fix: openai response should contains model

- Update model attributes in `claudeHandler` for `relay-claude.go`
- Implement model type for fullTextResponse in `relay-gemini.go`
- Add new `Model` field to `OpenAITextResponse` struct in `relay.go`
This commit is contained in:
Laisky.Cai
2023-12-19 02:21:12 +00:00
parent fd7585550a
commit d4a0d4025d
3 changed files with 3 additions and 0 deletions

View File

@@ -281,6 +281,7 @@ type OpenAITextResponseChoice struct {
type OpenAITextResponse struct {
Id string `json:"id"`
Model string `json:"model"`
Object string `json:"object"`
Created int64 `json:"created"`
Choices []OpenAITextResponseChoice `json:"choices"`