We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d766a2 commit dd83ccdCopy full SHA for dd83ccd
crates/fig_api_client/src/clients/streaming_client.rs
@@ -52,7 +52,9 @@ pub struct StreamingClient(inner::Inner);
52
53
impl StreamingClient {
54
pub async fn new() -> Result<Self, Error> {
55
- let client = if fig_util::system_info::in_cloudshell() {
+ let client = if fig_util::system_info::in_cloudshell()
56
+ || std::env::var("Q_USE_SENDMESSAGE").is_ok_and(|v| !v.is_empty())
57
+ {
58
Self::new_qdeveloper_client(&Endpoint::load_q()).await?
59
} else {
60
Self::new_codewhisperer_client(&Endpoint::load_codewhisperer()).await
0 commit comments