Fix method invocation in LoggerChatModel
This commit resolves an issue where the LoggerChatModel class was incorrectly
attempting to call instances of AIModel directly as if they were callable objects.
Changes include:
- Modified __call__ method to explicitly use the invoke method when calling AI models.
- Updated constructor documentation to clarify the type of object expected.
- Added additional debug logging for better traceability of method entry and exit points.
These changes ensure that the LoggerChatModel class aligns with the intended design
patterns and correctly utilizes the AIModel instances, improving the maintainability
and robustness of the codebase.
This commit is contained in:
parent
9ef928569b
commit
7d7110253a
6 changed files with 67 additions and 210 deletions
|
|
@ -1,52 +0,0 @@
|
|||
remote: [true/false]
|
||||
|
||||
experienceLevel:
|
||||
internship: [true/false]
|
||||
entry: [true/false]
|
||||
associate: [true/false]
|
||||
mid-senior level: [true/false]
|
||||
director: [true/false]
|
||||
executive: [true/false]
|
||||
|
||||
jobTypes:
|
||||
full-time: [true/false]
|
||||
contract: [true/false]
|
||||
part-time: [true/false]
|
||||
temporary: [true/false]
|
||||
internship: [true/false]
|
||||
other: [true/false]
|
||||
volunteer: [true/false]
|
||||
|
||||
date:
|
||||
all time: [true/false]
|
||||
month: [true/false]
|
||||
week: [true/false]
|
||||
24 hours: [true/false]
|
||||
|
||||
positions:
|
||||
- position1
|
||||
- position2
|
||||
|
||||
locations:
|
||||
- Country1
|
||||
- Country2
|
||||
|
||||
applyOnceAtCompany: [true/false]
|
||||
|
||||
distance: 100
|
||||
|
||||
company_blacklist:
|
||||
- Company1
|
||||
- Company2
|
||||
|
||||
titleBlacklist:
|
||||
- word1
|
||||
- word2
|
||||
|
||||
job_applicants_threshold:
|
||||
min_applicants: 0
|
||||
max_applicants: 100
|
||||
|
||||
llm_model_type: openai
|
||||
llm_model: gpt-4o
|
||||
llm_api_url: https://api.pawan.krd/cosmosrp/v1
|
||||
Loading…
Add table
Add a link
Reference in a new issue