Skip to content

Conversation

@HavenDV
Copy link
Contributor

@HavenDV HavenDV commented Sep 18, 2025

Summary by CodeRabbit

  • Documentation

    • Added deprecation notices to several Cohere API operations; deprecation badges will appear in generated docs and SDKs.
    • Marked the web-search chat connector as deprecated.
    • Marked the search_queries_only parameter as deprecated.
    • Clarified deprecation status on operations associated with service unavailability/timeout responses.
  • Chores

    • Updated API metadata to reflect current support status and guide migration planning.

@coderabbitai
Copy link

coderabbitai bot commented Sep 18, 2025

Walkthrough

Deprecated markers were added to elements in src/libs/Cohere/openapi.yaml: a ChatConnector description block, the search_queries_only parameter, and multiple operations (11) including those referencing ServiceUnavailable and GatewayTimeout responses. No functional logic or control flow changed; updates are metadata to indicate deprecation.

Changes

Cohort / File(s) Summary of Changes
Connector description deprecation
src/libs/Cohere/openapi.yaml
Marked the ChatConnector description block (web-search input) as deprecated.
Parameter deprecation
src/libs/Cohere/openapi.yaml
Marked the search_queries_only parameter as deprecated.
Operations deprecation
src/libs/Cohere/openapi.yaml
Added deprecated: true to multiple public operations (11 total), including those referencing ServiceUnavailable and GatewayTimeout responses.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Poem

I nudge my nose at YAML lines,
Tagging elders, drawing signs.
Deprecate, annotate, hop along—
Eleven paths hum a quieter song.
Soon new trails we’ll celebrate,
For now, I stamp: “deprecated.” 🐇✨

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Title Check ⚠️ Warning The title "feat:@coderabbitai" does not describe the actual change in this PR, which adds deprecated: true markers to operations and a parameter in src/libs/Cohere/openapi.yaml; instead it appears to be a bot mention and a generic "feat" tag. Because it does not summarize the deprecation modifications or indicate the affected scope/files, it will be misleading for reviewers and for repository history. Therefore the title fails the pull request title check. Rename the PR to a concise, descriptive title that reflects the OpenAPI deprecation changes, for example: "chore(openapi): mark web-search ChatConnector, search_queries_only, and related operations as deprecated" or "chore(cohere/openapi): add deprecated flags to multiple operations and parameter". Also update the PR description with a brief rationale for the deprecations and any migration or compatibility notes so reviewers can quickly understand the intent.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch bot/update-openapi_202509181521

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@HavenDV HavenDV enabled auto-merge (squash) September 18, 2025 15:22
@coderabbitai coderabbitai bot changed the title feat:@coderabbitai feat:Add deprecation markers in Cohere OpenAPI: desc, param, 11 ops Sep 18, 2025
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

♻️ Duplicate comments (8)
src/libs/Cohere/openapi.yaml (8)

1128-1134: Same as above: deprecation OK; add replacement and timeline

Replicate the deprecation rationale and optional x-sunset here to guide users.


1198-1204: Same as above: deprecation OK; document the alternative

Provide the “use instead” target and optional sunset date.


1271-1277: Same as above

Add x-deprecation-reason and consider x-sunset.


1343-1349: Same as above

Document migration path; plan SDK regen and release notes.


1421-1427: Same as above

Include explicit replacement endpoint/param and optional sunset metadata.


1501-1507: Same as above

Keep deprecation consistent across related operations and examples.


6623-6629: Same as above

Confirm deprecation is reflected in examples/docs for this path.


7178-7184: Same as above

Add rationale/replacement and align docs/SDKs.

🧹 Nitpick comments (3)
src/libs/Cohere/openapi.yaml (3)

168-174: Deprecation is fine; add replacement guidance and (optionally) a sunset

Marking search_queries_only deprecated is OK. Please add a clear “use instead” note and, if known, a sunset via a vendor extension to aid SDKs and docs.

 search_queries_only:
   type: boolean
   description: "Defaults to `false`. ..."
   deprecated: true
+  x-deprecation-reason: "TBD: replaced by <new param/endpoint>."
+  x-sunset: "YYYY-MM-DD"

1004-1010: Operation-level deprecation: placement looks correct; add migration path and sunset

deprecated: true at the operation level is valid. Provide what to call instead and optionally x-sunset so client SDKs can surface timelines.

Consider also planning a future 410 or removal date in changelog and regenerating SDKs.


63-69: Add a vendor deprecation reason (array typing is already correct)

connectors in src/libs/Cohere/openapi.yaml (≈ lines 61–66) is a schema array (type: array + items present) — do not move items. It is marked deprecated: true but lacks a deprecation rationale; add a vendor extension, e.g.

deprecated: true
x-deprecation-reason: "Replaced by <new field/flow>."

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 111c2a6 and 33b4c64.

⛔ Files ignored due to path filters (21)
  • src/libs/Cohere/Generated/Cohere.CohereClient.Chat.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.CohereClient.Classify.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.CohereClient.Generate.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.CohereClient.Summarize.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.ConnectorsClient.CreateConnector.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.ConnectorsClient.DeleteConnector.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.ConnectorsClient.GetConnector.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.ConnectorsClient.ListConnectors.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.ConnectorsClient.OAuthAuthorizeConnector.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.ConnectorsClient.UpdateConnector.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.ICohereClient.Chat.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.ICohereClient.Classify.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.ICohereClient.Generate.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.ICohereClient.Summarize.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.IConnectorsClient.CreateConnector.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.IConnectorsClient.DeleteConnector.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.IConnectorsClient.GetConnector.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.IConnectorsClient.ListConnectors.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.IConnectorsClient.OAuthAuthorizeConnector.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.IConnectorsClient.UpdateConnector.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.Models.ChatRequest.g.cs is excluded by !**/generated/**
📒 Files selected for processing (1)
  • src/libs/Cohere/openapi.yaml (11 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Test / Build, test and publish

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants