Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cline Support #463

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Cline Support #463

wants to merge 3 commits into from

Conversation

lukehinds
Copy link
Contributor

@lukehinds lukehinds commented Dec 28, 2024

This should be considered experimental until tested more widely by the community.

I have it working with Anthropic and Ollama so far.

This should be considered experimental until tester more widely
by the community.

I have it working with Anthropic and Ollama so far.
if not text:
return []

if not cls._yaml_path:
raise RuntimeError("SecretFinder not initialized.")

# Convert list to string if necessary (needed for Cline, which sends a list of strings)
if isinstance(text, list):
text = "\n".join(str(line) for line in text)
Copy link

Choose a reason for hiding this comment

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

This is converted to string to be later split to an array? Seems redundant. Maybe you want to pass it as-is if it's already an array?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

totally agree, trying to recall why I put that there now. Anyhow, removed in last commit as tested without it and all seems well

response = await client.get(f"{self.base_url}/api/tags")
return response.json()

@self.router.post(f"/{self.provider_route_name}/api/show")
Copy link
Contributor

Choose a reason for hiding this comment

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

this seems unrelated to cline support?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The route or use of ollama?

@lukehinds
Copy link
Contributor Author

I should add LMStudio, the latest Cline release supports setting a BaseURL

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.

3 participants