BerriAI / litellm

Python SDK, Proxy Server (LLM Gateway) to call 100+ LLM APIs in OpenAI format - [Bedrock, Azure, OpenAI, VertexAI, Cohere, Anthropic, Sagemaker, HuggingFace, Replicate, Groq]
https://docs.litellm.ai/docs/
Other
13.41k stars 1.57k forks source link

Chat GPT uses quotes and subsequently breakingi itself... #1340

Closed WaterBongo closed 9 months ago

WaterBongo commented 9 months ago

So Currently i asked chatGPT to look for the button " Let's Go" on a website usng selenium, however since theres a quote inside the string, it just collaapses in itself.

File "<unknown>", line 2                                                                                                            
  WebDriverWait(driver, 10).until(EC.element_to_be_clickable((By.XPATH, '//button[text()="Let                                       
                                                                        ^                                                           

SyntaxError: unterminated string literal (detected at line 2)

My apologies for the repeated mistake. The XPath string was not properly closed again. Let's correct this and try again. We will
wait until the "Let's Go" button is clickable.

My apologies for the mistake. The XPath string was not properly closed again. Let's correct this and try again. We will wait until
the "Let's Go" button is clickable.

  WebDriverWait(driver, 10).until(EC.element_to_be_clickable((By.XPATH,     

'//button[text()="Let
^
SyntaxError: unterminated string literal (detected at line 2)

Wait until the 'Let's Go' button is clickable

WebDriverWait(driver, 10).until(EC.element_to_be_clickable((By.XPATH, '//button[text()="Let

krrishdholakia commented 9 months ago

@WaterBongo How is this a litellm issue?

If this is for open interpreter then - https://github.com/KillianLucas/open-interpreter/ is the right place for this