Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cotabby/Support/FoundationModelPromptRenderer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ enum FoundationModelPromptRenderer {

var sections = [
"Screen context:",
"App: \(request.context.applicationName)"
"User is on \(request.context.applicationName)."
]

if let summary = request.visualContextSummary,
Expand Down
2 changes: 1 addition & 1 deletion Cotabby/Support/LlamaPromptRenderer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ enum LlamaPromptRenderer {

sections.append("")
sections.append("Screen context:")
sections.append("App: \(applicationName)")
sections.append("User is on \(applicationName).")
if let summary = visualContextSummary, !summary.isEmpty {
sections.append("Screen content:")
sections.append(summary)
Expand Down
2 changes: 1 addition & 1 deletion CotabbyTests/LlamaPromptRendererTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ final class LlamaPromptRendererTests: XCTestCase {
userName: nil
)

XCTAssertTrue(prompt.contains("App: Slack"))
XCTAssertTrue(prompt.contains("User is on Slack."))
XCTAssertTrue(prompt.contains("My prefix text here"))
}

Expand Down
2 changes: 1 addition & 1 deletion CotabbyTests/PromptPolicyTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ final class FoundationModelPromptRendererTests: XCTestCase {

let prompt = FoundationModelPromptRenderer.prompt(for: request)

XCTAssertTrue(prompt.contains("App: TestApp"))
XCTAssertTrue(prompt.contains("User is on TestApp."))
XCTAssertTrue(prompt.contains(" Hello from the field "))
}

Expand Down