Fix multiline function call style violations

Expand mixed inline/multiline function calls so each argument
is on its own line, matching the one-argument-per-line rule.

Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
Sacha Al Himdani
2026-03-17 15:34:01 +01:00
parent 532347fcda
commit 16b966b8fb
28 changed files with 203 additions and 83 deletions

View File

@@ -115,7 +115,9 @@ func (c *Client) ChatCompletion(ctx context.Context, req *ChatCompletionRequest)
func (c *Client) ChatCompletionStream(ctx context.Context, req *ChatCompletionRequest) (ChatCompletionStream, error) {
ctx, span := startChatSpan(ctx, c.tracer, c.system, req)
c.logger.InfoCtx(ctx, "chat completion stream request",
c.logger.InfoCtx(
ctx,
"chat completion stream request",
log.String("model", req.Model),
log.Int("message_count", len(req.Messages)),
log.Int("tool_count", len(req.Tools)),

View File

@@ -73,7 +73,9 @@ func newTestClient(provider llm.Provider) (*llm.Client, *tracetest.SpanRecorder)
recorder := tracetest.NewSpanRecorder()
tp := sdktrace.NewTracerProvider(sdktrace.WithSpanProcessor(recorder))
client := llm.NewClient(provider, "test",
client := llm.NewClient(
provider,
"test",
llm.WithTracerProvider(tp),
)
return client, recorder

View File

@@ -46,7 +46,9 @@ func startChatSpan(ctx context.Context, tracer trace.Tracer, system string, req
attrs = append(attrs, semconv.GenAIRequestStopSequences(req.StopSequences...))
}
return tracer.Start(ctx, spanName,
return tracer.Start(
ctx,
spanName,
trace.WithSpanKind(trace.SpanKindClient),
trace.WithAttributes(attrs...),
)