Explorar o código

server: loosen json format constraints

ParthSareen hai 4 meses
pai
achega
fc3c398ca2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      llm/server.go

+ 1 - 1
llm/server.go

@@ -734,7 +734,7 @@ func (s *llmServer) Completion(ctx context.Context, req CompletionRequest, fn fu
 			}
 			request["grammar"] = string(g)
 		default:
-			return errors.New(`invalid format: expected "json" or a JSON schema`)
+			slog.Warn("invalid format: expected \"json\" or a JSON schema")
 		}
 	}