update compose

This commit is contained in:
2026-04-22 19:52:18 +02:00
parent e3e85e4a44
commit a4515f0332
4 changed files with 19 additions and 15 deletions

View File

@@ -70,7 +70,11 @@ func (c *LLMClient) Recommend(prompt string) ([]model.MovieSuggestion, error) {
defer resp.Body.Close()
if resp.StatusCode != http.StatusOK {
return nil, fmt.Errorf("llm returned status %d", resp.StatusCode)
var chatResp interface{}
if err := json.NewDecoder(resp.Body).Decode(&chatResp); err != nil {
return nil, fmt.Errorf("decoding llm response: %w", err)
}
return nil, fmt.Errorf("llm returned status %d with body: %s", resp.StatusCode, chatResp)
}
var chatResp chatResponse