Feat: nullable roomid
This commit is contained in:
		| @@ -49,6 +49,7 @@ func convertToSliceOfStrings(value any) ([]string, error) { | ||||
| 	} | ||||
| } | ||||
|  | ||||
| //nolint: unused | ||||
| func (b *Bot) checkGuesses(tempMap map[string]any, room *models.Room) error { | ||||
| 	guesses, err := convertToSliceOfStrings(tempMap["guesses"]) | ||||
| 	if err != nil { | ||||
| @@ -539,5 +540,5 @@ func (b *Bot) CallLLM(prompt string) ([]byte, error) { | ||||
| 		return body, nil | ||||
| 	} | ||||
| 	// This line should not be reached because each error path returns in the loop. | ||||
| 	return nil, fmt.Errorf("unknown error in retry loop") | ||||
| 	return nil, errors.New("unknown error in retry loop") | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Grail Finder
					Grail Finder