Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
feat: Adds ollama commented sections
Browse files Browse the repository at this point in the history
  • Loading branch information
frgfm committed Dec 11, 2023
1 parent 414a19b commit faf5ce9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/api/api_v1/endpoints/guidelines.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ async def parse_guidelines_from_text(
telemetry_client.capture(user.id, event="guideline-parse")
# Analyze with LLM
return openai_client.parse_guidelines_from_text(payload.content, user_id=str(user.id))
# return ollama_client.parse_guidelines_from_text(payload.content)


@router.post("/examples", status_code=status.HTTP_200_OK, summary="Request examples for a guideline")
Expand All @@ -133,3 +134,4 @@ async def generate_examples_for_text(
telemetry_client.capture(user.id, event="guideline-examples")
# Analyze with LLM
return openai_client.generate_examples_for_instruction(payload.content, payload.language, user_id=str(user.id))
# return ollama_client.generate_examples_for_instruction(payload.content, payload.language)

0 comments on commit faf5ce9

Please sign in to comment.