MCPcopy Index your code
hub / github.com/53AI/53AIHub / buildTestRequest

Function buildTestRequest

api/controller/channel-test.go:282–295  ·  view source on GitHub ↗
(model string)

Source from the content-addressed store, hash-verified

280}
281
282func buildTestRequest(model string) *relaymodel.GeneralOpenAIRequest {
283 if model == "" {
284 model = "gpt-3.5-turbo"
285 }
286 testRequest := &relaymodel.GeneralOpenAIRequest{
287 Model: model,
288 }
289 testMessage := relaymodel.Message{
290 Role: "user",
291 Content: "Output only your specific model name with no additional text.",
292 }
293 testRequest.Messages = append(testRequest.Messages, testMessage)
294 return testRequest
295}
296
297// testRerankChannel 测试 rerank 渠道
298func testRerankChannel(ctx context.Context, channel *model.Channel, modelName string) (responseMessage string, err error) {

Callers 1

TestChannelFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestChannelFunction · 0.68