Compare commits
10
Commits
7c724d8177
...
repo_work
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3a909f5ac1 | ||
|
|
d6d3e2f3af | ||
|
|
0fc39350b0 | ||
|
|
0e71556c15 | ||
|
|
9c9451d4e5 | ||
|
|
3165a9ae08 | ||
|
|
99c3cbdb7f | ||
|
|
ce24a011ed | ||
|
|
ae96075275 | ||
|
|
641f11e0aa |
@@ -6,3 +6,4 @@ __pycache__
|
|||||||
.zed
|
.zed
|
||||||
pyproject.toml
|
pyproject.toml
|
||||||
.ropeproject
|
.ropeproject
|
||||||
|
generated_files/*
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ from ollama import Client
|
|||||||
import chromadb
|
import chromadb
|
||||||
from langchain_ollama import ChatOllama
|
from langchain_ollama import ChatOllama
|
||||||
|
|
||||||
|
|
||||||
class OllamaGenerator:
|
class OllamaGenerator:
|
||||||
|
|
||||||
def __init__(self, title: str, content: str, inner_title: str):
|
def __init__(self, title: str, content: str, inner_title: str):
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ class GitRepository:
|
|||||||
def create_and_switch_branch(self, branch_name, remote_name='origin', ref_name='main'):
|
def create_and_switch_branch(self, branch_name, remote_name='origin', ref_name='main'):
|
||||||
"""Create a new branch in the repository with authentication."""
|
"""Create a new branch in the repository with authentication."""
|
||||||
try:
|
try:
|
||||||
pring(f"Creating Branch {title}")
|
print(f"Creating Branch {branch_name}")
|
||||||
# Use the same remote and ref as before
|
# Use the same remote and ref as before
|
||||||
self.repo.git.branch(branch_name)
|
self.repo.git.branch(branch_name)
|
||||||
except GitCommandError:
|
except GitCommandError:
|
||||||
|
|||||||
Reference in New Issue
Block a user