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:
@@ -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)),
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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...),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user