Skip to content

Commit 7afeed6

Browse files
committed
Unlock the vision field for gitHubCopilot models
1 parent a0ac7a6 commit 7afeed6

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Tool/Sources/OpenAIService/APIs/OpenAIChatCompletionsService.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,6 @@ public actor OpenAIChatCompletionsService: ChatCompletionsStreamAPI, ChatComplet
797797
}
798798

799799
static func setupGitHubCopilotVisionField(_ request: inout URLRequest, model: ChatModel) {
800-
guard model.format == .gitHubCopilot else { return }
801800
if model.info.supportsImage {
802801
request.setValue("true", forHTTPHeaderField: "copilot-vision-request")
803802
}

0 commit comments

Comments
 (0)