Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
= Enea_Gore committed Jan 14, 2025
1 parent 17c7fd0 commit ebdedb0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
from pydantic import BaseModel, Field
from pydantic import Field
from typing import Literal
from llm_core.models import ModelConfigType, DefaultModelConfig

from module_text_llm.approach_config import ApproachConfig
from module_text_llm.chain_of_thought_approach.prompt_generate_feedback import CoTGenerateSuggestionsPrompt
from module_text_llm.chain_of_thought_approach.prompt_thinking import ThinkingPrompt

class ChainOfThoughtConfig(ApproachConfig):
type: Literal['chain_of_thought'] = 'chain_of_thought'
thikning_prompt: ThinkingPrompt = Field(default=ThinkingPrompt())
thinking_prompt: ThinkingPrompt = Field(default=ThinkingPrompt())
generate_suggestions_prompt: CoTGenerateSuggestionsPrompt = Field(default=CoTGenerateSuggestionsPrompt())

Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ async def generate_suggestions(exercise: Exercise, submission: Submission, confi

chat_prompt = get_chat_prompt_with_formatting_instructions(
model=model,
system_message=config.thikning_prompt.system_message,
human_message=config.thikning_prompt.human_message,
system_message=config.thinking_prompt.system_message,
human_message=config.thinking_prompt.human_message,
pydantic_object=InitialAssessmentModel
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class InitialAssessment(BaseModel):
grading_instruction_id: Optional[int] = Field(
description="ID of the grading instruction that was used to generate this feedback, or empty if no grading instruction was used"
)
impprovment_suggestion: str = Field(description="Suggestion for improvement for the student")
improvment_suggestion: str = Field(description="Suggestion for improvement for the student")

class InitialAssessmentModel(BaseModel):
"""Collection of feedbacks making up an assessment"""
Expand Down

0 comments on commit ebdedb0

Please sign in to comment.